[syslinux] [PATCH 0/4] Improve linker scripts

Gene Cumm gene.cumm at gmail.com
Thu Oct 8 03:58:48 PDT 2015


On Mon, Oct 5, 2015 at 2:15 PM, celelibi--- via Syslinux
<syslinux at zytor.com> wrote:
> From: Sylvain Gault <sylvain.gault at gmail.com>
>
> These patches basically remove unused linker scripts and port a change that was
> made to an unused script.
>
> Those are to be applied on top of the gcc 5 bug fixes as they would conflict
> otherwise.
>
> Sylvain Gault (4):
>   diag/mbr: fix dependency to linker script
>   Remove unused linker scripts
>   core: Make symbols defined in linker script HIDDEN
>   core: Move linker script in arch-agnostic dir
>
>  core/Makefile           |   2 +-
>  core/i386/syslinux.ld   | 389 ------------------------------------------------
>  core/syslinux.ld        | 117 ++++++---------
>  core/x86_64/syslinux.ld | 389 ------------------------------------------------
>  diag/mbr/Makefile       |   2 +-
>  efi/syslinux.ld         | 176 ----------------------
>  mbr/mbr.ld              |  73 ---------
>  memdisk/memdisk.ld      | 140 -----------------
>  8 files changed, 48 insertions(+), 1240 deletions(-)
>  delete mode 100644 core/i386/syslinux.ld
>  delete mode 100644 core/x86_64/syslinux.ld
>  delete mode 100644 efi/syslinux.ld
>  delete mode 100644 mbr/mbr.ld
>  delete mode 100644 memdisk/memdisk.ld


gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
GNU ld (GNU Binutils for Ubuntu) 2.22


ld -m elf_i386  -Bsymbolic -pie -E --hash-style=gnu -T
/home/gene/s/g/core/syslinux.ld -M -o ldlinux.elf ldlinux.o \
                --start-group libcom32.a --whole-archive
/home/gene/s/g/bios/com32/lib/libcom32core.a libldlinux.a --end-group
\
                > ldlinux.map
ld:/home/gene/s/g/core/syslinux.ld:29: syntax error
make[3]: *** [ldlinux.elf] Error 1


core/syslinux.ld:29:    HIDDEN(__module_start = .);

This would seem to indicate that the keyword HIDDEN is invalid in my
version.  A quick "git grep com32.ld" seems to show that com32.ld is
unused.

-- 
-Gene


More information about the Syslinux mailing list