* symbols.c (symbol_clone): Ensure clones are not external.

This commit is contained in:
Alan Modra 2008-08-22 06:07:45 +00:00
parent 4e3b43ed44
commit 73e24c6845
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2008-08-22 Alan Modra <amodra@bigpond.net.au>
* symbols.c (symbol_clone): Ensure clones are not external.
2008-08-22 Alan Modra <amodra@bigpond.net.au>
* config/tc-hppa.c (md_begin): Set BSF_KEEP for "dummy_symbol".

View File

@ -596,13 +596,20 @@ symbol_clone (symbolS *orgsymP, int replace)
symbol_lastP = newsymP;
else if (orgsymP->sy_next)
orgsymP->sy_next->sy_previous = newsymP;
/* Symbols that won't be output can't be external. */
S_CLEAR_EXTERNAL (orgsymP);
orgsymP->sy_previous = orgsymP->sy_next = orgsymP;
debug_verify_symchain (symbol_rootP, symbol_lastP);
symbol_table_insert (newsymP);
}
else
newsymP->sy_previous = newsymP->sy_next = newsymP;
{
/* Symbols that won't be output can't be external. */
S_CLEAR_EXTERNAL (newsymP);
newsymP->sy_previous = newsymP->sy_next = newsymP;
}
return newsymP;
}