mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 21:41:47 +08:00
* elf32-ppc.c (ppc_elf_howto_table): Remove unnecessary cast.
(ppc_elf_reloc_type_lookup): Modify comment. (ppc_elf_info_to_howto): Ditto. (ppc_elf_relocate_section): Ditto. (ppc_elf_check_relocs): Call ppc_elf_howto_init.
This commit is contained in:
@ -1,3 +1,11 @@
|
|||||||
|
2003-06-25 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
|
* elf32-ppc.c (ppc_elf_howto_table): Remove unnecessary cast.
|
||||||
|
(ppc_elf_reloc_type_lookup): Modify comment.
|
||||||
|
(ppc_elf_info_to_howto): Ditto.
|
||||||
|
(ppc_elf_relocate_section): Ditto.
|
||||||
|
(ppc_elf_check_relocs): Call ppc_elf_howto_init.
|
||||||
|
|
||||||
2003-06-25 Alan Modra <amodra@bigpond.net.au>
|
2003-06-25 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
* aout-ns32k.c: Correct spelling of "relocatable".
|
* aout-ns32k.c: Correct spelling of "relocatable".
|
||||||
|
@ -286,7 +286,7 @@ ppc_elf_copy_indirect_symbol (struct elf_backend_data *bed,
|
|||||||
_bfd_elf_link_hash_copy_indirect (bed, dir, ind);
|
_bfd_elf_link_hash_copy_indirect (bed, dir, ind);
|
||||||
}
|
}
|
||||||
|
|
||||||
static reloc_howto_type *ppc_elf_howto_table[(int) R_PPC_max];
|
static reloc_howto_type *ppc_elf_howto_table[R_PPC_max];
|
||||||
|
|
||||||
static reloc_howto_type ppc_elf_howto_raw[] = {
|
static reloc_howto_type ppc_elf_howto_raw[] = {
|
||||||
/* This reloc does nothing. */
|
/* This reloc does nothing. */
|
||||||
@ -1830,8 +1830,8 @@ ppc_elf_reloc_type_lookup (bfd *abfd ATTRIBUTE_UNUSED,
|
|||||||
{
|
{
|
||||||
enum elf_ppc_reloc_type r;
|
enum elf_ppc_reloc_type r;
|
||||||
|
|
||||||
|
/* Initialize howto table if not already done. */
|
||||||
if (!ppc_elf_howto_table[R_PPC_ADDR32])
|
if (!ppc_elf_howto_table[R_PPC_ADDR32])
|
||||||
/* Initialize howto table if needed. */
|
|
||||||
ppc_elf_howto_init ();
|
ppc_elf_howto_init ();
|
||||||
|
|
||||||
switch (code)
|
switch (code)
|
||||||
@ -1932,8 +1932,8 @@ ppc_elf_info_to_howto (bfd *abfd ATTRIBUTE_UNUSED,
|
|||||||
arelent *cache_ptr,
|
arelent *cache_ptr,
|
||||||
Elf_Internal_Rela *dst)
|
Elf_Internal_Rela *dst)
|
||||||
{
|
{
|
||||||
|
/* Initialize howto table if not already done. */
|
||||||
if (!ppc_elf_howto_table[R_PPC_ADDR32])
|
if (!ppc_elf_howto_table[R_PPC_ADDR32])
|
||||||
/* Initialize howto table if needed. */
|
|
||||||
ppc_elf_howto_init ();
|
ppc_elf_howto_init ();
|
||||||
|
|
||||||
BFD_ASSERT (ELF32_R_TYPE (dst->r_info) < (unsigned int) R_PPC_max);
|
BFD_ASSERT (ELF32_R_TYPE (dst->r_info) < (unsigned int) R_PPC_max);
|
||||||
@ -3094,9 +3094,12 @@ ppc_elf_check_relocs (bfd *abfd,
|
|||||||
bfd_archive_filename (abfd));
|
bfd_archive_filename (abfd));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Initialize howto table if not already done. */
|
||||||
|
if (!ppc_elf_howto_table[R_PPC_ADDR32])
|
||||||
|
ppc_elf_howto_init ();
|
||||||
|
|
||||||
/* Create the linker generated sections all the time so that the
|
/* Create the linker generated sections all the time so that the
|
||||||
special symbols are created. */
|
special symbols are created. */
|
||||||
|
|
||||||
htab = ppc_elf_hash_table (info);
|
htab = ppc_elf_hash_table (info);
|
||||||
if (htab->sdata == NULL)
|
if (htab->sdata == NULL)
|
||||||
{
|
{
|
||||||
@ -4201,8 +4204,8 @@ ppc_elf_relocate_section (bfd *output_bfd,
|
|||||||
if (info->relocatable)
|
if (info->relocatable)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
|
/* Initialize howto table if not already done. */
|
||||||
if (!ppc_elf_howto_table[R_PPC_ADDR32])
|
if (!ppc_elf_howto_table[R_PPC_ADDR32])
|
||||||
/* Initialize howto table if needed. */
|
|
||||||
ppc_elf_howto_init ();
|
ppc_elf_howto_init ();
|
||||||
|
|
||||||
htab = ppc_elf_hash_table (info);
|
htab = ppc_elf_hash_table (info);
|
||||||
|
Reference in New Issue
Block a user