Skip to content

Commit

Permalink
test/absolute-symbols.sh: move symbol address out of the heap
Browse files Browse the repository at this point in the history
Fixes #1340

Signed-off-by: Andreas Schwab <schwab@suse.de>
  • Loading branch information
andreas-schwab committed Sep 19, 2024
1 parent 5be5ea9 commit f5f14d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/absolute-symbols.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

cat <<EOF | $CC -o $t/a.o -c -x assembler -
.globl foo
foo = 0x800008
foo = 0xa00008
EOF

cat <<EOF | $CC -o $t/b.o -c -fno-PIC -xc -
Expand Down Expand Up @@ -36,4 +36,4 @@ int main() {
EOF

$CC -B. -o $t/exe -no-pie $t/a.o $t/b.o
$QEMU $t/exe | grep -q '^ip=0x80000.$'
$QEMU $t/exe | grep -q '^ip=0xa0000.$'

0 comments on commit f5f14d3

Please sign in to comment.