aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/freebsd.h
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2017-09-14 09:56:23 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2017-09-14 09:56:23 +0200
commit8c6562e12bf7d1406474cbba832073a4afe5687c (patch)
treec36d15fa07dd1f599e60da37b986e77a2403abd0 /gcc/config/freebsd.h
parent022aa0ce5eebafe60f20245c8ff26b60a5074dfd (diff)
downloadgcc-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/freebsd.h')
-rw-r--r--gcc/config/freebsd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/freebsd.h b/gcc/config/freebsd.h
index a272455..e7ea423 100644
--- a/gcc/config/freebsd.h
+++ b/gcc/config/freebsd.h
@@ -45,7 +45,7 @@ along with GCC; see the file COPYING3. If not see
#define LIB_SPEC FBSD_LIB_SPEC
#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
#ifdef TARGET_LIBC_PROVIDES_SSP