* elf32-cris.c (cris_elf_relocate_section): Drop nonsensical
authorHans-Peter Nilsson <hp@axis.com>
Fri, 12 Jul 2002 15:54:57 +0000 (15:54 +0000)
committerHans-Peter Nilsson <hp@axis.com>
Fri, 12 Jul 2002 15:54:57 +0000 (15:54 +0000)
commit6849c52f0a5db1d4d89aac4e01e725c604977e67
tree1ab23cc14bdd7e6622ceae82badf237eaf9ac91c
parentf1cf2c2e58d26549bd69ae893073d35eb74abeac
* elf32-cris.c (cris_elf_relocate_section): Drop nonsensical
dynamic reference test in assertion when initializing GOT with
static contents.  Just assert that there are either no dynamic
sections, the symbol is defined in the regular objects or that the
symbol is undef weak.  Tweak comment.
(elf_cris_finish_dynamic_symbol): Emit .got reloc for a program
only if the symbol isn't defined in the program and isn't undef
weak.
(elf_cris_adjust_dynamic_symbol): Simplify condition for getting
rid of PLT entry: only do it if the symbol isn't defined in a DSO.
When doing so, clear ELF_LINK_HASH_NEEDS_PLT.  Tweak comments.
(elf_cris_discard_excess_program_dynamics): Don't consider
ELF_LINK_HASH_REF_DYNAMIC when omitting .got runtime relocs.
bfd/ChangeLog
bfd/elf32-cris.c