[Bug driver/88262] gcc uses crt1.o in place of Scrt1.o when the main function is in a PIC shared lib

stephen.kim at oracle dot com gcc-bugzilla@gcc.gnu.org
Sat Dec 1 09:16:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88262

--- Comment #12 from Stephen Kim <stephen.kim at oracle dot com> ---
(In reply to joseph@codesourcery.com from comment #8)
> On Fri, 30 Nov 2018, stephen.kim at oracle dot com wrote:
> 
> > The glibc commit that triggered this bug is:
> >  bfff8b1becd7d01c074177df7196ab327cd8c844 
> 
> That's the copyright date updates for 2017.

Thank you for the information. Anyway, the patch is still in glibc, and it is
particularly for aarch64. If the bug wasn't reproduced on a system such as
Gentoo, Debian, etc, it is due to either of the following two:
  1. gcc is configured with --enable-default-pie (e.g. Debian, Gentoo)
  2. glibc is old and the patch hasn't been backported (e.g. old Oracle Linux)


More information about the Gcc-bugs mailing list