summaryrefslogtreecommitdiff
path: root/bfd/elflink.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2010-10-01 04:28:01 +0000
committerH.J. Lu <hjl.tools@gmail.com>2010-10-01 04:28:01 +0000
commit1f36c401a948ba088da26b8f66002552e90421b6 (patch)
tree94e24b7fd6e6991a1d28c06a081a1de9dd0286f8 /bfd/elflink.c
parenteb6c1ad80260feec29bc4fec1ef0228ad7e383d9 (diff)
downloadgdb-1f36c401a948ba088da26b8f66002552e90421b6.tar.gz
Clear non_elf on ELF linker defined symbols.
2010-09-30 H.J. Lu <hongjiu.lu@intel.com> PR ld/11812 * elf32-i386.c (elf_i386_size_dynamic_sections): Don't allocate .got.plt section if there are no GOT nor PLT entries and there is no refeence to _GLOBAL_OFFSET_TABLE_. * elf64-x86-64.c (elf64_x86_64_size_dynamic_sections): Li.kewise. * elflink.c (_bfd_elf_define_linkage_sym): Clear non_elf.
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r--bfd/elflink.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c
index f4d65991fe5..46f1e2556c4 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -86,6 +86,7 @@ _bfd_elf_define_linkage_sym (bfd *abfd,
return NULL;
h = (struct elf_link_hash_entry *) bh;
h->def_regular = 1;
+ h->non_elf = 0;
h->type = STT_OBJECT;
h->other = (h->other & ~ELF_ST_VISIBILITY (-1)) | STV_HIDDEN;