[2/2] LoongArch: Add HAVE_LOONGARCH_EXPLICIT_RELOCS in config.h.in.

Message ID 20220823122833.1561228-3-caiyinyu@loongson.cn
State Superseded
Headers
Series LoongArch: Fix ptr mangling/demangling features |

Checks

Context Check Description
dj/TryBot-apply_patch success Patch applied to master at the time it was sent
dj/TryBot-32bit success Build for i686

Commit Message

caiyinyu Aug. 23, 2022, 12:28 p.m. UTC
  ---
 config.h.in | 3 +++
 1 file changed, 3 insertions(+)
  

Comments

Adhemerval Zanella Aug. 25, 2022, 3:06 p.m. UTC | #1
On 23/08/22 09:28, caiyinyu wrote:
> ---
>  config.h.in | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/config.h.in b/config.h.in
> index 43d32518ab..b182de0e91 100644
> --- a/config.h.in
> +++ b/config.h.in
> @@ -138,6 +138,9 @@
>  /* LOONGARCH floating-point ABI for ld.so.  */
>  #undef LOONGARCH_ABI_FRLEN
>  
> +/* To Indicate whether we can use explicit relocs or not.  */
> +#undef HAVE_LOONGARCH_EXPLICIT_RELOCS
> +
>  /* Linux specific: minimum supported kernel version.  */
>  #undef	__LINUX_KERNEL_VERSION
>  

This patch needs to be squashed with the first one to be concise (the
first one uses HAVE_LOONGARCH_EXPLICIT_RELOCS without being defined).
  

Patch

diff --git a/config.h.in b/config.h.in
index 43d32518ab..b182de0e91 100644
--- a/config.h.in
+++ b/config.h.in
@@ -138,6 +138,9 @@ 
 /* LOONGARCH floating-point ABI for ld.so.  */
 #undef LOONGARCH_ABI_FRLEN
 
+/* To Indicate whether we can use explicit relocs or not.  */
+#undef HAVE_LOONGARCH_EXPLICIT_RELOCS
+
 /* Linux specific: minimum supported kernel version.  */
 #undef	__LINUX_KERNEL_VERSION