* config/obj-coff.c (obj_frob_symbol): revert previous change,
it breaks linking against DLLs.
This commit is contained in:
parent
699845ef7b
commit
5e0d736c33
2 changed files with 15 additions and 16 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2000-07-20 DJ Delorie <dj@redhat.com>
|
||||||
|
|
||||||
|
* config/obj-coff.c (obj_frob_symbol): revert previous change,
|
||||||
|
it breaks linking against DLLs.
|
||||||
|
|
||||||
2000-07-20 Hans-Peter Nilsson <hp@axis.com>
|
2000-07-20 Hans-Peter Nilsson <hp@axis.com>
|
||||||
|
|
||||||
* configure.in: Add CRIS support.
|
* configure.in: Add CRIS support.
|
||||||
|
|
|
@ -1139,30 +1139,24 @@ coff_frob_symbol (symp, punt)
|
||||||
symbolS *real;
|
symbolS *real;
|
||||||
if (!SF_GET_LOCAL (symp)
|
if (!SF_GET_LOCAL (symp)
|
||||||
&& !SF_GET_STATICS (symp)
|
&& !SF_GET_STATICS (symp)
|
||||||
&& S_GET_STORAGE_CLASS (symp) != C_LABEL
|
|
||||||
&& symbol_constant_p(symp)
|
|
||||||
&& (real = symbol_find_base (S_GET_NAME (symp), DO_NOT_STRIP))
|
&& (real = symbol_find_base (S_GET_NAME (symp), DO_NOT_STRIP))
|
||||||
&& real != symp)
|
&& real != symp)
|
||||||
{
|
{
|
||||||
c_symbol_merge (symp, real);
|
c_symbol_merge (symp, real);
|
||||||
*punt = 1;
|
*punt = 1;
|
||||||
}
|
}
|
||||||
if (S_GET_STORAGE_CLASS (symp) == C_NULL)
|
if (!S_IS_DEFINED (symp) && !SF_GET_LOCAL (symp))
|
||||||
{
|
{
|
||||||
if (!S_IS_DEFINED (symp) && !SF_GET_LOCAL (symp))
|
assert (S_GET_VALUE (symp) == 0);
|
||||||
{
|
S_SET_EXTERNAL (symp);
|
||||||
assert (S_GET_VALUE (symp) == 0);
|
}
|
||||||
S_SET_EXTERNAL (symp);
|
else if (S_GET_STORAGE_CLASS (symp) == C_NULL)
|
||||||
}
|
{
|
||||||
else if (S_GET_SEGMENT (symp) == text_section
|
if (S_GET_SEGMENT (symp) == text_section
|
||||||
&& symp != seg_info (text_section)->sym)
|
&& symp != seg_info (text_section)->sym)
|
||||||
{
|
S_SET_STORAGE_CLASS (symp, C_LABEL);
|
||||||
S_SET_STORAGE_CLASS (symp, C_LABEL);
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
S_SET_STORAGE_CLASS (symp, C_STAT);
|
||||||
S_SET_STORAGE_CLASS (symp, C_STAT);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (SF_GET_PROCESS (symp))
|
if (SF_GET_PROCESS (symp))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue