mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-18 05:12:33 +08:00
2004-04-02 H.J. Lu <hongjiu.lu@intel.com>
* elf32-cr16c.c (elf32_cr16c_relocate_section): Use RELOC_FOR_GLOBAL_SYMBOL. (elf32_cr16c_add_symbol_hook): Remove const from Elf_Internal_Sym.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2004-04-02 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
* elf32-cr16c.c (elf32_cr16c_relocate_section): Use
|
||||||
|
RELOC_FOR_GLOBAL_SYMBOL.
|
||||||
|
(elf32_cr16c_add_symbol_hook): Remove const from Elf_Internal_Sym.
|
||||||
|
|
||||||
2004-04-02 H.J. Lu <hongjiu.lu@intel.com>
|
2004-04-02 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* elf32-arm.h (elf32_arm_final_link_relocate): Handle
|
* elf32-arm.h (elf32_arm_final_link_relocate): Handle
|
||||||
|
@ -721,27 +721,12 @@ elf32_cr16c_relocate_section (bfd *output_bfd,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
h = sym_hashes[r_symndx - symtab_hdr->sh_info];
|
bfd_boolean unresolved_reloc, warned;
|
||||||
while (h->root.type == bfd_link_hash_indirect
|
|
||||||
|| h->root.type == bfd_link_hash_warning)
|
RELOC_FOR_GLOBAL_SYMBOL (info, input_bfd, input_section, rel,
|
||||||
h = (struct elf_link_hash_entry *) h->root.u.i.link;
|
r_symndx, symtab_hdr, sym_hashes,
|
||||||
if (h->root.type == bfd_link_hash_defined
|
h, sec, relocation,
|
||||||
|| h->root.type == bfd_link_hash_defweak)
|
unresolved_reloc, warned);
|
||||||
{
|
|
||||||
sec = h->root.u.def.section;
|
|
||||||
relocation = (h->root.u.def.value
|
|
||||||
+ sec->output_section->vma + sec->output_offset);
|
|
||||||
}
|
|
||||||
else if (h->root.type == bfd_link_hash_undefweak)
|
|
||||||
relocation = 0;
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (!((*info->callbacks->undefined_symbol)
|
|
||||||
(info, h->root.root.string, input_bfd,
|
|
||||||
input_section, rel->r_offset, TRUE)))
|
|
||||||
return FALSE;
|
|
||||||
relocation = 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
r = cr16c_elf_final_link_relocate (howto, input_bfd, output_bfd,
|
r = cr16c_elf_final_link_relocate (howto, input_bfd, output_bfd,
|
||||||
@ -944,7 +929,7 @@ elf32_cr16c_symbol_processing (bfd *abfd ATTRIBUTE_UNUSED,
|
|||||||
static bfd_boolean
|
static bfd_boolean
|
||||||
elf32_cr16c_add_symbol_hook (bfd *abfd,
|
elf32_cr16c_add_symbol_hook (bfd *abfd,
|
||||||
struct bfd_link_info *info ATTRIBUTE_UNUSED,
|
struct bfd_link_info *info ATTRIBUTE_UNUSED,
|
||||||
const Elf_Internal_Sym *sym,
|
Elf_Internal_Sym *sym,
|
||||||
const char **namep ATTRIBUTE_UNUSED,
|
const char **namep ATTRIBUTE_UNUSED,
|
||||||
flagword *flagsp ATTRIBUTE_UNUSED,
|
flagword *flagsp ATTRIBUTE_UNUSED,
|
||||||
asection **secp,
|
asection **secp,
|
||||||
|
Reference in New Issue
Block a user