[syslinux] [PATCH 1/1] core: Check if ldlinux.sys exceeds the limit at its building time.

Gene Cumm
2014-05-25T14:27:19Z

On May 25, 2014 3:39 AM, "Geert Stappers" <stappers at
stappers.nl> wrote:
>
>
> While going throug old posts found:
>
> Op 2013-08-31 om 17:01 schreef Raphael S.Carvalho:
> > Calc the size of ldlinux.sys from ldlinux.bin, and check if it exceeds
the limit.
> > ldlinux.sys must fit between the bootsector and two copies of ADV
whose
size may vary.
> > Thus, the size of ldlinux.sys (limit) can be at most: 65536 - 2 *
ADV_SIZE - 512.
> >
> > Certain file systems (such as BTRFS and UFS2) will rely on ldlinux.sys
being installed on the 0-64k range,
> > thus it can't exceed the limit, otherwise the superblock would be
corrupted.

Raphael/Paulo: does UFS2 have a hard 64kiB limit?  I know it's not
installed to the first sector where the first superblock is located.

> IMNSHO is including core/ldlinux_limit.pl better
> than waiting for a better core/ldlinux_limit.pl

This should be rendered obsolete and unnecessary with the recent patch for
ldlinux.sys on btrfs (but might be relevant for UFS2).

--Gene