* bfd/elfxx-mips.c (_bfd_mips_elf_fake_sections): Force SHF_MIPS_NOSTRIP on

.debug_frame for Irix.
This commit is contained in:
Nick Clifton 2007-11-07 14:52:44 +00:00
parent 92c8bd791d
commit b5482f211e
2 changed files with 14 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2007-11-07 Olivier Hainque <hainque@adacore.com>
* bfd/elfxx-mips.c (_bfd_mips_elf_fake_sections): Force
SHF_MIPS_NOSTRIP on .debug_frame for Irix.
2007-11-06 Alan Modra <amodra@bigpond.net.au>
* elf64-ppc.c (ppc64_elf_check_relocs): Don't refcount tlsld_got here..

View file

@ -5672,7 +5672,15 @@ _bfd_mips_elf_fake_sections (bfd *abfd, Elf_Internal_Shdr *hdr, asection *sec)
hdr->sh_flags |= SHF_MIPS_NOSTRIP;
}
else if (CONST_STRNEQ (name, ".debug_"))
hdr->sh_type = SHT_MIPS_DWARF;
{
hdr->sh_type = SHT_MIPS_DWARF;
/* Irix facilities such as libexc expect a single .debug_frame
per executable, the system ones have NOSTRIP set and the linker
doesn't merge sections with different flags so ... */
if (SGI_COMPAT (abfd) && CONST_STRNEQ (name, ".debug_frame"))
hdr->sh_flags |= SHF_MIPS_NOSTRIP;
}
else if (strcmp (name, ".MIPS.symlib") == 0)
{
hdr->sh_type = SHT_MIPS_SYMBOL_LIB;