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.
This commit is contained in:
parent
cf195c5ed6
commit
c6eea350fc
@ -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
|
||||
|
||||
#
|
||||
|
@ -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
|
||||
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user