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-linked dragonfly kernel unbootable, likely due to segment page size, alignment


On 2/21/2012 2:38 PM, Ian Lance Taylor wrote:
The header handling behaviour is hardcoded, yes.  That said, you should
be able to control the program headers by using an explicit PHDRS
section in your linker script.  PHDRS are supported by both GNU ld and
gold.


Hi Ian,
Good news! Adding PHDRS section to the linker script resulted in a DragonFly kernel that boots and functions fine, including the kernel modules that we had trouble with before in gold 2.21.


I've attached the readelf output of the kernel built with ld and gold.
The main difference is the alignment value for the LOAD segments, but both have the first LOAD segment starting at the same address so I guess that's the important thing.


Thanks again,
John

Attachment: kernel_phdrs.gold.txt
Description: Text document

Attachment: kernel_phdrs.ld.txt
Description: Text document


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