source: patches/gcc-5.3.0-pure64_specs-1.patch@ 8c4638c

systemd
Last change on this file since 8c4638c was 223e237, checked in by William Harrington <kb0iic@…>, 9 years ago

GCC 5.3.0 patches renamed.

  • Property mode set to 100644
File size: 29.0 KB
  • gcc/config/aarch64/aarch64-linux.h

    Submitted By: William Harrington <kb0iic at cross-lfs dot org>
    Date: 12-28-2015
    Initial Package Version: 5.1.0
    Origin: Idea originally developed by Ryan Oliver and Greg Schafer for
            the Pure LFS project with help from
            Martin Ward <macros_the_black@ntlworld.com>
    Upstream Status: Not Applied - CLFS Specific
    Description: This patch makes changes to the paths for pure64, eg 64bit libs
                 in /usr/lib, 32bit in /usr/lib32.
    Comment: Renamed for GCC 5.3.0
    
    diff -Naur gcc-5.2.0.orig/gcc/config/aarch64/aarch64-linux.h gcc-5.2.0/gcc/config/aarch64/aarch64-linux.h
    old new  
    2121#ifndef GCC_AARCH64_LINUX_H
    2222#define GCC_AARCH64_LINUX_H
    2323
    24 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1"
     24#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1"
    2525
    2626#undef  ASAN_CC1_SPEC
    2727#define ASAN_CC1_SPEC "%{%:sanitize(address):-funwind-tables}"
  • gcc/config/alpha/linux-elf.h

    diff -Naur gcc-5.2.0.orig/gcc/config/alpha/linux-elf.h gcc-5.2.0/gcc/config/alpha/linux-elf.h
    old new  
    2323#define EXTRA_SPECS \
    2424{ "elf_dynamic_linker", ELF_DYNAMIC_LINKER },
    2525
    26 #define GLIBC_DYNAMIC_LINKER    "/lib/ld-linux.so.2"
    27 #define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
     26#define GLIBC_DYNAMIC_LINKER    "/tools/lib/ld-linux.so.2"
     27#define UCLIBC_DYNAMIC_LINKER "/tools/lib/ld-uClibc.so.0"
    2828#if DEFAULT_LIBC == LIBC_UCLIBC
    2929#define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:" G ";:" U "}"
    3030#elif DEFAULT_LIBC == LIBC_GLIBC
  • gcc/config/arm/linux-eabi.h

    diff -Naur gcc-5.2.0.orig/gcc/config/arm/linux-eabi.h gcc-5.2.0/gcc/config/arm/linux-eabi.h
    old new  
    6868   GLIBC_DYNAMIC_LINKER_DEFAULT and TARGET_DEFAULT_FLOAT_ABI.  */
    6969
    7070#undef  GLIBC_DYNAMIC_LINKER
    71 #define GLIBC_DYNAMIC_LINKER_SOFT_FLOAT "/lib/ld-linux.so.3"
    72 #define GLIBC_DYNAMIC_LINKER_HARD_FLOAT "/lib/ld-linux-armhf.so.3"
     71#define GLIBC_DYNAMIC_LINKER_SOFT_FLOAT "/tools/lib/ld-linux.so.3"
     72#define GLIBC_DYNAMIC_LINKER_HARD_FLOAT "/tools/lib/ld-linux-armhf.so.3"
    7373#define GLIBC_DYNAMIC_LINKER_DEFAULT GLIBC_DYNAMIC_LINKER_SOFT_FLOAT
    7474
    7575#define GLIBC_DYNAMIC_LINKER \
  • gcc/config/arm/linux-elf.h

    diff -Naur gcc-5.2.0.orig/gcc/config/arm/linux-elf.h gcc-5.2.0/gcc/config/arm/linux-elf.h
    old new  
    6262
    6363#define LIBGCC_SPEC "%{mfloat-abi=soft*:-lfloat} -lgcc"
    6464
    65 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
     65#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
    6666
    6767#define LINUX_TARGET_LINK_SPEC  "%{h*} \
    6868   %{static:-Bstatic} \
  • gcc/config/bfin/linux.h

    diff -Naur gcc-5.2.0.orig/gcc/config/bfin/linux.h gcc-5.2.0/gcc/config/bfin/linux.h
    old new  
    4545  %{shared:-G -Bdynamic} \
    4646  %{!shared: %{!static: \
    4747   %{rdynamic:-export-dynamic} \
    48    -dynamic-linker /lib/ld-uClibc.so.0} \
     48   -dynamic-linker /tools/lib/ld-uClibc.so.0} \
    4949   %{static}} -init __init -fini __fini"
    5050
    5151#undef TARGET_SUPPORTS_SYNC_CALLS
  • gcc/config/c6x/uclinux-elf.h

    diff -Naur gcc-5.2.0.orig/gcc/config/c6x/uclinux-elf.h gcc-5.2.0/gcc/config/c6x/uclinux-elf.h
    old new  
    3636#define STARTFILE_SPEC \
    3737  "%{!shared:crt1%O%s} crti%O%s %{shared|pie:crtbeginS.o%s;:crtbegin.o%s}"
    3838
    39 #define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
     39#define UCLIBC_DYNAMIC_LINKER "/tools/lib/ld-uClibc.so.0"
    4040
    4141#undef LINK_SPEC
    4242#define LINK_SPEC ENDIAN_LINK_SPEC \
  • gcc/config/cris/linux.h

    diff -Naur gcc-5.2.0.orig/gcc/config/cris/linux.h gcc-5.2.0/gcc/config/cris/linux.h
    old new  
    102102#undef CRIS_DEFAULT_CPU_VERSION
    103103#define CRIS_DEFAULT_CPU_VERSION CRIS_CPU_NG
    104104
    105 #define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
     105#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
    106106
    107107#undef CRIS_LINK_SUBTARGET_SPEC
    108108#define CRIS_LINK_SUBTARGET_SPEC \
  • gcc/config/freebsd-spec.h

    diff -Naur gcc-5.2.0.orig/gcc/config/freebsd-spec.h gcc-5.2.0/gcc/config/freebsd-spec.h
    old new  
    131131#if FBSD_MAJOR < 6
    132132#define FBSD_DYNAMIC_LINKER "/usr/libexec/ld-elf.so.1"
    133133#else
    134 #define FBSD_DYNAMIC_LINKER "/libexec/ld-elf.so.1"
     134#define FBSD_DYNAMIC_LINKER "/tools/libexec/ld-elf.so.1"
    135135#endif
    136136
    137137/* NOTE: The freebsd-spec.h header is included also for various
  • gcc/config/freebsd-spec.h.orig

    diff -Naur gcc-5.2.0.orig/gcc/config/freebsd-spec.h.orig gcc-5.2.0/gcc/config/freebsd-spec.h.orig
    old new  
     1/* Base configuration file for all FreeBSD targets.
     2   Copyright (C) 1999-2015 Free Software Foundation, Inc.
     3
     4This file is part of GCC.
     5
     6GCC is free software; you can redistribute it and/or modify
     7it under the terms of the GNU General Public License as published by
     8the Free Software Foundation; either version 3, or (at your option)
     9any later version.
     10
     11GCC is distributed in the hope that it will be useful,
     12but WITHOUT ANY WARRANTY; without even the implied warranty of
     13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     14GNU General Public License for more details.
     15
     16Under Section 7 of GPL version 3, you are granted additional
     17permissions described in the GCC Runtime Library Exception, version
     183.1, as published by the Free Software Foundation.
     19
     20You should have received a copy of the GNU General Public License and
     21a copy of the GCC Runtime Library Exception along with this program;
     22see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
     23<http://www.gnu.org/licenses/>.  */
     24
     25/* Common FreeBSD configuration.
     26   All FreeBSD architectures should include this file, which will specify
     27   their commonalities.
     28   Adapted from gcc/config/freebsd.h by
     29   David O'Brien <obrien@FreeBSD.org>
     30   Loren J. Rittle <ljrittle@acm.org>.  */
     31
     32
     33/* In case we need to know.  */
     34#define USING_CONFIG_FREEBSD_SPEC 1
     35
     36#define FBSD_TARGET_OS_CPP_BUILTINS()                                   \
     37  do                                                                    \
     38    {                                                                   \
     39        builtin_define_with_int_value ("__FreeBSD__", FBSD_MAJOR);      \
     40        builtin_define_std ("unix");                                    \
     41        builtin_define ("__KPRINTF_ATTRIBUTE__");                       \
     42        builtin_assert ("system=unix");                                 \
     43        builtin_assert ("system=bsd");                                  \
     44        builtin_assert ("system=FreeBSD");                              \
     45        FBSD_TARGET_CPU_CPP_BUILTINS();                                 \
     46    }                                                                   \
     47  while (0)
     48
     49/* Define the default FreeBSD-specific per-CPU hook code.  */
     50#define FBSD_TARGET_CPU_CPP_BUILTINS() do {} while (0)
     51
     52/* Provide a CPP_SPEC appropriate for FreeBSD.  We just deal with the GCC
     53   option `-posix', and PIC issues.  */
     54
     55#define FBSD_CPP_SPEC "                                                 \
     56  %(cpp_cpu)                                                            \
     57  %(cpp_arch)                                                           \
     58  %{posix:-D_POSIX_SOURCE}"
     59
     60/* Provide a STARTFILE_SPEC appropriate for FreeBSD.  Here we add
     61   the magical crtbegin.o file (see crtstuff.c) which provides part
     62        of the support for getting C++ file-scope static object constructed
     63        before entering `main'.  */
     64   
     65#define FBSD_STARTFILE_SPEC \
     66  "%{!shared: \
     67     %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} \
     68                       %{!p:%{profile:gcrt1.o%s} \
     69                         %{!profile: \
     70                            %{pie: Scrt1.o%s;:crt1.o%s}}}}} \
     71   crti.o%s %{static:crtbeginT.o%s;shared|pie:crtbeginS.o%s;:crtbegin.o%s}"
     72
     73/* Provide a ENDFILE_SPEC appropriate for FreeBSD.  Here we tack on
     74   the magical crtend.o file (see crtstuff.c) which provides part of
     75        the support for getting C++ file-scope static object constructed
     76        before entering `main', followed by a normal "finalizer" file,
     77        `crtn.o'.  */
     78
     79#define FBSD_ENDFILE_SPEC \
     80  "%{shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s"
     81
     82/* Provide a LIB_SPEC appropriate for FreeBSD as configured and as
     83   required by the user-land thread model.  Before __FreeBSD_version
     84   500016, select the appropriate libc, depending on whether we're
     85   doing profiling or need threads support.  At __FreeBSD_version
     86   500016 and later, when threads support is requested include both
     87   -lc and the threading lib instead of only -lc_r.  To make matters
     88   interesting, we can't actually use __FreeBSD_version provided by
     89   <osreldate.h> directly since it breaks cross-compiling.  As a final
     90   twist, make it a hard error if -pthread is provided on the command
     91   line and gcc was configured with --disable-threads (this will help
     92   avoid bug reports from users complaining about threading when they
     93   misconfigured the gcc bootstrap but are later consulting FreeBSD
     94   manual pages that refer to the mythical -pthread option).  */
     95
     96/* Provide a LIB_SPEC appropriate for FreeBSD.  Just select the appropriate
     97   libc, depending on whether we're doing profiling or need threads support.
     98   (similar to the default, except no -lg, and no -p).  */
     99
     100#ifdef FBSD_NO_THREADS
     101#define FBSD_LIB_SPEC "                                                 \
     102  %{pthread: %eThe -pthread option is only supported on FreeBSD when gcc \
     103is built with the --enable-threads configure-time option.}              \
     104  %{!shared:                                                            \
     105    %{!pg: -lc}                                                         \
     106    %{pg:  -lc_p}                                                       \
     107  }"
     108#else
     109#if FBSD_MAJOR < 5
     110#define FBSD_LIB_SPEC "                                                 \
     111  %{!shared:                                                            \
     112    %{!pg:                                                              \
     113      %{!pthread:-lc}                                                   \
     114      %{pthread:-lc_r}}                                                 \
     115    %{pg:                                                               \
     116      %{!pthread:-lc_p}                                                 \
     117      %{pthread:-lc_r_p}}                                               \
     118  }"
     119#else
     120#define FBSD_LIB_SPEC "                                                 \
     121  %{!shared:                                                            \
     122    %{!pg: %{pthread:-lpthread} -lc}                                    \
     123    %{pg:  %{pthread:-lpthread_p} -lc_p}                                \
     124  }                                                                     \
     125  %{shared:                                                             \
     126    %{pthread:-lpthread} -lc                                            \
     127  }"
     128#endif
     129#endif
     130
     131#if FBSD_MAJOR < 6
     132#define FBSD_DYNAMIC_LINKER "/usr/libexec/ld-elf.so.1"
     133#else
     134#define FBSD_DYNAMIC_LINKER "/libexec/ld-elf.so.1"
     135#endif
     136
     137/* NOTE: The freebsd-spec.h header is included also for various
     138   non-FreeBSD powerpc targets, thus it should never define macros
     139   other than FBSD_* prefixed ones, or USING_CONFIG_FREEBSD_SPEC.  */
  • gcc/config/frv/linux.h

    diff -Naur gcc-5.2.0.orig/gcc/config/frv/linux.h gcc-5.2.0/gcc/config/frv/linux.h
    old new  
    3434#define ENDFILE_SPEC \
    3535  "%{shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s"
    3636
    37 #define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
     37#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
    3838
    3939#undef LINK_SPEC
    4040#define LINK_SPEC "\
  • gcc/config/i386/gnu.h

    diff -Naur gcc-5.2.0.orig/gcc/config/i386/gnu.h gcc-5.2.0/gcc/config/i386/gnu.h
    old new  
    2222#define GNU_USER_LINK_EMULATION "elf_i386"
    2323
    2424#undef GNU_USER_DYNAMIC_LINKER
    25 #define GNU_USER_DYNAMIC_LINKER "/lib/ld.so"
     25#define GNU_USER_DYNAMIC_LINKER "/tools/lib/ld.so"
    2626
    2727#undef  STARTFILE_SPEC
    2828#if defined HAVE_LD_PIE
  • gcc/config/i386/kfreebsd-gnu.h

    diff -Naur gcc-5.2.0.orig/gcc/config/i386/kfreebsd-gnu.h gcc-5.2.0/gcc/config/i386/kfreebsd-gnu.h
    old new  
    1919<http://www.gnu.org/licenses/>.  */
    2020
    2121#define GNU_USER_LINK_EMULATION "elf_i386_fbsd"
    22 #define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
     22#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
  • gcc/config/i386/kfreebsd-gnu64.h

    diff -Naur gcc-5.2.0.orig/gcc/config/i386/kfreebsd-gnu64.h gcc-5.2.0/gcc/config/i386/kfreebsd-gnu64.h
    old new  
    2222#define GNU_USER_LINK_EMULATION64 "elf_x86_64_fbsd"
    2323#define GNU_USER_LINK_EMULATIONX32 "elf32_x86_64_fbsd"
    2424
    25 #define GLIBC_DYNAMIC_LINKER32 "/lib/ld.so.1"
    26 #define GLIBC_DYNAMIC_LINKER64 "/lib/ld-kfreebsd-x86-64.so.1"
    27 #define GLIBC_DYNAMIC_LINKERX32 "/lib/ld-kfreebsd-x32.so.1"
     25#define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld.so.1"
     26#define GLIBC_DYNAMIC_LINKER64 "/tools/lib/ld-kfreebsd-x86-64.so.1"
     27#define GLIBC_DYNAMIC_LINKERX32 "/tools/lib/ld-kfreebsd-x32.so.1"
  • gcc/config/i386/linux.h

    diff -Naur gcc-5.2.0.orig/gcc/config/i386/linux.h gcc-5.2.0/gcc/config/i386/linux.h
    old new  
    2020<http://www.gnu.org/licenses/>.  */
    2121
    2222#define GNU_USER_LINK_EMULATION "elf_i386"
    23 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
     23#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
  • gcc/config/i386/linux64.h

    diff -Naur gcc-5.2.0.orig/gcc/config/i386/linux64.h gcc-5.2.0/gcc/config/i386/linux64.h
    old new  
    2727#define GNU_USER_LINK_EMULATION64 "elf_x86_64"
    2828#define GNU_USER_LINK_EMULATIONX32 "elf32_x86_64"
    2929
    30 #define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2"
    31 #define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux-x86-64.so.2"
    32 #define GLIBC_DYNAMIC_LINKERX32 "/libx32/ld-linux-x32.so.2"
     30#define GLIBC_DYNAMIC_LINKER32 "/tools/lib32/ld-linux.so.2"
     31#define GLIBC_DYNAMIC_LINKER64 "/tools/lib/ld-linux-x86-64.so.2"
     32#define GLIBC_DYNAMIC_LINKERX32 "/tools/libx32/ld-linux-x32.so.2"
  • gcc/config/i386/t-linux64

    diff -Naur gcc-5.2.0.orig/gcc/config/i386/t-linux64 gcc-5.2.0/gcc/config/i386/t-linux64
    old new  
    3333comma=,
    3434MULTILIB_OPTIONS    = $(subst $(comma),/,$(TM_MULTILIB_CONFIG))
    3535MULTILIB_DIRNAMES   = $(patsubst m%, %, $(subst /, ,$(MULTILIB_OPTIONS)))
    36 MULTILIB_OSDIRNAMES = m64=../lib64$(call if_multiarch,:x86_64-linux-gnu)
    37 MULTILIB_OSDIRNAMES+= m32=$(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib)$(call if_multiarch,:i386-linux-gnu)
     36MULTILIB_OSDIRNAMES = m64=../lib$(call if_multiarch,:x86_64-linux-gnu)
     37MULTILIB_OSDIRNAMES+= m32=$(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib32)$(call if_multiarch,:i386-linux-gnu)
    3838MULTILIB_OSDIRNAMES+= mx32=../libx32$(call if_multiarch,:x86_64-linux-gnux32)
  • gcc/config/ia64/linux.h

    diff -Naur gcc-5.2.0.orig/gcc/config/ia64/linux.h gcc-5.2.0/gcc/config/ia64/linux.h
    old new  
    5555/* Define this for shared library support because it isn't in the main
    5656   linux.h file.  */
    5757
    58 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-ia64.so.2"
     58#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux-ia64.so.2"
    5959
    6060#undef LINK_SPEC
    6161#define LINK_SPEC "\
  • gcc/config/knetbsd-gnu.h

    diff -Naur gcc-5.2.0.orig/gcc/config/knetbsd-gnu.h gcc-5.2.0/gcc/config/knetbsd-gnu.h
    old new  
    3232
    3333
    3434#undef GNU_USER_DYNAMIC_LINKER
    35 #define GNU_USER_DYNAMIC_LINKER "/lib/ld.so.1"
     35#define GNU_USER_DYNAMIC_LINKER "/tools/lib/ld.so.1"
  • gcc/config/kopensolaris-gnu.h

    diff -Naur gcc-5.2.0.orig/gcc/config/kopensolaris-gnu.h gcc-5.2.0/gcc/config/kopensolaris-gnu.h
    old new  
    3131  while (0)
    3232
    3333#undef GNU_USER_DYNAMIC_LINKER
    34 #define GNU_USER_DYNAMIC_LINKER "/lib/ld.so.1"
     34#define GNU_USER_DYNAMIC_LINKER "/tools/lib/ld.so.1"
  • gcc/config/linux.h

    diff -Naur gcc-5.2.0.orig/gcc/config/linux.h gcc-5.2.0/gcc/config/linux.h
    old new  
    7373   GLIBC_DYNAMIC_LINKER must be defined for each target using them, or
    7474   GLIBC_DYNAMIC_LINKER32 and GLIBC_DYNAMIC_LINKER64 for targets
    7575   supporting both 32-bit and 64-bit compilation.  */
    76 #define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
    77 #define UCLIBC_DYNAMIC_LINKER32 "/lib/ld-uClibc.so.0"
    78 #define UCLIBC_DYNAMIC_LINKER64 "/lib/ld64-uClibc.so.0"
    79 #define UCLIBC_DYNAMIC_LINKERX32 "/lib/ldx32-uClibc.so.0"
     76#define UCLIBC_DYNAMIC_LINKER "/tools/lib/ld-uClibc.so.0"
     77#define UCLIBC_DYNAMIC_LINKER32 "/tools/lib/ld-uClibc.so.0"
     78#define UCLIBC_DYNAMIC_LINKER64 "/tools/lib/ld64-uClibc.so.0"
     79#define UCLIBC_DYNAMIC_LINKERX32 "/tools/lib/ldx32-uClibc.so.0"
    8080#define BIONIC_DYNAMIC_LINKER "/system/bin/linker"
    8181#define BIONIC_DYNAMIC_LINKER32 "/system/bin/linker"
    8282#define BIONIC_DYNAMIC_LINKER64 "/system/bin/linker64"
  • gcc/config/lm32/uclinux-elf.h

    diff -Naur gcc-5.2.0.orig/gcc/config/lm32/uclinux-elf.h gcc-5.2.0/gcc/config/lm32/uclinux-elf.h
    old new  
    6767   %{shared:-shared} \
    6868   %{symbolic:-Bsymbolic} \
    6969   %{rdynamic:-export-dynamic} \
    70    -dynamic-linker /lib/ld-linux.so.2"
     70   -dynamic-linker /tools/lib/ld-linux.so.2"
    7171
    7272#define TARGET_OS_CPP_BUILTINS() GNU_USER_TARGET_OS_CPP_BUILTINS()
    7373
  • gcc/config/m32r/linux.h

    diff -Naur gcc-5.2.0.orig/gcc/config/m32r/linux.h gcc-5.2.0/gcc/config/m32r/linux.h
    old new  
    3737   When the -shared link option is used a final link is not being
    3838   done.  */
    3939
    40 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
     40#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
    4141
    4242#undef  LINK_SPEC
    4343#if TARGET_LITTLE_ENDIAN
  • gcc/config/m68k/linux.h

    diff -Naur gcc-5.2.0.orig/gcc/config/m68k/linux.h gcc-5.2.0/gcc/config/m68k/linux.h
    old new  
    7171   When the -shared link option is used a final link is not being
    7272   done.  */
    7373
    74 #define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
     74#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
    7575
    7676#undef LINK_SPEC
    7777#define LINK_SPEC "-m m68kelf %{shared} \
  • gcc/config/microblaze/linux.h

    diff -Naur gcc-5.2.0.orig/gcc/config/microblaze/linux.h gcc-5.2.0/gcc/config/microblaze/linux.h
    old new  
    2828#undef TLS_NEEDS_GOT
    2929#define TLS_NEEDS_GOT 1
    3030
    31 #define DYNAMIC_LINKER "/lib/ld.so.1"
     31#define DYNAMIC_LINKER "/tools/lib/ld.so.1"
    3232#undef  SUBTARGET_EXTRA_SPECS
    3333#define SUBTARGET_EXTRA_SPECS \
    3434  { "dynamic_linker", DYNAMIC_LINKER }
  • gcc/config/microblaze/linux.h.orig

    diff -Naur gcc-5.2.0.orig/gcc/config/microblaze/linux.h.orig gcc-5.2.0/gcc/config/microblaze/linux.h.orig
    old new  
     1/* Definitions for MicroBlaze running Linux.
     2   Copyright (C) 2009-2015 Free Software Foundation, Inc.
     3
     4   This file is part of GCC.
     5
     6   Contributed by Michael Eager <eager@eagercon.com>.
     7
     8   GCC is free software; you can redistribute it and/or modify
     9   it under the terms of the GNU General Public License as published by
     10   the Free Software Foundation; either version 3, or (at your option)
     11   any later version.
     12
     13   GCC is distributed in the hope that it will be useful,
     14   but WITHOUT ANY WARRANTY; without even the implied warranty of
     15   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     16   GNU General Public License for more details.
     17
     18   You should have received a copy of the GNU General Public License
     19   along with GCC; see the file COPYING3.  If not see
     20   <http://www.gnu.org/licenses/>.  */
     21
     22#undef TARGET_SUPPORTS_PIC
     23#define TARGET_SUPPORTS_PIC 1
     24
     25#undef CPP_SPEC
     26#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
     27
     28#undef TLS_NEEDS_GOT
     29#define TLS_NEEDS_GOT 1
     30
     31#define DYNAMIC_LINKER "/lib/ld.so.1"
     32#undef  SUBTARGET_EXTRA_SPECS
     33#define SUBTARGET_EXTRA_SPECS \
     34  { "dynamic_linker", DYNAMIC_LINKER }
     35
     36#undef LINK_SPEC
     37#define LINK_SPEC "%{shared:-shared} \
     38  %{!shared: \
     39    %{!static: \
     40      %{rdynamic:-export-dynamic} \
     41      -dynamic-linker %(dynamic_linker)} \
     42    %{static:-static}} \
     43  %{mbig-endian:-EB} \
     44  %{mlittle-endian:-EL}"
     45
     46/* For the microblaze-*-linux* subtarget.  */
     47#undef TARGET_OS_CPP_BUILTINS
     48#define TARGET_OS_CPP_BUILTINS() GNU_USER_TARGET_OS_CPP_BUILTINS()
  • gcc/config/mn10300/linux.h

    diff -Naur gcc-5.2.0.orig/gcc/config/mn10300/linux.h gcc-5.2.0/gcc/config/mn10300/linux.h
    old new  
    3232#undef  ASM_SPEC
    3333#define ASM_SPEC ""
    3434
    35 #define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
     35#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
    3636
    3737#undef  LINK_SPEC
    3838#define LINK_SPEC "%{mrelax:--relax} %{shared:-shared} \
  • gcc/config/nios2/linux.h

    diff -Naur gcc-5.2.0.orig/gcc/config/nios2/linux.h gcc-5.2.0/gcc/config/nios2/linux.h
    old new  
    2929#undef CPP_SPEC
    3030#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
    3131
    32 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-nios2.so.1"
     32#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux-nios2.so.1"
    3333
    3434#undef LINK_SPEC
    3535#define LINK_SPEC LINK_SPEC_ENDIAN \
  • gcc/config/nios2/linux.h.orig

    diff -Naur gcc-5.2.0.orig/gcc/config/nios2/linux.h.orig gcc-5.2.0/gcc/config/nios2/linux.h.orig
    old new  
     1/* Definitions of target support for Altera Nios II systems
     2   running GNU/Linux with ELF format.
     3   Copyright (C) 2012-2015 Free Software Foundation, Inc.
     4   Contributed by Mentor Graphics, Inc.
     5
     6   This file is part of GCC.
     7
     8   GCC is free software; you can redistribute it and/or modify it
     9   under the terms of the GNU General Public License as published
     10   by the Free Software Foundation; either version 3, or (at your
     11   option) any later version.
     12
     13   GCC is distributed in the hope that it will be useful, but WITHOUT
     14   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
     15   or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
     16   License for more details.
     17
     18   You should have received a copy of the GNU General Public License
     19   along with GCC; see the file COPYING3.  If not see
     20   <http://www.gnu.org/licenses/>.  */
     21
     22#define TARGET_OS_CPP_BUILTINS()                \
     23  do                                            \
     24    {                                           \
     25      GNU_USER_TARGET_OS_CPP_BUILTINS();           \
     26    }                                           \
     27  while (0)
     28
     29#undef CPP_SPEC
     30#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
     31
     32#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-nios2.so.1"
     33
     34#undef LINK_SPEC
     35#define LINK_SPEC LINK_SPEC_ENDIAN \
     36 "%{shared:-shared} \
     37  %{!shared: \
     38    %{!static: \
     39      %{rdynamic:-export-dynamic} \
     40      -dynamic-linker " GNU_USER_DYNAMIC_LINKER "} \
     41    %{static:-static}}"
     42
     43/* This toolchain implements the ABI for Linux Systems documented in the
     44   Nios II Processor Reference Handbook.  */
     45#define TARGET_LINUX_ABI 1
     46
  • gcc/config/pa/pa-linux.h

    diff -Naur gcc-5.2.0.orig/gcc/config/pa/pa-linux.h gcc-5.2.0/gcc/config/pa/pa-linux.h
    old new  
    3737/* Define this for shared library support because it isn't in the main
    3838   linux.h file.  */
    3939
    40 #define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
     40#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
    4141
    4242#undef LINK_SPEC
    4343#define LINK_SPEC "\
  • gcc/config/rs6000/linux64.h

    diff -Naur gcc-5.2.0.orig/gcc/config/rs6000/linux64.h gcc-5.2.0/gcc/config/rs6000/linux64.h
    old new  
    357357#undef  LINK_OS_DEFAULT_SPEC
    358358#define LINK_OS_DEFAULT_SPEC "%(link_os_linux)"
    359359
    360 #define GLIBC_DYNAMIC_LINKER32 "/lib/ld.so.1"
     360#define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld.so.1"
    361361#ifdef LINUX64_DEFAULT_ABI_ELFv2
    362 #define GLIBC_DYNAMIC_LINKER64 "%{mabi=elfv1:/lib64/ld64.so.1;:/lib64/ld64.so.2}"
     362#define GLIBC_DYNAMIC_LINKER64 "%{mabi=elfv1:/tools/lib64/ld64.so.1;:/tools/lib64/ld64.so.2}"
    363363#else
    364 #define GLIBC_DYNAMIC_LINKER64 "%{mabi=elfv2:/lib64/ld64.so.2;:/lib64/ld64.so.1}"
     364#define GLIBC_DYNAMIC_LINKER64 "%{mabi=elfv2:/tools/lib64/ld64.so.2;:/tools/lib64/ld64.so.1}"
    365365#endif
    366 #define UCLIBC_DYNAMIC_LINKER32 "/lib/ld-uClibc.so.0"
    367 #define UCLIBC_DYNAMIC_LINKER64 "/lib/ld64-uClibc.so.0"
     366#define UCLIBC_DYNAMIC_LINKER32 "/tools/lib/ld-uClibc.so.0"
     367#define UCLIBC_DYNAMIC_LINKER64 "/tools/lib/ld64-uClibc.so.0"
    368368#if DEFAULT_LIBC == LIBC_UCLIBC
    369369#define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:" G ";:" U "}"
    370370#elif DEFAULT_LIBC == LIBC_GLIBC
  • gcc/config/rs6000/sysv4.h

    diff -Naur gcc-5.2.0.orig/gcc/config/rs6000/sysv4.h gcc-5.2.0/gcc/config/rs6000/sysv4.h
    old new  
    762762
    763763#define LINK_START_LINUX_SPEC ""
    764764
    765 #define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
    766 #define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
     765#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
     766#define UCLIBC_DYNAMIC_LINKER "/tools/lib/ld-uClibc.so.0"
    767767#if DEFAULT_LIBC == LIBC_UCLIBC
    768768#define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:" G ";:" U "}"
    769769#elif !defined (DEFAULT_LIBC) || DEFAULT_LIBC == LIBC_GLIBC
  • gcc/config/s390/linux.h

    diff -Naur gcc-5.2.0.orig/gcc/config/s390/linux.h gcc-5.2.0/gcc/config/s390/linux.h
    old new  
    6060#define MULTILIB_DEFAULTS { "m31" }
    6161#endif
    6262
    63 #define GLIBC_DYNAMIC_LINKER32 "/lib/ld.so.1"
    64 #define GLIBC_DYNAMIC_LINKER64 "/lib/ld64.so.1"
     63#define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld.so.1"
     64#define GLIBC_DYNAMIC_LINKER64 "/tools/lib/ld64.so.1"
    6565
    6666#undef  LINK_SPEC
    6767#define LINK_SPEC \
  • gcc/config/sh/linux.h

    diff -Naur gcc-5.2.0.orig/gcc/config/sh/linux.h gcc-5.2.0/gcc/config/sh/linux.h
    old new  
    4343
    4444#define TARGET_ASM_FILE_END file_end_indicate_exec_stack
    4545
    46 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
     46#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
    4747
    4848#undef SUBTARGET_LINK_EMUL_SUFFIX
    4949#define SUBTARGET_LINK_EMUL_SUFFIX "_linux"
  • gcc/config/sparc/linux.h

    diff -Naur gcc-5.2.0.orig/gcc/config/sparc/linux.h gcc-5.2.0/gcc/config/sparc/linux.h
    old new  
    8383   When the -shared link option is used a final link is not being
    8484   done.  */
    8585
    86 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
     86#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
    8787
    8888#undef  LINK_SPEC
    8989#define LINK_SPEC "-m elf32_sparc %{shared:-shared} \
  • gcc/config/sparc/linux64.h

    diff -Naur gcc-5.2.0.orig/gcc/config/sparc/linux64.h gcc-5.2.0/gcc/config/sparc/linux64.h
    old new  
    8484   When the -shared link option is used a final link is not being
    8585   done.  */
    8686
    87 #define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2"
    88 #define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux.so.2"
     87#define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld-linux.so.2"
     88#define GLIBC_DYNAMIC_LINKER64 "/tools/lib64/ld-linux.so.2"
    8989
    9090#ifdef SPARC_BI_ARCH
    9191
     
    193193#else /* !SPARC_BI_ARCH */
    194194
    195195#undef LINK_SPEC
    196 #define LINK_SPEC "-m elf64_sparc -Y P,%R/usr/lib64 %{shared:-shared} \
     196#define LINK_SPEC "-m elf64_sparc -Y P,%R/tools/lib64 %{shared:-shared} \
    197197  %{!shared: \
    198198    %{!static: \
    199199      %{rdynamic:-export-dynamic} \
  • gcc/config/xtensa/linux.h

    diff -Naur gcc-5.2.0.orig/gcc/config/xtensa/linux.h gcc-5.2.0/gcc/config/xtensa/linux.h
    old new  
    4444  %{mlongcalls:--longcalls} \
    4545  %{mno-longcalls:--no-longcalls}"
    4646
    47 #define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
     47#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
    4848
    4949#undef LINK_SPEC
    5050#define LINK_SPEC \
Note: See TracBrowser for help on using the repository browser.