| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | . $(dirnamescip-shell system . . dirname. $0)/common.inc |
| 3 | |
| 4 | catscip-shell system . . cat. <<EOF | $CC -o $t/a.o -c -x assembler - |
| 5 | .globl foo |
| 6 | .data |
| 7 | foo: |
| 8 | .short foo |
| 9 | EOF |
| 10 | |
| 11 | not ./mold -e foo -o $t/exe $t/a.o |& |
| 12 | grepscip-shell system . . grep. -F 'relocation R_X86_64_16 against foo out of range' |