Skip to content

Commit b40183b

Browse files
authored
Pass -no-pie to linker in nativize_llvm.py (emscripten-core#6416)
The default (on my system anyway) seem to be -pie but the .bc.o file contains relocations are not compatible with PIE. TESTED=./tests/runner.py other.test_llvm_nativizer
1 parent 9fa380a commit b40183b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/nativize_llvm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ def path_from_root(*pathelems):
3939
sys.exit(1)
4040

4141
print('o => runnable')
42-
check_call(['g++', path_from_root('system', 'lib', 'debugging.cpp'), filename + '.o', '-o', filename + '.run'] + ['-l' + lib for lib in libs])
42+
check_call(['g++', '-no-pie', path_from_root('system', 'lib', 'debugging.cpp'), filename + '.o', '-o', filename + '.run'] + ['-l' + lib for lib in libs])
4343

4444
sys.exit(0)

0 commit comments

Comments
 (0)