diff options
author | Jakub Jelinek <jakub@redhat.com> | 2017-09-14 09:56:23 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2017-09-14 09:56:23 +0200 |
commit | 8c6562e12bf7d1406474cbba832073a4afe5687c (patch) | |
tree | c36d15fa07dd1f599e60da37b986e77a2403abd0 /gcc/config/alpha | |
parent | 022aa0ce5eebafe60f20245c8ff26b60a5074dfd (diff) | |
download | gcc-8c6562e12bf7d1406474cbba832073a4afe5687c.zip gcc-8c6562e12bf7d1406474cbba832073a4afe5687c.tar.gz gcc-8c6562e12bf7d1406474cbba832073a4afe5687c.tar.bz2 |
elf.h (LINK_EH_SPEC): Add -static-pie support.
* config/alpha/elf.h (LINK_EH_SPEC): Add -static-pie support.
* config/alpha/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
* config/netbsd.h (LINK_EH_SPEC): Likewise.
* config/sol2.h (LINK_EH_SPEC): Likewise.
* config/arm/uclinux-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
* config/s390/linux.h (LINK_SPEC): Likewise.
* config/freebsd.h (LINK_EH_SPEC): Likewise.
* config/openbsd.h (LINK_EH_SPEC): Likewise.
* config/lm32/uclinux-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
* config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Likewise.
* config/powerpcspe/sysv4.h (LINK_EH_SPEC): Likewise.
* config/bfin/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
* config/i386/gnu-user64.h (GNU_USER_TARGET_LINK_SPEC): Fix a typo.
* config/i386/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Formatting fix.
From-SVN: r252750
Diffstat (limited to 'gcc/config/alpha')
-rw-r--r-- | gcc/config/alpha/elf.h | 2 | ||||
-rw-r--r-- | gcc/config/alpha/linux.h | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/gcc/config/alpha/elf.h b/gcc/config/alpha/elf.h index c109b07..29ff1d9 100644 --- a/gcc/config/alpha/elf.h +++ b/gcc/config/alpha/elf.h @@ -168,5 +168,5 @@ extern int alpha_this_gpdisp_sequence_number; I imagine that other systems will catch up. In the meantime, it doesn't harm to make sure that the data exists to be used later. */ #if defined(HAVE_LD_EH_FRAME_HDR) -#define LINK_EH_SPEC "%{!static:--eh-frame-hdr} " +#define LINK_EH_SPEC "%{!static|static-pie:--eh-frame-hdr} " #endif diff --git a/gcc/config/alpha/linux.h b/gcc/config/alpha/linux.h index e15013e..2f2a185 100644 --- a/gcc/config/alpha/linux.h +++ b/gcc/config/alpha/linux.h @@ -79,7 +79,8 @@ along with GCC; see the file COPYING3. If not see #define TARGET_POSIX_IO #define LINK_GCC_C_SEQUENCE_SPEC \ - "%{static:--start-group} %G %L %{static:--end-group}%{!static:%G}" + "%{static|static-pie:--start-group} %G %L \ + %{static|static-pie:--end-group}%{!static:%{!static-pie:%G}}" /* Use --as-needed -lgcc_s for eh support. */ #ifdef HAVE_LD_AS_NEEDED |