am 2094f855
: am a503fb36
: PIE executables created with mingw use "mainCRTStartup" as their entry point.
* commit '2094f855a89277320bd9533108e443e92d2dc25b': PIE executables created with mingw use "mainCRTStartup" as their entry point.
This commit is contained in:
@@ -1423,6 +1423,10 @@ ifdef BUILD_HOST_static
|
|||||||
HOST_FPIE_FLAGS :=
|
HOST_FPIE_FLAGS :=
|
||||||
else
|
else
|
||||||
HOST_FPIE_FLAGS := -pie
|
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
|
endif
|
||||||
|
|
||||||
ifneq ($(HOST_CUSTOM_LD_COMMAND),true)
|
ifneq ($(HOST_CUSTOM_LD_COMMAND),true)
|
||||||
|
Reference in New Issue
Block a user