This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
gold patch committed: Don't get confused by -Ttext
- From: Ian Lance Taylor <iant at google dot com>
- To: binutils at sourceware dot org
- Date: Wed, 30 Dec 2009 21:45:24 -0800
- Subject: 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.