| 1 |
# -fasynchronous-unwind-tables is on by default for LoongArch. |
| 2 |
# We turn it off for crt*.o because it would make __EH_FRAME_BEGIN__ point |
| 3 |
# to .eh_frame data from crtbeginT.o instead of the user-defined object |
| 4 |
# during static linking. |
| 5 |
CRTSTUFF_T_CFLAGS += -fno-omit-frame-pointer -fno-asynchronous-unwind-tables |
| 6 |
|
| 7 |
# As shown in the test case PR118844, when using lld for linking, |
| 8 |
# it fails due to B26 in crtbeginS.o causing the link to exceed the range. |
| 9 |
# Therefore, the issue was resolved by adding the compilation option |
| 10 |
# "-mcmodel=extreme" when compiling crtbeginS.o. |
| 11 |
CRTSTUFF_T_CFLAGS_S += -mcmodel=extreme |