From a712da2085bdea09bc56b3a59eb31cf2ab024e00 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 17 May 2000 19:38:53 +0000 Subject: Apply patch from Richard Gorton to implement --emit-relocs switch to the linker to preserve relocs in an output executable --- ld/lexsup.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ld/lexsup.c') 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; -- cgit v1.1