From: Stephane Carrez Date: Fri, 2 Feb 2001 14:41:37 +0000 (+0000) Subject: * tc-m68hc11.c (relaxable_symbol): Relax externally visible symbols X-Git-Tag: x86_64versiong3~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f86ff23fd44ed9131ffb165fa9dc733b90f0931c;p=thirdparty%2Fbinutils-gdb.git * 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). --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 1fb85e74017..58ca571edc2 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2001-02-02 Stephane Carrez + + * config/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). + 2001-02-01 Momchil Velikov * dwarf2dbg.c (out_debug_abbrev): Terminate the abbreviations diff --git a/gas/config/tc-m68hc11.c b/gas/config/tc-m68hc11.c index d49723ec9e1..5645d29a615 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