bug-binutils
[Top][All Lists]
Advanced

[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: ryan at bitlackeys dot org
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 17:43:17 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=24156

--- Comment #2 from elfmaster <ryan at bitlackeys dot org> ---
(In reply to Alan Modra from comment #1)
> Current ld will give "t: error: PHDR segment not covered by LOAD segment",
> so fixed.

The workaround is to add in the -Wl,--no-dynamic-linker, but why does
the -nostdib flag bother including a PT_INTERP segment into the ELF executable?
The -nostdlib (no standard library) indicates that the dynamic linker is not
needed.... 

As long as someone can specify a custom ELF interpreter if needed, I do believe
that the -nostdlib flag should not be including a PT_INTERP segment.

Thoughts?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]