diff options
Diffstat (limited to 'ld/emultempl')
-rw-r--r-- | ld/emultempl/elf32.em | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em index 33cff6aca64..6e1f815d5fe 100644 --- a/ld/emultempl/elf32.em +++ b/ld/emultempl/elf32.em @@ -845,6 +845,9 @@ gld${EMULATION_NAME}_before_allocation (void) const char *rpath; asection *sinterp; + if (link_info.hash->creator->flavour == bfd_target_elf_flavour) + _bfd_elf_tls_setup (output_bfd, &link_info); + /* If we are going to make any variable assignments, we need to let the ELF backend know about them in case the variables are referred to by dynamic objects. */ |