Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/binutils/dist/gas/config Use ELF_ST_VISIBILITY...



details:   https://anonhg.NetBSD.org/src/rev/8f12f4a09aaf
branches:  trunk
changeset: 759434:8f12f4a09aaf
user:      matt <matt%NetBSD.org@localhost>
date:      Thu Dec 09 06:22:03 2010 +0000

description:
Use ELF_ST_VISIBILITY (S_GET_OTHER( )) instead of a local S_IS_HIDDEN as
suggested by binutils.

diffstat:

 external/gpl3/binutils/dist/gas/config/tc-vax.c |  19 +------------------
 1 files changed, 1 insertions(+), 18 deletions(-)

diffs (36 lines):

diff -r d2511e90107a -r 8f12f4a09aaf external/gpl3/binutils/dist/gas/config/tc-vax.c
--- a/external/gpl3/binutils/dist/gas/config/tc-vax.c   Thu Dec 09 05:19:43 2010 +0000
+++ b/external/gpl3/binutils/dist/gas/config/tc-vax.c   Thu Dec 09 06:22:03 2010 +0000
@@ -266,23 +266,6 @@
 
 #define min(a, b)      ((a) < (b) ? (a) : (b))
 
-#ifdef OBJ_ELF
-static int
-S_IS_HIDDEN(symbolS *symbolP)
-{
-  asymbol *bfdsym;
-  elf_symbol_type *elfsym;
-
-  bfdsym = symbol_get_bfdsym (symbolP);
-  elfsym = elf_symbol_from (bfd_asymbol_bfd (bfdsym), bfdsym);
-  
-  assert (elfsym);
-
-  return (elfsym->internal_elf_sym.st_other & 3) == STV_HIDDEN;
-}
-#endif /* OBJ_ELF */
-
-
 void
 md_number_to_chars (char con[], valueT value, int nbytes)
 {
@@ -410,7 +393,7 @@
              && fragP->fr_symbol != NULL
              && flag_want_pic
 #ifdef OBJ_ELF
-             && !S_IS_HIDDEN (fragP->fr_symbol)
+             && ELF_ST_VISIBILITY (S_GET_OTHER (fragP->fr_symbol)) != STV_HIDDEN
 #endif
              && (!S_IS_DEFINED (fragP->fr_symbol)
                  || S_IS_WEAK (fragP->fr_symbol)



Home | Main Index | Thread Index | Old Index