gold patch committed: Don't get confused by -Ttext
Ian Lance Taylor
iant@google.com
Thu Dec 31 05:45:00 GMT 2009
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.
More information about the Binutils
mailing list