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]

gold patch committed: Don't get confused by -Ttext


PR 10979 points out a gold failure linking klibc.  The problem turns
out to be that the build uses a value for -Ttext which leads gold to
try to write the ELF file header at offset 0x200, which obviously
fails.  I think the right fix is that when -Ttext is used, gold should
not try to put the file header and the segment headers into the text
segment.  That is what I implemented.

Ian

2009-12-30  Ian Lance Taylor  <iant@google.com>

	PR 10979
	* layout.cc (Layout::relaxation_loop_body): If -Ttext was used,
	don't put the file header and segment headers in the text
	segment.


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