summaryrefslogtreecommitdiff
path: root/ld/emultempl/netbsd.em
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2002-07-31 12:50:09 +0000
committerNick Clifton <nickc@redhat.com>2002-07-31 12:50:09 +0000
commitd8f30db44739af73d229f540fd9030603350bc35 (patch)
treee6a95b62f53245ef1b01bc49ea69b0040dec46e4 /ld/emultempl/netbsd.em
parent9eed56874cf76de7f8d3128a16d55d314169ad55 (diff)
downloadbinutils-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/emultempl/netbsd.em')
-rw-r--r--ld/emultempl/netbsd.em9
1 files changed, 9 insertions, 0 deletions
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