https://sourceware.org/bugzilla/show_bug.cgi?id=21992
Bug ID: 21992 Summary: Invalid entry point used for executables on Windows Product: binutils Version: 2.29 Status: UNCONFIRMED Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: freddy77 at gmail dot com Target Milestone: --- Created attachment 10359 --> https://sourceware.org/bugzilla/attachment.cgi?id=10359&action=edit Proposed patch If you specify -pie option a different entry point is used for PE/PE+ executables, specifically the entry point for a DLL. This for instance affects attempt to use --dynamicbase which needs an relocatable executable. As different thread on internet suggests to use -pie option to enable relocations on an executable the current behaviour seems wrong. I tested with a project we have and with this patch and --dynamicbase --pie --subsystem console the correct entry point is called. -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils