@@ -1039,12 +1039,8 @@ def _handle_relocation(
1039
1039
f"-ffreestanding" , # XXX
1040
1040
# We don't need this (and it causes weird relocations):
1041
1041
f"-fno-asynchronous-unwind-tables" , # XXX
1042
- # # Disable stack-smashing canaries, which use magic symbols:
1043
- # f"-fno-stack-protector", # XXX
1044
1042
# The GHC calling convention uses %rbp as an argument-passing register:
1045
1043
f"-fomit-frame-pointer" , # XXX
1046
- # # Disable debug info:
1047
- # f"-g0", # XXX
1048
1044
]
1049
1045
1050
1046
@@ -1220,16 +1216,12 @@ def dump(self) -> str:
1220
1216
1221
1217
def main (host : str ) -> None :
1222
1218
for engine , ghccc , cflags in [
1223
- (aarch64_apple_darwin , False , [f"-I{ ROOT } " , "-fno-pic" , "-mcmodel=large" ]),
1219
+ (aarch64_apple_darwin , False , [f"-I{ ROOT } " ]),
1224
1220
(aarch64_unknown_linux_gnu , False , [f"-I{ ROOT } " , "-fno-pic" , "-mcmodel=large" ]),
1225
1221
(i686_pc_windows_msvc , True , [f"-I{ PC } " , "-fno-pic" , "-mcmodel=large" ]),
1226
1222
(x86_64_apple_darwin , True , [f"-I{ ROOT } " , "-fno-pic" , "-mcmodel=large" ]),
1227
1223
(x86_64_pc_windows_msvc , True , [f"-I{ PC } " , "-fno-pic" , "-mcmodel=large" ]),
1228
- # (x86_64_unknown_linux_gnu, True, [f"-I{ROOT}", "-fpic", "-mcmodel=large"]), # XXX
1229
- # (x86_64_unknown_linux_gnu, True, [f"-I{ROOT}", "-fno-pic", "-mcmodel=large"]), # XXX
1230
- # (x86_64_unknown_linux_gnu, True, [f"-I{ROOT}", "-fpic", "-mcmodel=medium"]), # XXX
1231
- (x86_64_unknown_linux_gnu , True , [f"-I{ ROOT } " , "-fno-pic" , "-mcmodel=medium" ]), # XXX
1232
- # (x86_64_unknown_linux_gnu, True, [f"-I{ROOT}", "-fpic", "-mcmodel=small"]), # XXX
1224
+ (x86_64_unknown_linux_gnu , True , [f"-I{ ROOT } " ]),
1233
1225
]:
1234
1226
if engine .pattern .fullmatch (host ):
1235
1227
break
0 commit comments