This is the mail archive of the
mailing list for the binutils project.
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 <email@example.com> wrote:
> "H.J. Lu" <firstname.lastname@example.org> writes:
>> [hjl@gnu-6 alignment-2]$ cat foo.s
>> ? ? ? .text
>> ? ? ? .byte 0
>> ? ? ? .p2align 14
>> ? ? ? .data
>> ? ? ? .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.
>> 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.