gold patch committed (Was: Re: Help needed to track down bug: linking Linux kernel with gold creates unbootable kernel)

H.J. Lu hjl.tools@gmail.com
Fri Apr 23 14:47:00 GMT 2010


On Fri, Apr 23, 2010 at 7:43 AM, Ian Lance Taylor <iant@google.com> wrote:
> "H.J. Lu" <hjl.tools@gmail.com> writes:
>
>> [hjl@gnu-6 alignment-2]$ cat foo.s
>>       .text
>>       .byte 0
>>       .p2align 14
>>       .data
>> foo:
>>       .byte 1
>
> Note that the .p2align directive here applies to the .text section,
> not to the .data section.
>
>> 1. foo isn't aligned at 1<<14 bytes.
>
> You didn't ask it to be.

Wrong test.

>> 2. -z max-page-size=0x1000 isn' honored on the last segment.
>
> I don't know what you mean here.

User asked maximum page size to be 0x1000 and gold does
something else. I don't know if the resulting binary is valid
or not since p_align are different on 2 LOAD segments.



-- 
H.J.



More information about the Binutils mailing list