* elf64-alpha.c (elf64_alpha_read_ecoff_info): Don't assign

structure field removed in 2004-04-24 patch.
	* elf64-sparc.c (sparc64_elf_plt_sym_val): Warning fix.

	* elf-bfd.h (struct elf_backend_data <elf_backend_section_flags>):
	Constify hdr arg.
	* elf32-arm.h (elf32_arm_section_flags): Likewise.
	* elf64-alpha.c (elf64_alpha_section_flags): Likewise.
	* elfxx-ia64.c (elfNN_ia64_section_flags): Likewise.
	* elf.c (_bfd_elf_make_section_from_shdr): Set the bfd_section
	field before calling elf_backend_section_flags.
This commit is contained in:
Alan Modra
2004-04-27 03:13:15 +00:00
parent 0b608360be
commit 1829f4b2af
7 changed files with 25 additions and 12 deletions

View File

@@ -652,6 +652,9 @@ _bfd_elf_make_section_from_shdr (bfd *abfd,
if (newsect == NULL)
return FALSE;
hdr->bfd_section = newsect;
elf_section_data (newsect)->this_hdr = *hdr;
/* Always use the real type/flags. */
elf_section_type (newsect) = hdr->sh_type;
elf_section_flags (newsect) = hdr->sh_flags;
@@ -798,9 +801,6 @@ _bfd_elf_make_section_from_shdr (bfd *abfd,
}
}
hdr->bfd_section = newsect;
elf_section_data (newsect)->this_hdr = *hdr;
return TRUE;
}