bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/30922] gcc -pie generates unwanted PE export table


From: pali at kernel dot org
Subject: [Bug ld/30922] gcc -pie generates unwanted PE export table
Date: Sun, 07 Jan 2024 12:48:05 +0000

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

--- Comment #1 from Pali Rohár <pali at kernel dot org> ---
Just to note that Position Independet Executable and Export Table are two
totally different things. You can have (and it is pretty standard) to have
fixed-address executable without relocation table (so it always must be loaded
at specific virtual address) and this executable export some symbols/functions
to other later loaded DLL libraries. For example if application executable
support plugins and these plugins need to call application functions. It is
plugin DLL which must have relocation table for loading it at any address, but
for calling application executable function, there is absolutely no need to
have relocation table for application executable itself.

So it looks like that -pie option is duing two different and unrelated things:
generating relocation table and generating export table. And this should be
fixed.

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