aboutsummaryrefslogtreecommitdiff
path: root/ld/lexsup.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2000-05-17 19:38:53 +0000
committerNick Clifton <nickc@redhat.com>2000-05-17 19:38:53 +0000
commita712da2085bdea09bc56b3a59eb31cf2ab024e00 (patch)
tree9d61a41f3e2b546bf10eacd972952c6118c70970 /ld/lexsup.c
parentf4bd37dad4bc492df305f32652ba812fef893420 (diff)
downloadgdb-a712da2085bdea09bc56b3a59eb31cf2ab024e00.zip
gdb-a712da2085bdea09bc56b3a59eb31cf2ab024e00.tar.gz
gdb-a712da2085bdea09bc56b3a59eb31cf2ab024e00.tar.bz2
Apply patch from Richard Gorton <gorton@scrugs.lkg.dec.com> to implement
--emit-relocs switch to the linker to preserve relocs in an output executable
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 e2aac47..e09b58a 100644
--- a/ld/lexsup.c
+++ b/ld/lexsup.c
@@ -205,6 +205,8 @@ static const struct ld_option ld_options[] =
'\0', NULL, N_("Ignored for SVR4 compatibility"), ONE_DASH },
{ {"relocateable", no_argument, NULL, 'r'},
'r', NULL, N_("Generate relocateable output"), TWO_DASHES },
+ { {"emit-relocs", no_argument, NULL, 'q'},
+ 'q', NULL, "Generate relocations in final output", TWO_DASHES },
{ {NULL, no_argument, NULL, '\0'},
'i', NULL, NULL, ONE_DASH },
{ {"just-symbols", required_argument, NULL, 'R'},
@@ -717,6 +719,9 @@ parse_args (argc, argv)
lang_add_output_format (optarg, (char *) NULL, (char *) NULL, 0);
break;
case 'i':
+ case 'q':
+ link_info.emitrelocations = true;
+ break;
case 'r':
link_info.relocateable = true;
config.build_constructors = false;