aboutsummaryrefslogtreecommitdiff
path: root/ld/lexsup.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2013-01-14 13:37:10 +0000
committerAlan Modra <amodra@gmail.com>2013-01-14 13:37:10 +0000
commit0d705e9f94332dec93970e80afec6c667c79f555 (patch)
tree72b50754b08938a17dcbddd889102ac21d96d9c2 /ld/lexsup.c
parentd6391ce5a607711d3db4847d0fa0dd3c00c289e2 (diff)
downloadgdb-0d705e9f94332dec93970e80afec6c667c79f555.zip
gdb-0d705e9f94332dec93970e80afec6c667c79f555.tar.gz
gdb-0d705e9f94332dec93970e80afec6c667c79f555.tar.bz2
* ld.texinfo (-Tldata-segment): Describe.
* ldlex.h (OPTION_TLDATA_SEGMENT): New enum value. * lexsup.c (ld_options): Add -Tldata-segment. (parse_args): Handle OPTION_TLDATA_SEGMENT. * scripttempl/elf.sc: Support LARGE_DATA_ADDR.
Diffstat (limited to 'ld/lexsup.c')
-rw-r--r--ld/lexsup.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ld/lexsup.c b/ld/lexsup.c
index 4fd929a..2f71750 100644
--- a/ld/lexsup.c
+++ b/ld/lexsup.c
@@ -446,6 +446,8 @@ static const struct ld_option ld_options[] =
'\0', N_("ADDRESS"), N_("Set address of text segment"), ONE_DASH },
{ {"Trodata-segment", required_argument, NULL, OPTION_TRODATA_SEGMENT},
'\0', N_("ADDRESS"), N_("Set address of rodata segment"), ONE_DASH },
+ { {"Tldata-segment", required_argument, NULL, OPTION_TLDATA_SEGMENT},
+ '\0', N_("ADDRESS"), N_("Set address of ldata segment"), ONE_DASH },
{ {"unresolved-symbols=<method>", required_argument, NULL,
OPTION_UNRESOLVED_SYMBOLS},
'\0', NULL, N_("How to handle unresolved symbols. <method> is:\n"
@@ -1199,6 +1201,9 @@ parse_args (unsigned argc, char **argv)
case OPTION_TRODATA_SEGMENT:
set_segment_start (".rodata-segment", optarg);
break;
+ case OPTION_TLDATA_SEGMENT:
+ set_segment_start (".ldata-segment", optarg);
+ break;
case OPTION_TRADITIONAL_FORMAT:
link_info.traditional_format = TRUE;
break;