This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]