am a503fb36
: PIE executables created with mingw use "mainCRTStartup" as their entry point.
* commit 'a503fb362918363b28637b487eba83e9ad647ceb': PIE executables created with mingw use "mainCRTStartup" as their entry point.
This commit is contained in:
commit
2094f855a8
1 changed files with 4 additions and 0 deletions
|
@ -1414,6 +1414,10 @@ ifdef BUILD_HOST_static
|
|||
HOST_FPIE_FLAGS :=
|
||||
else
|
||||
HOST_FPIE_FLAGS := -pie
|
||||
# Force the correct entry point to workaround a bug in binutils that manifests with -pie
|
||||
ifeq ($(HOST_OS),windows)
|
||||
HOST_FPIE_FLAGS += -Wl,-e_mainCRTStartup
|
||||
endif
|
||||
endif
|
||||
|
||||
ifneq ($(HOST_CUSTOM_LD_COMMAND),true)
|
||||
|
|
Loading…
Reference in a new issue