Browse Source
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.gdb-12-branch
4 changed files with 12 additions and 0 deletions
@ -0,0 +1,3 @@ |
|||
#as: --32 |
|||
#ld: -shared -melf_i386 --warn-shared-textrel --fatal-warnings |
|||
#error: .*warning: creating DT_TEXTREL in a shared object |
|||
@ -0,0 +1,7 @@ |
|||
.text |
|||
addl foo@INDNTPOFF, %eax |
|||
.section .tbss,"awT",@nobits |
|||
.globl foo |
|||
.hidden foo |
|||
foo: |
|||
.byte 0 |
|||
Loading…
Reference in new issue