diff options
Diffstat (limited to 'contrib/binutils/ld/emultempl/netbsd.em')
-rw-r--r-- | contrib/binutils/ld/emultempl/netbsd.em | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/contrib/binutils/ld/emultempl/netbsd.em b/contrib/binutils/ld/emultempl/netbsd.em new file mode 100644 index 0000000..43715e4 --- /dev/null +++ b/contrib/binutils/ld/emultempl/netbsd.em @@ -0,0 +1,13 @@ +LDEMUL_BEFORE_PARSE=gldnetbsd_before_parse + +cat >>e${EMULATION_NAME}.c <<EOF +static void +gld${EMULATION_NAME}_before_parse (void); + +static void +gldnetbsd_before_parse (void) +{ + gld${EMULATION_NAME}_before_parse (); + link_info.common_skip_ar_aymbols = bfd_link_common_skip_text; +} +EOF |