[Bug 1987438] Re: Build libc_nonshared with -fPIE not -fpie

Richard Henderson 1987438 at bugs.launchpad.net
Tue Aug 23 19:08:43 UTC 2022


Also seen in an Ubuntu 20.04 LTS docker container.

-- 
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