* config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
authorDave Anglin <dave.anglin@nrc.ca>
Thu, 21 Nov 2002 19:06:28 +0000 (19:06 +0000)
committerDave Anglin <dave.anglin@nrc.ca>
Thu, 21 Nov 2002 19:06:28 +0000 (19:06 +0000)
only if they have default visibility.

gas/ChangeLog
gas/config/tc-hppa.h

index 306dc9356422068e8e30405cef6019df239d44b9..4e75d4ae8cb8348a6aedf62639bbab8be09b1df4 100644 (file)
@@ -1,3 +1,8 @@
+2002-11-21  Randolph Chung  <randolph@tausq.org>
+
+       * config/tc-hppa.h (tc_frob_symbol):  Frob undefined unused symbols
+       only if they have default visibility.
+
 2002-11-21  Richard Henderson  <rth@redhat.com>
 
        * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
index ea1ce9cc930a154f558f649b8c7e759533e596b8..842ff318fb4bd11424df83fdb490ba6942bbc5fa 100644 (file)
@@ -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 \
This page took 0.028554 seconds and 4 git commands to generate.