Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
rui314 committed Jan 14, 2025
1 parent 2bb42ba commit 9fe8831
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/textrel2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,8 @@ EOF
$CC -B. -o $t/exe1 $t/a.o -pie
$QEMU $t/exe1 | grep -q 'Hello world'

$CC -B. -o $t/exe2 $t/a.o -pie -Wl,-z,pack-relative-relocs
$QEMU $t/exe2 | grep -q 'Hello world'
$CC -o $t/exe2 $t/a.o -pie -Wl,-z,pack-relative-relocs 2> /dev/null || skip
$QEMU $t/exe2 2> /dev/null | grep -q 'Hello world' || skip

$CC -B. -o $t/exe3 $t/a.o -pie -Wl,-z,pack-relative-relocs
$QEMU $t/exe3 | grep -q 'Hello world'

0 comments on commit 9fe8831

Please sign in to comment.