OSDN Git Service

* 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)
commitd3e11131fcf68bea8e4314c2cf87bef603f0ae30
treeec73b84a77e0701bb768bd042ad7133bade48465
parentd0c01344b05a31198feb4e492070d20a07c56594
* 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