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.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to