diff options
author | Joern Rennecke <joern.rennecke@embecosm.com> | 2012-02-07 11:32:10 +0000 |
---|---|---|
committer | Joern Rennecke <amylaar@gcc.gnu.org> | 2012-02-07 11:32:10 +0000 |
commit | be648db7d0f6b1c29d1005dec130b3ef6a348ab3 (patch) | |
tree | 25ee405f3219aeeb6fafa526c1d060ef04992b5f | |
parent | 26cfb9ab3d91892d6f6bfde59b6b6010fe467707 (diff) | |
download | gcc-be648db7d0f6b1c29d1005dec130b3ef6a348ab3.zip gcc-be648db7d0f6b1c29d1005dec130b3ef6a348ab3.tar.gz gcc-be648db7d0f6b1c29d1005dec130b3ef6a348ab3.tar.bz2 |
* config/epiphany/epiphany.h (LIB_SPEC): Link libc again after libgloss.
From-SVN: r183964
-rw-r--r-- | gcc/ChangeLog | 2 | ||||
-rw-r--r-- | gcc/config/epiphany/epiphany.h | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a35ee2c..e6c0384 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -32,6 +32,8 @@ (epiphany_start_function): Handle multiple interrupt arguments and/or forwarder_section attribute. + * config/epiphany/epiphany.h (LIB_SPEC): Link libc again after libgloss. + 2012-02-07 Alan Modra <amodra@gmail.com> PR target/52107 diff --git a/gcc/config/epiphany/epiphany.h b/gcc/config/epiphany/epiphany.h index 572ec7e..92b781f 100644 --- a/gcc/config/epiphany/epiphany.h +++ b/gcc/config/epiphany/epiphany.h @@ -43,9 +43,11 @@ along with GCC; see the file COPYING3. If not see } while (0) /* Pick up the libgloss library. One day we may do this by linker script, but - for now its static. */ + for now its static. + libgloss might use errno/__errno, which might not have been needed when we + saw libc the first time, so link with libc a second time. */ #undef LIB_SPEC -#define LIB_SPEC "%{!shared:%{g*:-lg} %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}} -lepiphany" +#define LIB_SPEC "%{!shared:%{g*:-lg} %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}} -lepiphany %{!shared:%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}}" #define LINK_SPEC "%{v}" |