-fcommon generated PLT references and added double memory
dereference.
-mno-sdata is slightly more efficient as it still sees
globals to be module local varilables and uses GPREL64
(instead of PLT indirection) and uses single memory
dereference.
Bug: https://bugs.gentoo.org/723268
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
# Workaround GPREL22 overflow by slightly pessimizing global
# references to go via 64-bit relocations instead of 22-bit ones.
# This allows building glibc on ia64 without an overflow: #723268
- append-flags -fcommon
+ append-flags -mno-sdata
+ :
;;
mips)
# The mips abi cannot support the GNU style hashes. #233233
# Workaround GPREL22 overflow by slightly pessimizing global
# references to go via 64-bit relocations instead of 22-bit ones.
# This allows building glibc on ia64 without an overflow: #723268
- append-flags -fcommon
+ append-flags -mno-sdata
+ :
;;
mips)
# The mips abi cannot support the GNU style hashes. #233233
# Workaround GPREL22 overflow by slightly pessimizing global
# references to go via 64-bit relocations instead of 22-bit ones.
# This allows building glibc on ia64 without an overflow: #723268
- append-flags -fcommon
+ append-flags -mno-sdata
+ :
;;
mips)
# The mips abi cannot support the GNU style hashes. #233233