rui314/mold

riscv64-absolute-symbols fails with GCC 14

marxin opened this issue · 9 comments

It started to fail on around August 31, though it might have been caused by a change in the GCC 14 compiler. The binary does not produce any output:

[ 5308s] + out/test/riscv64/absolute-symbols/exe
[ 5308s] + out/test/riscv64/absolute-symbols/exe
[ 5308s] + grep -q '^ip=0x80000.$'

absolute-symbols.gz

When I ran your executable in a riscv64/ubuntu docker image, it printed out ip=0x800008. So it looks like it's system-dependent?

Maybe. @andreas-schwab can help us, I guess?

It's a qemu bug.

Did you have a link to the qemu bug?

How did you know it was a qemu bug?

$ qemu-riscv64 ./exe
mmap stack: Cannot allocate memory

@andreas-schwab Can you file an issue so that upstream knows about it?

        0x7ee000           0x866000    0x78000        0x0  rw-p   [heap]