* coffgen.c (coff_renumber_symbols): Sort common symbols with
global symbols.
This commit is contained in:
parent
31a52a5145
commit
7938b4cb15
2 changed files with 15 additions and 4 deletions
|
@ -1,3 +1,12 @@
|
||||||
|
Tue Nov 21 13:03:57 1995 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
|
||||||
|
* coffgen.c (coff_renumber_symbols): Sort common symbols with
|
||||||
|
global symbols.
|
||||||
|
|
||||||
|
* coffcode.h (coff_compute_section_file_positions): Only pad the
|
||||||
|
previous section to force file alignment when creating an
|
||||||
|
executable.
|
||||||
|
|
||||||
Mon Nov 20 14:54:09 1995 Ian Lance Taylor <ian@cygnus.com>
|
Mon Nov 20 14:54:09 1995 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
|
||||||
* coffcode.h (coff_compute_section_file_positions): If
|
* coffcode.h (coff_compute_section_file_positions): If
|
||||||
|
|
|
@ -634,16 +634,18 @@ coff_renumber_symbols (bfd_ptr, first_undef)
|
||||||
for (i = 0; i < symbol_count; i++)
|
for (i = 0; i < symbol_count; i++)
|
||||||
if ((symbol_ptr_ptr[i]->flags & BSF_NOT_AT_END) != 0
|
if ((symbol_ptr_ptr[i]->flags & BSF_NOT_AT_END) != 0
|
||||||
|| (!bfd_is_und_section (symbol_ptr_ptr[i]->section)
|
|| (!bfd_is_und_section (symbol_ptr_ptr[i]->section)
|
||||||
|
&& !bfd_is_com_section (symbol_ptr_ptr[i]->section)
|
||||||
&& ((symbol_ptr_ptr[i]->flags & (BSF_GLOBAL | BSF_FUNCTION))
|
&& ((symbol_ptr_ptr[i]->flags & (BSF_GLOBAL | BSF_FUNCTION))
|
||||||
!= BSF_GLOBAL)))
|
!= BSF_GLOBAL)))
|
||||||
*newsyms++ = symbol_ptr_ptr[i];
|
*newsyms++ = symbol_ptr_ptr[i];
|
||||||
|
|
||||||
for (i = 0; i < symbol_count; i++)
|
for (i = 0; i < symbol_count; i++)
|
||||||
if (!bfd_is_und_section (symbol_ptr_ptr[i]->section)
|
if (!bfd_is_und_section (symbol_ptr_ptr[i]->section)
|
||||||
&& ((symbol_ptr_ptr[i]->flags & (BSF_GLOBAL
|
&& (bfd_is_com_section (symbol_ptr_ptr[i]->section)
|
||||||
|
|| ((symbol_ptr_ptr[i]->flags & (BSF_GLOBAL
|
||||||
| BSF_NOT_AT_END
|
| BSF_NOT_AT_END
|
||||||
| BSF_FUNCTION))
|
| BSF_FUNCTION))
|
||||||
== BSF_GLOBAL))
|
== BSF_GLOBAL)))
|
||||||
*newsyms++ = symbol_ptr_ptr[i];
|
*newsyms++ = symbol_ptr_ptr[i];
|
||||||
|
|
||||||
*first_undef = newsyms - bfd_ptr->outsymbols;
|
*first_undef = newsyms - bfd_ptr->outsymbols;
|
||||||
|
|
Loading…
Add table
Reference in a new issue