summaryrefslogtreecommitdiff
path: root/gas/config/tc-hppa.h
diff options
context:
space:
mode:
authorDave Anglin <dave.anglin@nrc.ca>2002-11-21 19:06:28 +0000
committerDave Anglin <dave.anglin@nrc.ca>2002-11-21 19:06:28 +0000
commit354e67df79614b48d462875c67d80d21d541755a (patch)
treec031f438d69c1b95f6906cf6a92c504bdf384c46 /gas/config/tc-hppa.h
parente8088c8392c772896a746b4cfb2722ee787d5f83 (diff)
downloadbinutils-redhat-354e67df79614b48d462875c67d80d21d541755a.tar.gz
* config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
only if they have default visibility.
Diffstat (limited to 'gas/config/tc-hppa.h')
-rw-r--r--gas/config/tc-hppa.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gas/config/tc-hppa.h b/gas/config/tc-hppa.h
index ea1ce9cc93..842ff318fb 100644
--- a/gas/config/tc-hppa.h
+++ b/gas/config/tc-hppa.h
@@ -178,7 +178,8 @@ int hppa_fix_adjustable PARAMS((struct fix *));
#define tc_frob_symbol(sym,punt) \
{ \
- if ((S_GET_SEGMENT (sym) == &bfd_und_section && ! symbol_used_p (sym)) \
+ if ((S_GET_SEGMENT (sym) == &bfd_und_section && ! symbol_used_p (sym) && \
+ ELF_ST_VISIBILITY (S_GET_OTHER (sym)) == STV_DEFAULT) \
|| (S_GET_SEGMENT (sym) == &bfd_abs_section \
&& ! S_IS_EXTERNAL (sym)) \
|| strcmp (S_GET_NAME (sym), "$global$") == 0 \