diff options
author | Maciej W. Rozycki <macro@linux-mips.org> | 2013-05-03 15:01:19 +0000 |
---|---|---|
committer | Maciej W. Rozycki <macro@linux-mips.org> | 2013-05-03 15:01:19 +0000 |
commit | b0d2b7b6eae7b7f4fbfd1695d4d2f1b45198d597 (patch) | |
tree | 2ae0df0b9c5cd49467706eef6f1b49e6c351d95f /ld/emultempl | |
parent | 6eae209bcd49c70b388bfbefb235e5cca7081538 (diff) | |
download | binutils-redhat-b0d2b7b6eae7b7f4fbfd1695d4d2f1b45198d597.tar.gz |
* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
Only call lang_for_each_statement if an ELF hash table is used.
Diffstat (limited to 'ld/emultempl')
-rw-r--r-- | ld/emultempl/elf32.em | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em index dae86052ad..251c511082 100644 --- a/ld/emultempl/elf32.em +++ b/ld/emultempl/elf32.em @@ -1484,12 +1484,14 @@ gld${EMULATION_NAME}_before_allocation (void) bfd *abfd; if (is_elf_hash_table (link_info.hash)) - _bfd_elf_tls_setup (link_info.output_bfd, &link_info); + { + _bfd_elf_tls_setup (link_info.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. */ - lang_for_each_statement (gld${EMULATION_NAME}_find_statement_assignment); + /* 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. */ + lang_for_each_statement (gld${EMULATION_NAME}_find_statement_assignment); + } /* Let the ELF backend work out the sizes of any sections required by dynamic linking. */ |