Skip to content

Commit

Permalink
Remove -felf64 on aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
MyNameIsTrez committed Sep 13, 2024
1 parent 9e052f0 commit 658e309
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -948,11 +948,12 @@ static void regenerate_expected_dll(
) {
// printf(" Regenerating expected.so...\n");

run((char *[]){"nasm", nasm_path, "-felf64", "-O0", "-o", nasm_o_path, NULL});

#ifdef __x86_64__
run((char *[]){"nasm", nasm_path, "-felf64", "-O0", "-o", nasm_o_path, NULL});
run((char *[]){"ld", nasm_o_path, "-o", expected_dll_path, "-shared", "--hash-style=sysv", NULL});
#elif __aarch64__
run((char *[]){"nasm", nasm_path, "-O0", "-o", nasm_o_path, NULL});
run((char *[]){"ld", nasm_o_path, "-o", expected_dll_path, "-dylib", NULL});
#else
#error Unsupported or unrecognized architecture
Expand Down

0 comments on commit 658e309

Please sign in to comment.