* peicode.h (coff_swap_aouthdr_out): Delete test for .junk.
* coffcode.h (coff_compute_section_file_positions): Likewise. (coff_write_object_contents): Likewise.
This commit is contained in:
parent
ea461c67c1
commit
323b430fc4
|
@ -1,3 +1,9 @@
|
||||||
|
Sun Mar 31 01:58:41 1996 steve chamberlain <sac@slash.cygnus.com>
|
||||||
|
|
||||||
|
* peicode.h (coff_swap_aouthdr_out): Delete test for .junk.
|
||||||
|
* coffcode.h (coff_compute_section_file_positions): Likewise.
|
||||||
|
(coff_write_object_contents): Likewise.
|
||||||
|
|
||||||
Fri Mar 29 12:44:36 1996 Ian Lance Taylor <ian@cygnus.com>
|
Fri Mar 29 12:44:36 1996 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
|
||||||
* section.c (SEC_LINK_ONCE): Define.
|
* section.c (SEC_LINK_ONCE): Define.
|
||||||
|
|
|
@ -2106,16 +2106,6 @@ coff_compute_section_file_positions (abfd)
|
||||||
if (!(current->flags & SEC_HAS_CONTENTS))
|
if (!(current->flags & SEC_HAS_CONTENTS))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
#ifdef COFF_WITH_PE
|
|
||||||
/* Do not include the .junk section. This is where we collect section
|
|
||||||
data which we don't need. This is mainly the MS .debug$ data which
|
|
||||||
stores codeview debug data. */
|
|
||||||
if (strcmp (current->name, ".junk") == 0)
|
|
||||||
{
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Align the sections in the file to the same boundary on
|
/* Align the sections in the file to the same boundary on
|
||||||
which they are aligned in virtual memory. I960 doesn't
|
which they are aligned in virtual memory. I960 doesn't
|
||||||
do this (FIXME) so we can stay in sync with Intel. 960
|
do this (FIXME) so we can stay in sync with Intel. 960
|
||||||
|
@ -2353,14 +2343,6 @@ coff_write_object_contents (abfd)
|
||||||
struct internal_scnhdr section;
|
struct internal_scnhdr section;
|
||||||
|
|
||||||
#ifdef COFF_WITH_PE
|
#ifdef COFF_WITH_PE
|
||||||
/* Do not include the .junk section. This is where we collect section
|
|
||||||
data which we don't need. This is mainly the MS .debug$ data which
|
|
||||||
stores codeview debug data. */
|
|
||||||
if (strcmp (current->name, ".junk") == 0)
|
|
||||||
{
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* If we've got a .reloc section, remember. */
|
/* If we've got a .reloc section, remember. */
|
||||||
|
|
||||||
#ifdef COFF_IMAGE_WITH_PE
|
#ifdef COFF_IMAGE_WITH_PE
|
||||||
|
|
|
@ -861,11 +861,6 @@ coff_swap_aouthdr_out (abfd, in, out)
|
||||||
{
|
{
|
||||||
int rounded = FA(sec->_raw_size);
|
int rounded = FA(sec->_raw_size);
|
||||||
|
|
||||||
if (strcmp(sec->name,".junk") == 0)
|
|
||||||
{
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (sec->flags & SEC_DATA)
|
if (sec->flags & SEC_DATA)
|
||||||
dsize += rounded;
|
dsize += rounded;
|
||||||
if (sec->flags & SEC_CODE)
|
if (sec->flags & SEC_CODE)
|
||||||
|
|
Loading…
Reference in New Issue