mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
* symbols.c (symbol_clone): Ensure clones are not external.
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user