]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - bfd/elf32-i386.c
* elflink.h (elf_link_add_object_symbols): If a symbol is a weak
authorIan Lance Taylor <ian@airs.com>
Mon, 14 Aug 1995 15:57:17 +0000 (15:57 +0000)
committerIan Lance Taylor <ian@airs.com>
Mon, 14 Aug 1995 15:57:17 +0000 (15:57 +0000)
commit452a5efbaf30e9ec7a7892716294ebdb02837c7f
tree3a77c5f76fd3ee63f90adaf321bf2c52336a363f
parent5c800455bf7f27ad0e11e896f4bf44eeff29c829
* elflink.h (elf_link_add_object_symbols): If a symbol is a weak
definition, add it to the dynamic symbol table if any dynamic
object mentions it.  If we do add it, make sure we add the
corresponding real symbol.
(elf_adjust_dynamic_symbol): Adjust a weak defined symbol which we
put in the dynamic symbol table, even if no regular object refers
to it.
* elf32-i386.c (elf_i386_check_relocs): When creating a shared
library, don't allocate space for a PC relative reloc against a
local symbol.
* elf32-m68k.c (elf_m68k_check_relocs): Likewise.
* elf32-sparc.c (elf32_sparc_check_relocs): Likewise.
* elf32-i386.c (elf_i386_adjust_dynamic_symbol): Change assertion
to accept symbol with weakdef set.
* elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Likewise.
* elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Likewise.
* elf32-m68k.c (elf_m68k_relocate_section): When creating a shared
libary, don't copy over a PC relative reloc against a local
symbol.
* elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
PR 7711.
bfd/ChangeLog
bfd/elf32-i386.c
bfd/elflink.h