~ubuntu-branches/debian/squeeze/binutils/squeeze

« back to all changes in this revision

Viewing changes to bfd/elf32-mips.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-09-10 17:05:30 UTC
  • mfrom: (1.4.5 upstream) (6.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20090910170530-wa6gpju9pq5c56on
Tags: 2.19.91.20090910-1
* Snapshot, taken from the 2.20 release branch 20090910, corresponding
  to the 2.19.90 upstream snapshot.
* Fix Thumb-2 shared libraries (Daniel Jacobowitz), patch taken
  from the trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* MIPS-specific support for 32-bit ELF
2
2
   Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
3
 
   2003, 2004, 2005, 2007 Free Software Foundation, Inc.
 
3
   2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
4
4
 
5
5
   Most of the information added by Ian Lance Taylor, Cygnus Support,
6
6
   <ian@cygnus.com>.
1261
1261
  { BFD_RELOC_MIPS_GOT_PAGE, R_MIPS_GOT_PAGE },
1262
1262
  { BFD_RELOC_MIPS_GOT_OFST, R_MIPS_GOT_OFST },
1263
1263
  { BFD_RELOC_MIPS_GOT_DISP, R_MIPS_GOT_DISP },
 
1264
  { BFD_RELOC_MIPS_JALR, R_MIPS_JALR },
1264
1265
  { BFD_RELOC_MIPS_TLS_DTPMOD32, R_MIPS_TLS_DTPMOD32 },
1265
1266
  { BFD_RELOC_MIPS_TLS_DTPREL32, R_MIPS_TLS_DTPREL32 },
1266
1267
  { BFD_RELOC_MIPS_TLS_DTPMOD64, R_MIPS_TLS_DTPMOD64 },
1449
1450
  if (SGI_COMPAT (abfd))
1450
1451
    return (sym->flags & BSF_SECTION_SYM) == 0;
1451
1452
  else
1452
 
    return ((sym->flags & (BSF_GLOBAL | BSF_WEAK)) != 0
 
1453
    return ((sym->flags & (BSF_GLOBAL | BSF_WEAK | BSF_GNU_UNIQUE)) != 0
1453
1454
            || bfd_is_und_section (bfd_get_section (sym))
1454
1455
            || bfd_is_com_section (bfd_get_section (sym)));
1455
1456
}