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