mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 04:49:54 +08:00
1999-09-11 Donn Terry <donn@interix.com>
* config/obj-coff.c (coff_frob_symbol): Prohibit weak common symbols.
This commit is contained in:
@ -5,6 +5,9 @@
|
|||||||
|
|
||||||
1999-09-11 Donn Terry <donn@interix.com>
|
1999-09-11 Donn Terry <donn@interix.com>
|
||||||
|
|
||||||
|
* config/obj-coff.c (coff_frob_symbol): Prohibit weak common
|
||||||
|
symbols.
|
||||||
|
|
||||||
* config/obj-coff.c (obj_coff_endef): Don't merge labels, or
|
* config/obj-coff.c (obj_coff_endef): Don't merge labels, or
|
||||||
symbols which do not have a constant value, or tags with
|
symbols which do not have a constant value, or tags with
|
||||||
non-tags. Remove the symbol from the list before adding it at the
|
non-tags. Remove the symbol from the list before adding it at the
|
||||||
|
@ -1169,6 +1169,11 @@ coff_frob_symbol (symp, punt)
|
|||||||
/* more ... */
|
/* more ... */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Double check weak symbols. */
|
||||||
|
if (S_IS_WEAK (symp) && S_IS_COMMON (symp))
|
||||||
|
as_bad (_("Symbol `%s' can not be both weak and common"),
|
||||||
|
S_GET_NAME (symp));
|
||||||
|
|
||||||
if (SF_GET_TAG (symp))
|
if (SF_GET_TAG (symp))
|
||||||
last_tagP = symp;
|
last_tagP = symp;
|
||||||
else if (S_GET_STORAGE_CLASS (symp) == C_EOS)
|
else if (S_GET_STORAGE_CLASS (symp) == C_EOS)
|
||||||
|
Reference in New Issue
Block a user