[Bug 1987438] Re: Build libc_nonshared with -fPIE not -fpie
Michael Hudson-Doyle
1987438 at bugs.launchpad.net
Thu Aug 25 01:57:31 UTC 2022
Is this something you would hope to see changed in an update to 22.04
and 20.04? I see you've proposed a patch upstream which should filter
its way into future Ubuntu in the usual ways.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to glibc in Ubuntu.
https://bugs.launchpad.net/bugs/1987438
Title:
Build libc_nonshared with -fPIE not -fpie
Status in glibc package in Ubuntu:
New
Bug description:
Upstream bug:
https://sourceware.org/bugzilla/show_bug.cgi?id=29514
$ lsb_release -rd
Description: Ubuntu 22.04.1 LTS
Release: 22.04
In Makeconfig, similar to "pic-ccflag = -fPIC", the default
for pie-ccflag should be '-fPIE' not '-fpie'.
Otherwise, large projects using -static-pie may see, e.g.
/usr/lib/gcc/aarch64-linux-gnu/11/../../../../aarch64-linux-gnu/lib/../lib/libc.a(init-first.o): in function `__libc_init_first':
(.text+0x10): relocation truncated to fit: R_AARCH64_LD64_GOTPAGE_LO15 against symbol `__environ' defined in .bss section in /usr/lib/gcc/aarch64-linux-gnu/11/../../../../aarch64-linux-gnu/lib/../lib/libc.a(environ.o)
/usr/bin/ld: (.text+0x10): warning: too many GOT entries for -fpic, please recompile with -fPIC
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1987438/+subscriptions
More information about the foundations-bugs
mailing list