diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2009-01-16 14:14:07 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2009-01-16 14:14:07 +0000 |
commit | 258795f524fca9d5b98441b81684c331c4d721b1 (patch) | |
tree | 365c275b1bbaade138d48bf73fb98ddbd26f7a70 /ld/lexsup.c | |
parent | 3493e7b072fcca9911dd102bbcb6a1fc61012f95 (diff) | |
download | gdb-258795f524fca9d5b98441b81684c331c4d721b1.zip gdb-258795f524fca9d5b98441b81684c331c4d721b1.tar.gz gdb-258795f524fca9d5b98441b81684c331c4d721b1.tar.bz2 |
ld/
2009-01-16 H.J. Lu <hongjiu.lu@intel.com>
* lexsup.c (option_values): Add OPTION_TTEXT_SEGMENT.
(ld_options): Add -Ttext-segment.
(parse_args): Handle OPTION_TTEXT_SEGMENT.
* ld.texinfo: Document -Ttext-segment.
* NEWS: Mention -Ttext-segment.
* scripttempl/elf.sc (TEXT_START_ADDR): Use SEGMENT_START.
(SHLIB_TEXT_START_ADDR): Likewise.
ld/testsuite/
2009-01-16 H.J. Lu <hongjiu.lu@intel.com>
* ld-elf/textaddr1.d: New.
* ld-elf/textaddr2.d: Likewise.
Diffstat (limited to 'ld/lexsup.c')
-rw-r--r-- | ld/lexsup.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ld/lexsup.c b/ld/lexsup.c index 60a8167..f9e6b1f 100644 --- a/ld/lexsup.c +++ b/ld/lexsup.c @@ -103,6 +103,7 @@ enum option_values OPTION_TBSS, OPTION_TDATA, OPTION_TTEXT, + OPTION_TTEXT_SEGMENT, OPTION_TRADITIONAL_FORMAT, OPTION_UR, OPTION_VERBOSE, @@ -512,6 +513,8 @@ static const struct ld_option ld_options[] = '\0', N_("ADDRESS"), N_("Set address of .data section"), ONE_DASH }, { {"Ttext", required_argument, NULL, OPTION_TTEXT}, '\0', N_("ADDRESS"), N_("Set address of .text section"), ONE_DASH }, + { {"Ttext-segment", required_argument, NULL, OPTION_TTEXT_SEGMENT}, + '\0', N_("ADDRESS"), N_("Set address of text segment"), ONE_DASH }, { {"unresolved-symbols=<method>", required_argument, NULL, OPTION_UNRESOLVED_SYMBOLS}, '\0', NULL, N_("How to handle unresolved symbols. <method> is:\n" @@ -1231,6 +1234,9 @@ parse_args (unsigned argc, char **argv) case OPTION_TTEXT: set_segment_start (".text", optarg); break; + case OPTION_TTEXT_SEGMENT: + set_segment_start (".text-segment", optarg); + break; case OPTION_TRADITIONAL_FORMAT: link_info.traditional_format = TRUE; break; |