sys-libs/glibc: avoid GPREL overflow on ia64, bug #723268
authorSergei Trofimovich <slyfox@gentoo.org>
Fri, 15 May 2020 23:11:54 +0000 (00:11 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Fri, 15 May 2020 23:12:14 +0000 (00:12 +0100)
commitf43c7cd9e5a92d784af5e21ba22083cdb70c0e51
tree1a601b3d3595e48324eaf2ef5c996a23c9210357
parente5d0bdbb7b11186afcc616967a8dc57369dd9555
sys-libs/glibc: avoid GPREL overflow on ia64, bug #723268

-fno-common had unintended side-effect to optimise more
accesses to global variables as module-local via GPREL22
relocations. Unfortunately glibc is large enough to overflow
GPREL22 offset.

Let's add a -fcommon workaround back to pessimize code slightly
that refers module-local globals. We'll need an equivalen of
-fPIC to do it consistently.

Bug: https://bugs.gentoo.org/723268
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
sys-libs/glibc/glibc-2.30-r8.ebuild
sys-libs/glibc/glibc-2.31-r3.ebuild
sys-libs/glibc/glibc-9999.ebuild