* elfxx-mips.c (_bfd_mips_elf_fake_sections): Don't emit unneeded

empty relocation sections.
This commit is contained in:
Thiemo Seufer 2002-09-26 09:10:57 +00:00
parent f3c0ec86c4
commit 1436646065
2 changed files with 6 additions and 1 deletions

View File

@ -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.

View File

@ -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;