mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-01 22:34:22 +08:00
* elf64-ppc.c (ppc_build_one_stub): Correct rel_hdr.sh_size.
This commit is contained in:
parent
939bfe3b97
commit
2e5b2d7404
@ -1,3 +1,7 @@
|
|||||||
|
2007-09-26 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
|
* elf64-ppc.c (ppc_build_one_stub): Correct rel_hdr.sh_size.
|
||||||
|
|
||||||
2007-09-25 Alan Modra <amodra@bigpond.net.au>
|
2007-09-25 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
* elf32-spu.c (struct spu_link_hash_table): Add ovly_load_r_symndx.
|
* elf32-spu.c (struct spu_link_hash_table): Add ovly_load_r_symndx.
|
||||||
|
@ -8317,8 +8317,9 @@ ppc_build_one_stub (struct bfd_hash_entry *gen_entry, void *in_arg)
|
|||||||
if (relocs == NULL)
|
if (relocs == NULL)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
elfsec_data->relocs = relocs;
|
elfsec_data->relocs = relocs;
|
||||||
elfsec_data->rel_hdr.sh_size = relsize;
|
elfsec_data->rel_hdr.sh_size = (stub_entry->stub_sec->reloc_count
|
||||||
elfsec_data->rel_hdr.sh_entsize = 24;
|
* sizeof (Elf64_External_Rela));
|
||||||
|
elfsec_data->rel_hdr.sh_entsize = sizeof (Elf64_External_Rela);
|
||||||
stub_entry->stub_sec->reloc_count = 0;
|
stub_entry->stub_sec->reloc_count = 0;
|
||||||
}
|
}
|
||||||
r = relocs + stub_entry->stub_sec->reloc_count;
|
r = relocs + stub_entry->stub_sec->reloc_count;
|
||||||
@ -8415,8 +8416,9 @@ ppc_build_one_stub (struct bfd_hash_entry *gen_entry, void *in_arg)
|
|||||||
if (relocs == NULL)
|
if (relocs == NULL)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
elfsec_data->relocs = relocs;
|
elfsec_data->relocs = relocs;
|
||||||
elfsec_data->rel_hdr.sh_size = relsize;
|
elfsec_data->rel_hdr.sh_size = (stub_entry->stub_sec->reloc_count
|
||||||
elfsec_data->rel_hdr.sh_entsize = 24;
|
* sizeof (Elf64_External_Rela));
|
||||||
|
elfsec_data->rel_hdr.sh_entsize = sizeof (Elf64_External_Rela);
|
||||||
htab->brlt->reloc_count = 0;
|
htab->brlt->reloc_count = 0;
|
||||||
}
|
}
|
||||||
r = relocs + htab->brlt->reloc_count;
|
r = relocs + htab->brlt->reloc_count;
|
||||||
|
Loading…
Reference in New Issue
Block a user