aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiemo Seufer <ths@networkno.de>2002-09-26 09:10:57 +0000
committerThiemo Seufer <ths@networkno.de>2002-09-26 09:10:57 +0000
commit14366460653878e157fab7d8950946515889ccc6 (patch)
tree28862df728d3c7640283bf3c0e62b8402749e6c7
parentf3c0ec86c4c4a6784ea449e0e76a6a37f2da4488 (diff)
downloadgdb-14366460653878e157fab7d8950946515889ccc6.zip
gdb-14366460653878e157fab7d8950946515889ccc6.tar.gz
gdb-14366460653878e157fab7d8950946515889ccc6.tar.bz2
* elfxx-mips.c (_bfd_mips_elf_fake_sections): Don't emit unneeded
empty relocation sections.
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elfxx-mips.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index a0f309c..3d1c4aa 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+
+ * elfxx-mips.c (_bfd_mips_elf_fake_sections): Don't emit unneeded
+ empty relocation sections.
+
2002-09-26 Alan Modra <amodra@bigpond.net.au>
* elf64-ppc.c (ppc_build_one_stub): Don't build glink stubs here.
diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c
index 8da904b..72f9a6b 100644
--- a/bfd/elfxx-mips.c
+++ b/bfd/elfxx-mips.c
@@ -3644,7 +3644,7 @@ _bfd_mips_elf_fake_sections (abfd, hdr, sec)
sh_offset == object size, and ld doesn't allow that. While the check
is arguably bogus for empty or SHT_NOBITS sections, it can easily be
avoided by not emitting those useless sections in the first place. */
- if ((IRIX_COMPAT (abfd) != ict_irix5 && (IRIX_COMPAT (abfd) != ict_irix6))
+ if (! SGI_COMPAT (abfd) && ! NEWABI_P(abfd)
&& (sec->flags & SEC_RELOC) != 0)
{
struct bfd_elf_section_data *esd;