https://sourceware.org/bugzilla/show_bug.cgi?id=30922
--- Comment #2 from Pali Rohár <pali at kernel dot org> --- Running latest readpe on the compiled example binary from the report description shows that ld's -pie argument generate the library export table with the DLL name, even the binary should be executable: $ readpe -e test-pie.exe Exported functions Library Name: test-pie.exe -- You are receiving this mail because: You are on the CC list for the bug.