[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/24156] gcc -N -nostdlib test.c creates PT_PHDR out of range for
From: |
amodra at gmail dot com |
Subject: |
[Bug ld/24156] gcc -N -nostdlib test.c creates PT_PHDR out of range for auxiliary vector fetching of AT_PHDR |
Date: |
Wed, 28 Feb 2024 22:07:08 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=24156
--- Comment #3 from Alan Modra <amodra at gmail dot com> ---
-nostdlib is a gcc flag, not a ld flag. You will probably find that gcc is
passing -pie to ld. PIEs usually have dynamic relocations, so ld adds
PT_INTERP to specify a dynamic linker. This is done in ld before it is known
whether any dynamic relocations (or other dynamic sections which imply
PT_INTERP) are needed.
--
You are receiving this mail because:
You are on the CC list for the bug.