mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 10:34:21 +08:00
common/undef sym handling fix from p3
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
Thu Aug 20 19:55:22 1992 Ken Raeburn (raeburn@cygnus.com)
|
||||||
|
|
||||||
|
* ldsym.c (write_file_locals): Reorder check for common or
|
||||||
|
undefined symbols so that it works.
|
||||||
|
|
||||||
Tue Aug 18 13:41:36 1992 Ian Lance Taylor (ian@cygnus.com)
|
Tue Aug 18 13:41:36 1992 Ian Lance Taylor (ian@cygnus.com)
|
||||||
|
|
||||||
* configure.in: accept all m68K family members.
|
* configure.in: accept all m68K family members.
|
||||||
|
27
ld/ldsym.c
27
ld/ldsym.c
@ -374,7 +374,19 @@ asymbol **output_buffer;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (flag_is_ordinary_local(p->flags))
|
if (flag_is_debugger(p->flags))
|
||||||
|
{
|
||||||
|
/* Only keep the debugger symbols if no stripping required */
|
||||||
|
if (strip_symbols == STRIP_NONE) {
|
||||||
|
*output_buffer++ = p;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (p->section == &bfd_und_section
|
||||||
|
|| p->section == &bfd_com_section)
|
||||||
|
{
|
||||||
|
/* These must be global. */
|
||||||
|
}
|
||||||
|
else if (flag_is_ordinary_local(p->flags))
|
||||||
{
|
{
|
||||||
if (discard_locals == DISCARD_ALL)
|
if (discard_locals == DISCARD_ALL)
|
||||||
{ }
|
{ }
|
||||||
@ -386,19 +398,6 @@ asymbol **output_buffer;
|
|||||||
else
|
else
|
||||||
{ *output_buffer++ = p; }
|
{ *output_buffer++ = p; }
|
||||||
}
|
}
|
||||||
else if (flag_is_debugger(p->flags))
|
|
||||||
{
|
|
||||||
/* Only keep the debugger symbols if no stripping required */
|
|
||||||
if (strip_symbols == STRIP_NONE) {
|
|
||||||
*output_buffer++ = p;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if (p->section == &bfd_und_section)
|
|
||||||
{ /* This must be global */
|
|
||||||
}
|
|
||||||
else if (p->section == &bfd_com_section) {
|
|
||||||
/* And so must this */
|
|
||||||
}
|
|
||||||
else if (p->flags & BSF_CTOR) {
|
else if (p->flags & BSF_CTOR) {
|
||||||
/* Throw it away */
|
/* Throw it away */
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user