This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: mips-elf regressions
- From: Tristan Gingold <gingold at adacore dot com>
- To: binutils at sources dot redhat dot com
- Cc: Tristan Gingold <gingold at adacore dot com>
- Date: Wed, 8 Oct 2008 10:50:55 +0200
- Subject: Re: mips-elf regressions
- References: <3B246DF0-A5C2-4F68-8475-ACAEBA4A51AA@adacore.com>
On Oct 8, 2008, at 10:29 AM, Tristan Gingold wrote:
(Locals must be before Weaks and Weaks must be before Globals
according to gabi).
As a consequence the output don't match the expected result.
Well according to elf32-mips.c, this is expected:
/* Determine whether a symbol is global for the purposes of splitting
the symbol table into global symbols and local symbols. At least
on Irix 5, this split must be between section symbols and all other
symbols. On most ELF targets the split is between static symbols
and externally visible symbols. */
static bfd_boolean
mips_elf_sym_is_global (bfd *abfd ATTRIBUTE_UNUSED, asymbol *sym)
{
if (SGI_COMPAT (abfd))
return (sym->flags & BSF_SECTION_SYM) == 0;
else
return ((sym->flags & (BSF_GLOBAL | BSF_WEAK)) != 0
|| bfd_is_und_section (bfd_get_section (sym))
|| bfd_is_com_section (bfd_get_section (sym)));
}
As SGI_COMPAT is true, this looks to be expected.
Can someone confirm this ?
If so, shouldn't we update the status of the failing tests (either
disabling them on mips-elf or marking
them as xfail) ?
Tristan.