diff options
author | Nick Clifton <nickc@redhat.com> | 2002-07-31 12:50:09 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2002-07-31 12:50:09 +0000 |
commit | d8f30db44739af73d229f540fd9030603350bc35 (patch) | |
tree | e6a95b62f53245ef1b01bc49ea69b0040dec46e4 /ld | |
parent | 9eed56874cf76de7f8d3128a16d55d314169ad55 (diff) | |
download | binutils-redhat-d8f30db44739af73d229f540fd9030603350bc35.tar.gz |
Add new field to bfd_link structure and use it to control how common symbols
are extracted from archives.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 9 | ||||
-rw-r--r-- | ld/emulparams/ns32knbsd.sh | 1 | ||||
-rw-r--r-- | ld/emultempl/netbsd.em | 9 | ||||
-rw-r--r-- | ld/ldmain.c | 1 |
4 files changed, 20 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 6a59826108..87d6937a6a 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,12 @@ +2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au> + + * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set + link_info.common_skip_ar_aymbols. + * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file. + + * ldmain.c (main): Initialize new field + link_info.common_skip_ar_aymbols. + 2002-07-31 Adam Nemet <anemet@lnxw.com> * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it diff --git a/ld/emulparams/ns32knbsd.sh b/ld/emulparams/ns32knbsd.sh index 7c6d542f99..2ded301471 100644 --- a/ld/emulparams/ns32knbsd.sh +++ b/ld/emulparams/ns32knbsd.sh @@ -5,3 +5,4 @@ TARGET_PAGE_SIZE=0x1000 ARCH=ns32k EXECUTABLE_SYMBOLS='__DYNAMIC = 0;' NONPAGED_TEXT_START_ADDR=0x1000 +EXTRA_EM_FILE=netbsd diff --git a/ld/emultempl/netbsd.em b/ld/emultempl/netbsd.em new file mode 100644 index 0000000000..4ad564b242 --- /dev/null +++ b/ld/emultempl/netbsd.em @@ -0,0 +1,9 @@ +LDEMUL_BEFORE_PARSE=gldnetbsd_before_parse +cat >>e${EMULATION_NAME}.c <<EOF +static void +gldnetbsd_before_parse () +{ + gld${EMULATION_NAME}_before_parse (); + link_info.common_skip_ar_aymbols = bfd_link_common_skip_text; +} +EOF diff --git a/ld/ldmain.c b/ld/ldmain.c index 7943a9eddf..b50ef43159 100644 --- a/ld/ldmain.c +++ b/ld/ldmain.c @@ -264,6 +264,7 @@ main (argc, argv) link_info.pei386_auto_import = -1; link_info.combreloc = true; link_info.spare_dynamic_tags = 5; + link_info.common_skip_ar_aymbols = bfd_link_common_skip_none; ldfile_add_arch (""); |