]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix PR 110066: crash with -pg -static on riscv
authorAndrew Pinski <apinski@marvell.com>
Sat, 22 Jul 2023 15:52:42 +0000 (08:52 -0700)
committerAndrew Pinski <apinski@marvell.com>
Sun, 23 Jul 2023 04:55:22 +0000 (21:55 -0700)
commitbbc1a102735c72e3c5a4dede8ab382813d12b058
treeb41ec1d7a1f724e0411ccd8f21541c2ca5e3df77
parentf33fdf9e7c0386397576330db880c2ba85314a9c
Fix PR 110066: crash with -pg -static on riscv

The problem -fasynchronous-unwind-tables is on by default for riscv linux
We need turn it off for crt*.o because it would make __EH_FRAME_BEGIN__ point
to .eh_frame data from crtbeginT.o instead of the user-defined object
during static linking.

This turns it off.

OK?

libgcc/ChangeLog:

* config.host (riscv*-*-linux*): Add t-crtstuff to tmake_file.
(riscv*-*-freebsd*): Likewise.
* config/riscv/t-crtstuff: New file.
libgcc/config.host
libgcc/config/riscv/t-crtstuff [new file with mode: 0644]