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 * 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.