bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/19538] ld >= 2.26 breaks syslinux (bios) build


From: hjl.tools at gmail dot com
Subject: [Bug ld/19538] ld >= 2.26 breaks syslinux (bios) build
Date: Sat, 30 Jan 2016 17:08:32 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=19538

--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to H.J. Lu from comment #2)
> pfx_compressed, which is __pm_code_lma, is wrong:
> 
>                 section .prefix         nowrite progbits align=16
> pfx_start       dd _start               ; Start of raw chunk
> pfx_compressed  dd __pm_code_lma        ; Start of compressed chunk
> pfx_cdatalen    dd lzo_data_size        ; Pointer to compressed size field
> %if IS_ISOLINUX
> pfx_checksum    dd bi_length            ; File length and checksum fields
> %else
> pfx_checksum    dd 0                    ; No checksum
> %endif
> pfx_maxlma      dd MaxLMA               ; Maximum size
> 
> 00009770 B __pm_code_lma

bios/core/ldlinux.elf is built with -pie.  The value of __pm_code_lma
won't be known until run-time:

Relocation section '.rel.dyn' at offset 0x1ba34 contains 1435 entries:
 Offset     Info    Type            Sym.Value  Sym. Name
...
00000004  00010d01 R_386_32          00009770   __pm_code_lma
00008f62  00010d01 R_386_32          00009770   __pm_code_lma

Peter, am I missing something?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]