mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-24 20:49:43 +00:00
2004-07-19 Christopher Faylor <cgf@timesys.com>
H.J. Lu <hongjiu.lu@intel.com> * subsegs.c (section_symbol): Don't create a new segment when existing segment is undefined.
This commit is contained in:
parent
14b3c46308
commit
90c1602c0f
@ -1,3 +1,9 @@
|
||||
2004-07-19 Christopher Faylor <cgf@timesys.com>
|
||||
H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* subsegs.c (section_symbol): Don't create a new segment when
|
||||
existing segment is undefined.
|
||||
|
||||
2004-07-16 Richard Earnshaw <rearnsha@arm.com>
|
||||
|
||||
* config/tc-arm.c: Include include/opcode/arm.h.
|
||||
|
@ -523,20 +523,20 @@ section_symbol (segT sec)
|
||||
}
|
||||
else
|
||||
{
|
||||
segT seg;
|
||||
s = symbol_find_base (sec->symbol->name, 0);
|
||||
/* We have to make sure it is the right symbol when we
|
||||
have multiple sections with the same section name. */
|
||||
if (s == NULL || S_GET_SEGMENT (s) != sec)
|
||||
if (s == NULL
|
||||
|| ((seg = S_GET_SEGMENT (s)) != sec
|
||||
&& seg != undefined_section))
|
||||
s = symbol_new (sec->symbol->name, sec, 0, &zero_address_frag);
|
||||
else
|
||||
{
|
||||
if (S_GET_SEGMENT (s) == undefined_section)
|
||||
else if (seg == undefined_section)
|
||||
{
|
||||
S_SET_SEGMENT (s, sec);
|
||||
symbol_set_frag (s, &zero_address_frag);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
S_CLEAR_EXTERNAL (s);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user