diff options
author | Sam Clegg <sbc@chromium.org> | 2019-04-10 11:24:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-10 11:24:00 -0700 |
commit | 39eae1d5772099282af656ee2bb0ce388e2e7268 (patch) | |
tree | d72e4be3604c5922fb5bec9fed7cecdc7af279ab /scripts | |
parent | 85c303de41b1e0d46cb3d389512b9ab10472391e (diff) | |
download | binaryen-39eae1d5772099282af656ee2bb0ce388e2e7268.tar.gz binaryen-39eae1d5772099282af656ee2bb0ce388e2e7268.tar.bz2 binaryen-39eae1d5772099282af656ee2bb0ce388e2e7268.zip |
Handle relocatable code in AsmConstWalker (#1992)
In relocatable code the constant offset might be relative to
__memory_base.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/test/generate_lld_tests.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/test/generate_lld_tests.py b/scripts/test/generate_lld_tests.py index 31634e7b0..740a08591 100755 --- a/scripts/test/generate_lld_tests.py +++ b/scripts/test/generate_lld_tests.py @@ -61,7 +61,6 @@ def generate_wast_files(llvm_bin, emscripten_root): os.path.join(llvm_bin, 'wasm-ld'), '-flavor', 'wasm', '-z', '-stack-size=1048576', obj_path, '-o', wasm_path, - '--entry=main', '--allow-undefined', '--export', '__wasm_call_ctors', '--global-base=568', @@ -70,6 +69,8 @@ def generate_wast_files(llvm_bin, emscripten_root): compile_cmd.append('-fPIC') compile_cmd.append('-fvisibility=default') link_cmd.append('-shared') + else: + link_cmd.append('--entry=main') try: run_command(compile_cmd) |