elf.h (LIB_SPEC): Define.
authorJoseph Myers <joseph@codesourcery.com>
Wed, 15 Dec 2010 00:15:55 +0000 (00:15 +0000)
committerJoseph Myers <jsm28@gcc.gnu.org>
Wed, 15 Dec 2010 00:15:55 +0000 (00:15 +0000)
* config/sh/elf.h (LIB_SPEC): Define.
* config.gcc (sh-*-elf* | sh[12346l]*-*-elf* | sh-*-symbianelf* |
sh[12346l]*-*-symbianelf* | sh-*-linux* | sh[2346lbe]*-*-linux* |
sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* |
sh5l*-*-netbsd* | sh64-*-netbsd* | sh64l*-*-netbsd*, sh-*-rtems*,
sh-wrs-vxworks): Don't use svr4.h.

From-SVN: r167829

gcc/ChangeLog
gcc/config.gcc
gcc/config/sh/elf.h

index f2c7b5c4a744f1934b11a6017e9a5c9396d8a9bb..7a58fde648e120e9aa9e1a517c801f5b8e410ec3 100644 (file)
@@ -1,3 +1,12 @@
+2010-12-14  Joseph Myers  <joseph@codesourcery.com>
+
+       * config/sh/elf.h (LIB_SPEC): Define.
+       * config.gcc (sh-*-elf* | sh[12346l]*-*-elf* | sh-*-symbianelf* |
+       sh[12346l]*-*-symbianelf* | sh-*-linux* | sh[2346lbe]*-*-linux* |
+       sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* |
+       sh5l*-*-netbsd* | sh64-*-netbsd* | sh64l*-*-netbsd*, sh-*-rtems*,
+       sh-wrs-vxworks): Don't use svr4.h.
+
 2010-12-14  Jan Hubicka  <jh@suse.cz>
 
        PR lto/46940
index 65cbf754e45ac0b8c228710f39922f7fab89016c..273819ac5707ee5c4c7fb97b4ec7e065a096c7e8 100644 (file)
@@ -2289,12 +2289,7 @@ sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | \
        case ${with_endian} in
        little*)        tm_file="sh/little.h ${tm_file}" ;;
        esac
-       tm_file="${tm_file} dbxelf.h elfos.h"
-       case ${target} in
-       sh*-*-netbsd*)  ;;
-       *)              tm_file="${tm_file} svr4.h" ;;
-       esac
-       tm_file="${tm_file} sh/elf.h"
+       tm_file="${tm_file} dbxelf.h elfos.h sh/elf.h"
        case ${target} in
        sh*-*-linux*)   tmake_file="${tmake_file} sh/t-linux"
                        tm_file="${tm_file} linux.h glibc-stdint.h sh/linux.h" ;;
@@ -2448,11 +2443,11 @@ sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | \
        ;;
 sh-*-rtems*)
        tmake_file="sh/t-sh sh/t-elf t-rtems sh/t-rtems"
-       tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/elf.h sh/embed-elf.h sh/rtemself.h rtems.h newlib-stdint.h"
+       tm_file="${tm_file} dbxelf.h elfos.h sh/elf.h sh/embed-elf.h sh/rtemself.h rtems.h newlib-stdint.h"
        ;;
 sh-wrs-vxworks)
        tmake_file="$tmake_file sh/t-sh sh/t-elf sh/t-vxworks"
-       tm_file="${tm_file} elfos.h svr4.h sh/elf.h sh/embed-elf.h vx-common.h vxworks.h sh/vxworks.h"
+       tm_file="${tm_file} elfos.h sh/elf.h sh/embed-elf.h vx-common.h vxworks.h sh/vxworks.h"
        ;;
 sparc-*-elf*)
        tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h sparc/sysv4.h sparc/sp-elf.h"
index 633f6a87d07f26e363e19417a47127577be92460..15f106ae37b85d810280e62344df9abdcc61e5a9 100644 (file)
@@ -86,6 +86,9 @@ along with GCC; see the file COPYING3.  If not see
 #define ENDFILE_SPEC \
   "%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s"
 
+#undef LIB_SPEC
+#define LIB_SPEC "-lc"
+
 /* ASM_OUTPUT_CASE_LABEL is defined in elfos.h.  With it,
    a redundant .align was generated.  */
 #undef  ASM_OUTPUT_CASE_LABEL