* coffcode.h (coff_write_object_contents): In comdat section lookup,
stop looking when section is found.
This commit is contained in:
parent
7681eb9df7
commit
9c7a574803
|
@ -1,3 +1,8 @@
|
||||||
|
Wed May 1 18:39:32 1996 Doug Evans <dje@canuck.cygnus.com>
|
||||||
|
|
||||||
|
* coffcode.h (coff_write_object_contents): In comdat section lookup,
|
||||||
|
stop looking when section is found.
|
||||||
|
|
||||||
Wed May 1 14:17:57 1996 Ian Lance Taylor <ian@cygnus.com>
|
Wed May 1 14:17:57 1996 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
|
||||||
* coffcode.h (STRING_SIZE_SIZE): Define.
|
* coffcode.h (STRING_SIZE_SIZE): Define.
|
||||||
|
|
|
@ -2471,16 +2471,15 @@ coff_write_object_contents (abfd)
|
||||||
{
|
{
|
||||||
unsigned int i, count;
|
unsigned int i, count;
|
||||||
asymbol **psym;
|
asymbol **psym;
|
||||||
|
coff_symbol_type *csym;
|
||||||
|
|
||||||
count = bfd_get_symcount (abfd);
|
count = bfd_get_symcount (abfd);
|
||||||
for (i = 0, psym = abfd->outsymbols; i < count; i++, psym++)
|
for (i = 0, psym = abfd->outsymbols; i < count; i++, psym++)
|
||||||
{
|
{
|
||||||
coff_symbol_type *csym;
|
/* Here *PSYM is the section symbol for CURRENT. */
|
||||||
combined_entry_type *aux;
|
|
||||||
|
|
||||||
if (strcmp ((*psym)->name, current->name) != 0)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
|
if (strcmp ((*psym)->name, current->name) == 0)
|
||||||
|
{
|
||||||
csym = coff_symbol_from (abfd, *psym);
|
csym = coff_symbol_from (abfd, *psym);
|
||||||
if (csym == NULL
|
if (csym == NULL
|
||||||
|| csym->native == NULL
|
|| csym->native == NULL
|
||||||
|
@ -2488,8 +2487,16 @@ coff_write_object_contents (abfd)
|
||||||
|| csym->native->u.syment.n_sclass != C_STAT
|
|| csym->native->u.syment.n_sclass != C_STAT
|
||||||
|| csym->native->u.syment.n_type != T_NULL)
|
|| csym->native->u.syment.n_type != T_NULL)
|
||||||
continue;
|
continue;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Here *PSYM is the section symbol for CURRENT. */
|
/* Did we find it?
|
||||||
|
Note that we might not if we're converting the file from
|
||||||
|
some other object file format. */
|
||||||
|
if (i < count)
|
||||||
|
{
|
||||||
|
combined_entry_type *aux;
|
||||||
|
|
||||||
/* We don't touch the x_checksum field. The
|
/* We don't touch the x_checksum field. The
|
||||||
x_associated field is not currently supported. */
|
x_associated field is not currently supported. */
|
||||||
|
|
Loading…
Reference in New Issue