* 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).
This commit is contained in:
Stephane Carrez 2001-02-02 14:14:11 +00:00
parent fae0bf59e6
commit dbb8ad4917
2 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2001-02-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
* 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 <velco@fadata.bg> 2001-02-01 Momchil Velikov <velco@fadata.bg>
* dwarf2dbg.c (out_debug_abbrev): Terminate the abbreviations * dwarf2dbg.c (out_debug_abbrev): Terminate the abbreviations

View File

@ -2543,14 +2543,15 @@ md_convert_frag (abfd, sec, fragP)
} }
} }
/* On an ELF system, we can't relax an externally visible symbol, /* On an ELF system, we can't relax a weak symbol. The weak symbol
as well as a weak symbol. The weak symbol can be overriden can be overridden at final link time by a non weak symbol. We can
at final link time by a non weak symbol. */ relax externally visible symbol because there is no shared library
and such symbol can't be overridden (unless they are weak). */
static int static int
relaxable_symbol (symbol) relaxable_symbol (symbol)
symbolS *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 /* Force truly undefined symbols to their maximum size, and generally set up