2003-07-25  H.J. Lu  <hongjiu.lu@intel.com>

	* elf.c (_bfd_elf_new_section_hook): Set the default section
	type to SHT_NULL.
	(elf_fake_sections): Set the section type based on asect->flags
	if it is SHT_NULL. Don't abort on processor specific section
	types.

gas/

2003-07-25  H.J. Lu  <hongjiu.lu@intel.com>

	* config/obj-elf.c (obj_elf_change_section): Update
	elf_section_type and elf_section_flags only when they are
	specified.
This commit is contained in:
H.J. Lu
2003-07-26 01:06:27 +00:00
parent a5de4c570e
commit 3cddba1e54
4 changed files with 31 additions and 13 deletions

View File

@ -683,8 +683,10 @@ obj_elf_change_section (name, type, attr, entsize, group_name, linkonce, push)
attr |= def_attr;
}
elf_section_type (sec) = type;
elf_section_flags (sec) = attr;
if (type != SHT_NULL)
elf_section_type (sec) = type;
if (attr != 0)
elf_section_flags (sec) = attr;
/* Convert ELF type and flags to BFD flags. */
flags = (SEC_RELOC