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

--- Comment #6 from hpa at zytor dot com <hpa at zytor dot com> ---
On January 30, 2016 12:53:18 PM PST, hpa at zytor dot com
<sourceware-bugzi...@sourceware.org> wrote:
>https://sourceware.org/bugzilla/show_bug.cgi?id=19538
>
>--- Comment #5 from hpa at zytor dot com <hpa at zytor dot com> ---
>On January 30, 2016 9:08:32 AM PST, "hjl.tools at gmail dot com"
><sourceware-bugzi...@sourceware.org> wrote:
>>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?
>
>ldlinux.elf shouldn't be build pie, so that would explain why.

What I genuinely can't remember offhand is whether or not it is a combination
of pic and non-pic objects...

-- 
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