diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2011-10-21 10:17:09 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2011-10-21 10:17:09 +0000 |
commit | 05cbbe7e8aedafd6356031f2fc988f62fc232ba0 (patch) | |
tree | 1fb20b068036dc1f46003541ccaf0b062d86a519 /gnu/usr.bin | |
parent | c54950d239338f0e65b1432d938b41399a757c3b (diff) |
change LINK_SPEC in such a way that -rdynamic will work
(passes -export-dynamic to ld(1))
ok drahn@ miod@
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r-- | gnu/usr.bin/gcc/gcc/config/alpha/openbsd.h | 1 | ||||
-rw-r--r-- | gnu/usr.bin/gcc/gcc/config/sh/openbsd.h | 8 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gnu/usr.bin/gcc/gcc/config/alpha/openbsd.h b/gnu/usr.bin/gcc/gcc/config/alpha/openbsd.h index ff22cdd8730..337ea4ee434 100644 --- a/gnu/usr.bin/gcc/gcc/config/alpha/openbsd.h +++ b/gnu/usr.bin/gcc/gcc/config/alpha/openbsd.h @@ -31,6 +31,7 @@ Boston, MA 02111-1307, USA. */ %{shared:-shared} %{R*} \ %{static:-Bstatic} \ %{!static:-Bdynamic} \ + %{rdynamic:-export-dynamic} \ %{assert*} \ %{!dynamic-linker:-dynamic-linker /usr/libexec/ld.so}" diff --git a/gnu/usr.bin/gcc/gcc/config/sh/openbsd.h b/gnu/usr.bin/gcc/gcc/config/sh/openbsd.h index 35df14dedf1..423c8801388 100644 --- a/gnu/usr.bin/gcc/gcc/config/sh/openbsd.h +++ b/gnu/usr.bin/gcc/gcc/config/sh/openbsd.h @@ -64,7 +64,13 @@ Boston, MA 02111-1307, USA. */ "%{g:%{!nostdlib:-L/usr/lib/debug}} %{!nostdlib:%{!r*:%{!e*:-e __start}}} -dc -dp %{assert*}" #else #define SUBTARGET_LINK_SPEC \ - "%{g:%{!nostdlib:-L/usr/lib/debug}} %{!shared:%{!nostdlib:%{!r*:%{!e*:-e __start}}}} %{shared:-Bshareable -x} -dc -dp %{R*} %{static:-Bstatic} %{assert*} %{!dynamic-linker:-dynamic-linker /usr/libexec/ld.so}" + "%{g:%{!nostdlib:-L/usr/lib/debug}} \ + %{!shared:%{!nostdlib:%{!r*:%{!e*:-e __start}}}} \ + %{shared:-Bshareable -x} -dc -dp %{R*} \ + %{static:-Bstatic} \ + %{rdynamic:-export-dynamic} \ + %{assert*} \ + %{!dynamic-linker:-dynamic-linker /usr/libexec/ld.so}" #endif |