aboutsummaryrefslogtreecommitdiff
path: root/ld/ldmain.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-12-23 12:05:38 +0000
committerAlan Modra <amodra@gmail.com>2002-12-23 12:05:38 +0000
commitd5cd393307628c33a2e45d34638cbbab8ce28539 (patch)
tree124dfc2dec4c6b50463e9647ddc3f5f6d74724fc /ld/ldmain.c
parent7582835273b72e5705606f9c5e7c781d8155ccba (diff)
downloadgdb-d5cd393307628c33a2e45d34638cbbab8ce28539.zip
gdb-d5cd393307628c33a2e45d34638cbbab8ce28539.tar.gz
gdb-d5cd393307628c33a2e45d34638cbbab8ce28539.tar.bz2
* ldmain.c (main): Init "strip_discarded".
* lexsup.c (OPTION_STRIP_DISCARDED): Define. (OPTION_NO_STRIP_DISCARDED): Define. (ld_options): Add "strip-discarded" and "no-strip-discarded". (parse_args): Handle them.
Diffstat (limited to 'ld/ldmain.c')
-rw-r--r--ld/ldmain.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ld/ldmain.c b/ld/ldmain.c
index 03a5c5a..c90cb66 100644
--- a/ld/ldmain.c
+++ b/ld/ldmain.c
@@ -248,6 +248,7 @@ main (argc, argv)
link_info.new_dtags = FALSE;
link_info.combreloc = TRUE;
link_info.eh_frame_hdr = FALSE;
+ link_info.strip_discarded = TRUE;
link_info.strip = strip_none;
link_info.discard = discard_sec_merge;
link_info.common_skip_ar_aymbols = bfd_link_common_skip_none;