]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
* elf32-sh.c (sh_elf_adjust_dynamic_symbol): For weak symbols,
authorKaz Kojima <kkojima@rr.iij4u.or.jp>
Tue, 13 May 2003 12:13:37 +0000 (12:13 +0000)
committerKaz Kojima <kkojima@rr.iij4u.or.jp>
Tue, 13 May 2003 12:13:37 +0000 (12:13 +0000)
commit04e534c39ae6d32ec36643b0f3c71a2fa47b4ce8
treeca7d19319c868a7845e517bd3075169d42df23a8
parent5481b376b702fbacbb9934783fd4a9603fb59d8a
* elf32-sh.c (sh_elf_adjust_dynamic_symbol): For weak symbols,
copy ELF_LINK_NON_GOT_REF from weakdef.
(allocate_dynrelocs):  For undef weak syms with non-default
visibility, a) don't allocate plt entries, b) don't allocate
.got relocs, c) discard dyn rel space
        (sh_elf_relocate_section): d) don't generate .got relocs, e)
        don't generate dynamic relocs.
(sh_elf_copy_indirect_symbol): Don't copy ELF_LINK_NON_GOT_REF
for weakdefs when symbol already adjusted.
bfd/ChangeLog
bfd/elf32-sh.c