1
1
mirror of https://github.com/rui314/mold.git synced 2024-10-26 13:10:46 +03:00
mold/test/elf/x86_64_reloc-zero.sh
Rui Ueyama 4e3364ddd3 Format
2024-03-27 18:42:55 +09:00

13 lines
194 B
Bash
Executable File

#!/bin/bash
. $(dirname $0)/common.inc
cat <<EOF | $CC -o $t/a.o -c -x assembler -
foo: jmp 0
EOF
cat <<EOF | $CC -o $t/b.o -c -xc -
int main() {}
EOF
$CC -B. -no-pie -o $t/exe $t/a.o $t/b.o