diff options
author | Nick Clifton <nickc@redhat.com> | 2007-11-07 14:52:44 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2007-11-07 14:52:44 +0000 |
commit | b5482f211e3d2f32d10d5c6c1b97e9603fe44d8e (patch) | |
tree | e951010e51dcad5e7b5b81253bcc0cd130a24faa /bfd | |
parent | 92c8bd791d129c01e425e0c7b711193517cf7a41 (diff) | |
download | gdb-b5482f211e3d2f32d10d5c6c1b97e9603fe44d8e.zip gdb-b5482f211e3d2f32d10d5c6c1b97e9603fe44d8e.tar.gz gdb-b5482f211e3d2f32d10d5c6c1b97e9603fe44d8e.tar.bz2 |
* bfd/elfxx-mips.c (_bfd_mips_elf_fake_sections): Force SHF_MIPS_NOSTRIP on
.debug_frame for Irix.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elfxx-mips.c | 10 |
2 files changed, 14 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index b42e0c9..b05c8ee 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -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.. diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c index b0e8a62..c571077 100644 --- a/bfd/elfxx-mips.c +++ b/bfd/elfxx-mips.c @@ -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; |