Build libc_nonshared with -fPIE not -fpie
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
glibc (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Upstream bug:
https:/
$ 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/
(.text+0x10): relocation truncated to fit: R_AARCH64_
/usr/bin/ld: (.text+0x10): warning: too many GOT entries for -fpic, please recompile with -fPIC
Also seen in an Ubuntu 20.04 LTS docker container.