diff options
author | Lulu Cheng <chenglulu@loongson.cn> | 2022-07-29 09:44:52 +0800 |
---|---|---|
committer | Lulu Cheng <chenglulu@loongson.cn> | 2022-07-29 14:58:39 +0800 |
commit | 201e8d9f82444403682cd583ce0a03e3e3dd2b73 (patch) | |
tree | 7821cdc35f8f9f3528c75062fe25b34cf4eb5d49 /gcc/config.in | |
parent | 0c0feae60aa2f1a29d2624399cbcc6b1a52cc07c (diff) | |
download | gcc-201e8d9f82444403682cd583ce0a03e3e3dd2b73.tar.gz |
LoongArch: Define the macro ASM_PREFERRED_EH_DATA_FORMAT by checking the assembler's support for eh_frame encoding.
.eh_frame DW_EH_PE_pcrel encoding format is not supported by gas <= 2.39.
Check if the assembler support DW_EH_PE_PCREL encoding and define .eh_frame
encoding type.
gcc/ChangeLog:
* config.in: Regenerate.
* config/loongarch/loongarch.h (ASM_PREFERRED_EH_DATA_FORMAT):
Select the value of the macro definition according to whether
HAVE_AS_EH_FRAME_PCREL_ENCODING_SUPPORT is defined.
* configure: Regenerate.
* configure.ac: Reinstate HAVE_AS_EH_FRAME_PCREL_ENCODING_SUPPORT test.
Diffstat (limited to 'gcc/config.in')
-rw-r--r-- | gcc/config.in | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/config.in b/gcc/config.in index 16bb963b45b..413b2bd36cb 100644 --- a/gcc/config.in +++ b/gcc/config.in @@ -404,13 +404,19 @@ #endif +/* Define if your assembler supports eh_frame pcrel encoding. */ +#ifndef USED_FOR_TARGET +#undef HAVE_AS_EH_FRAME_PCREL_ENCODING_SUPPORT +#endif + + /* Define if your assembler supports the R_PPC64_ENTRY relocation. */ #ifndef USED_FOR_TARGET #undef HAVE_AS_ENTRY_MARKERS #endif -/* Define if your assembler supports explicit relocations. */ +/* Define if your assembler supports explicit relocation. */ #ifndef USED_FOR_TARGET #undef HAVE_AS_EXPLICIT_RELOCS #endif |