mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-23 10:54:07 +08:00
bbc1a10273
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.
6 lines
324 B
Plaintext
6 lines
324 B
Plaintext
# -fasynchronous-unwind-tables -funwind-tables is on by default for riscv linux
|
|
# We 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.
|
|
CRTSTUFF_T_CFLAGS += -fno-asynchronous-unwind-tables -fno-unwind-tables
|