Skip to content

Commit ddc7c05

Browse files
committed
Use objcopy in the opcodes test to extract the text section
1 parent 65768a2 commit ddc7c05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/opcodes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ exports.checkAgainstGcc = async function(source)
4444
input: ".globl _start\n_start:\n" + source
4545
});
4646

47-
execSync("ld --oformat binary -o /tmp/opcodeTest /tmp/opcodeTest.o");
47+
execSync("objcopy /tmp/opcodeTest.o --dump-section .text=/tmp/opcodeTest");
4848
return readFileSync("/tmp/opcodeTest");
4949
}
5050

0 commit comments

Comments
 (0)