aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf.c
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2005-02-11 16:41:09 +0000
committerPaul Brook <paul@codesourcery.com>2005-02-11 16:41:09 +0000
commit6768797874e44f9769fa081f50cb02e6e97dae6b (patch)
tree47a5480b51b5c389f50a60e47697d16deedc815f /bfd/elf.c
parentbc18c937be1315894f181fa276fd6c221d205528 (diff)
downloadgdb-6768797874e44f9769fa081f50cb02e6e97dae6b.zip
gdb-6768797874e44f9769fa081f50cb02e6e97dae6b.tar.gz
gdb-6768797874e44f9769fa081f50cb02e6e97dae6b.tar.bz2
2005-02-11 Paul Brook <paul@codesourcery.com>
* elf-bfd.h (struct elf_link_hash_table): Add is_relocatable_executable. * elf.c (_bfd_elf_link_hash_table_init): Initialize it. * elflink.c (bfd_elf_link_record_dynamic_symbol): Create local dynamic symbols in relocatable executables. (bfd_elf_record_link_assignment): Create dynamic section symbols in relocatable executables. (_bfd_elf_link_renumber_dynsyms): Ditto. (bfd_elf_final_link): Ditto. * elf32-arm.c (elf32_arm_final_link_relocate): Copy absolute relocations into relocatable executables. (elf32_arm_check_relocs): Crate dynamic sections for relocatable executables. Also copy absolute relocations. (elf32_arm_adjust_dynamic_symbol): Don't create copy relocations in relocatable executables. (allocate_dynrelocs): Copy relocations for relocatable executables. Output dynamic symbols for symbols defined in linker scripts.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r--bfd/elf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index fb587d5..2ab84e4 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -1496,6 +1496,7 @@ _bfd_elf_link_hash_table_init
table->tls_sec = NULL;
table->tls_size = 0;
table->loaded = NULL;
+ table->is_relocatable_executable = FALSE;
ret = _bfd_link_hash_table_init (&table->root, abfd, newfunc);
table->root.type = bfd_link_elf_hash_table;