Home
last modified time | relevance | path

Searched refs:rela_hdr (Results 1 – 3 of 3) sorted by relevance

/toolchain/binutils/binutils-2.27/bfd/
Delf64-sparc.c285 Elf_Internal_Shdr *rela_hdr; in elf64_sparc_write_relocs() local
330 rela_hdr = elf_section_data (sec)->rela.hdr; in elf64_sparc_write_relocs()
332 rela_hdr->sh_size = rela_hdr->sh_entsize * count; in elf64_sparc_write_relocs()
333 rela_hdr->contents = bfd_alloc (abfd, rela_hdr->sh_size); in elf64_sparc_write_relocs()
334 if (rela_hdr->contents == NULL) in elf64_sparc_write_relocs()
341 if (rela_hdr->sh_type != SHT_RELA) in elf64_sparc_write_relocs()
352 outbound_relocas = (Elf64_External_Rela *) rela_hdr->contents; in elf64_sparc_write_relocs()
Delfcode.h858 Elf_Internal_Shdr *rela_hdr; in elf_write_relocs() local
887 rela_hdr = elf_section_data (sec)->rela.hdr; in elf_write_relocs()
888 if (rela_hdr == NULL) in elf_write_relocs()
889 rela_hdr = elf_section_data (sec)->rel.hdr; in elf_write_relocs()
891 rela_hdr->sh_size = rela_hdr->sh_entsize * sec->reloc_count; in elf_write_relocs()
892 rela_hdr->contents = (unsigned char *) bfd_alloc (abfd, rela_hdr->sh_size); in elf_write_relocs()
893 if (rela_hdr->contents == NULL) in elf_write_relocs()
900 if (rela_hdr->sh_type == SHT_RELA) in elf_write_relocs()
905 else if (rela_hdr->sh_type == SHT_REL) in elf_write_relocs()
925 dst_rela = rela_hdr->contents; in elf_write_relocs()
Delf64-mips.c4144 Elf_Internal_Shdr *rela_hdr, in mips_elf64_write_rela() argument
4153 rela_hdr->sh_size = rela_hdr->sh_entsize * *count; in mips_elf64_write_rela()
4154 rela_hdr->contents = bfd_alloc (abfd, rela_hdr->sh_size); in mips_elf64_write_rela()
4155 if (rela_hdr->contents == NULL) in mips_elf64_write_rela()
4161 ext_rela = (Elf64_Mips_External_Rela *) rela_hdr->contents; in mips_elf64_write_rela()
4237 BFD_ASSERT (ext_rela - (Elf64_Mips_External_Rela *) rela_hdr->contents in mips_elf64_write_rela()