aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-m68hc11.c
diff options
context:
space:
mode:
authorStephane Carrez <stcarrez@nerim.fr>2001-02-02 14:14:11 +0000
committerStephane Carrez <stcarrez@nerim.fr>2001-02-02 14:14:11 +0000
commitdbb8ad491798743b06ddd42675679b49d02377a0 (patch)
tree689700d656ab4e239a7690ef77e431aaabecdbb9 /gas/config/tc-m68hc11.c
parentfae0bf59e6c7f90f1b4faee471fadf1d79ba5a5f (diff)
downloadgdb-dbb8ad491798743b06ddd42675679b49d02377a0.zip
gdb-dbb8ad491798743b06ddd42675679b49d02377a0.tar.gz
gdb-dbb8ad491798743b06ddd42675679b49d02377a0.tar.bz2
* tc-m68hc11.c (relaxable_symbol): Relax externally visible symbols
because there is no support for shared libraries and these symbols can't be overridden (unless they are weak).
Diffstat (limited to 'gas/config/tc-m68hc11.c')
-rw-r--r--gas/config/tc-m68hc11.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gas/config/tc-m68hc11.c b/gas/config/tc-m68hc11.c
index d49723e..5645d29 100644
--- a/gas/config/tc-m68hc11.c
+++ b/gas/config/tc-m68hc11.c
@@ -2543,14 +2543,15 @@ md_convert_frag (abfd, sec, fragP)
}
}
-/* On an ELF system, we can't relax an externally visible symbol,
- as well as a weak symbol. The weak symbol can be overriden
- at final link time by a non weak symbol. */
+/* On an ELF system, we can't relax a weak symbol. The weak symbol
+ can be overridden at final link time by a non weak symbol. We can
+ relax externally visible symbol because there is no shared library
+ and such symbol can't be overridden (unless they are weak). */
static int
relaxable_symbol (symbol)
symbolS *symbol;
{
- return ! S_IS_EXTERNAL (symbol) && ! S_IS_WEAK (symbol);
+ return ! S_IS_WEAK (symbol);
}
/* Force truly undefined symbols to their maximum size, and generally set up