gold patch committed: Fix -Ttext

Ian Lance Taylor iant@google.com
Tue Jul 26 01:47:00 GMT 2011
The -Ttext option was broken when used without a linker script.  It
would normally fail an assertion error.  This patch fixes it, and adds a
couple of test cases.  Committed to mainline.

Ian


2011-07-25  Ian Lance Taylor  <iant@google.com>

	* layout.cc (Layout::relaxation_loop_body): Only clear load_seg if
	the -Ttext option is not 0 modulo the page size.  If we clear
	load_seg, clear phdr_seg too.
	* testsuite/Makefile.am (check_PROGRAMS): Add flagstest_o_ttext_1.
	(flagstest_o_ttext_1): New target.
	(check_DATA): Add flagstest_o_ttext_2.
	(flagstest_o_ttext_2): New target.
	* testsuite/Makefile.in: Rebuild.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-patch
Size: 1822 bytes
Desc: patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20110726/4037d3dd/attachment.bin>


More information about the Binutils mailing list