From 3319ba7a8d6a42ba071d691789bc184632399331 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Tue, 15 Feb 2022 15:03:02 -0800 Subject: i386: Update I386_NEED_DYNAMIC_RELOC_TYPE_P for DT_TEXTREL Update I386_NEED_DYNAMIC_RELOC_TYPE_P to allow R_386_TLS_IE for relocation in read-only section. bfd/ PR ld/28894 * elfxx-x86.h (I386_NEED_DYNAMIC_RELOC_TYPE_P): Allow R_386_TLS_IE. ld/ PR ld/28894 * testsuite/ld-i386/i386.exp: Run pr28894. * testsuite/ld-i386/pr28894.d: New file. * testsuite/ld-i386/pr28894.s: Likewise. --- bfd/elfxx-x86.h | 1 + 1 file changed, 1 insertion(+) (limited to 'bfd') diff --git a/bfd/elfxx-x86.h b/bfd/elfxx-x86.h index 3219f36..77fb1ad 100644 --- a/bfd/elfxx-x86.h +++ b/bfd/elfxx-x86.h @@ -80,6 +80,7 @@ #define I386_NEED_DYNAMIC_RELOC_TYPE_P(TYPE) \ (I386_SIZE_TYPE_P (TYPE) \ || I386_RELATIVE_RELOC_TYPE_P (TYPE) \ + || (TYPE) == R_386_TLS_IE \ || (TYPE) == R_386_TLS_LE \ || (TYPE) == R_386_TLS_LE_32) #define X86_NEED_DYNAMIC_RELOC_TYPE_P(IS_X86_64, TYPE) \ -- cgit v1.1