summaryrefslogtreecommitdiffstats
path: root/share/mk
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2002-10-13 02:52:22 +0000
committermarcel <marcel@FreeBSD.org>2002-10-13 02:52:22 +0000
commitc6eea350fcfdb6696d8e29427e3457e4a5723027 (patch)
tree58e786e11501235e24195af295761a57bc800daf /share/mk
parentcf195c5ed6e5764ba6c19016c02d87d7ca2cc7ad (diff)
downloadFreeBSD-src-c6eea350fcfdb6696d8e29427e3457e4a5723027.zip
FreeBSD-src-c6eea350fcfdb6696d8e29427e3457e4a5723027.tar.gz
ia64 specific CFLAGS change:
Fix the "@gprel relocation against dynamic symbol xxx" linker error. Variables defined in the link unit and small enough to be put in the short data section will have a gp-relative access sequence (using the @gprel relocation). It is invalid to have @gprel relocations in shared libraries, because they are to be resolved by the static linker and not the dynamic linker. The -fpic option will cause @ltoff relocations for @gprel relocations, but the side-effects are untested (if any). Instead, disable/eliminate the short data section to achieve the same.
Diffstat (limited to 'share/mk')
-rw-r--r--share/mk/bsd.kern.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/mk/bsd.kern.mk b/share/mk/bsd.kern.mk
index e044926..214ef1a 100644
--- a/share/mk/bsd.kern.mk
+++ b/share/mk/bsd.kern.mk
@@ -40,7 +40,7 @@ CFLAGS+= -mno-fp-regs -ffixed-8 -Wa,-mev6
# a very small subset of float registers for integer divides.
#
.if ${MACHINE_ARCH} == "ia64"
-CFLAGS+= -ffixed-r13 -mfixed-range=f32-f127
+CFLAGS+= -ffixed-r13 -mfixed-range=f32-f127 -mno-sdata
.endif
#
OpenPOWER on IntegriCloud