Module Name: src
Committed By: matt
Date: Thu Dec 9 06:22:03 UTC 2010
Modified Files:
src/external/gpl3/binutils/dist/gas/config: tc-vax.c
Log Message:
Use ELF_ST_VISIBILITY (S_GET_OTHER( )) instead of a local S_IS_HIDDEN as
suggested by binutils.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/binutils/dist/gas/config/tc-vax.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/gpl3/binutils/dist/gas/config/tc-vax.c
diff -u src/external/gpl3/binutils/dist/gas/config/tc-vax.c:1.3 src/external/gpl3/binutils/dist/gas/config/tc-vax.c:1.4
--- src/external/gpl3/binutils/dist/gas/config/tc-vax.c:1.3 Mon Dec 6 21:17:00 2010
+++ src/external/gpl3/binutils/dist/gas/config/tc-vax.c Thu Dec 9 06:22:03 2010
@@ -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)