mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 10:00:51 +00:00
* coffcode.h (coff_write_object_contents): Enclose all occurrences
of hasdebug and is_reloc_section in #ifdef COFF_IMAGE_WITH_PE.
This commit is contained in:
@@ -3533,7 +3533,9 @@ coff_write_object_contents (bfd * abfd)
|
||||
asection *current;
|
||||
bfd_boolean hasrelocs = FALSE;
|
||||
bfd_boolean haslinno = FALSE;
|
||||
#ifdef COFF_IMAGE_WITH_PE
|
||||
bfd_boolean hasdebug = FALSE;
|
||||
#endif
|
||||
file_ptr scn_base;
|
||||
file_ptr reloc_base;
|
||||
file_ptr lineno_base;
|
||||
@@ -3636,9 +3638,9 @@ coff_write_object_contents (bfd * abfd)
|
||||
current = current->next)
|
||||
{
|
||||
struct internal_scnhdr section;
|
||||
#ifdef COFF_IMAGE_WITH_PE
|
||||
bfd_boolean is_reloc_section = FALSE;
|
||||
|
||||
#ifdef COFF_IMAGE_WITH_PE
|
||||
if (strcmp (current->name, DOT_RELOC) == 0)
|
||||
{
|
||||
is_reloc_section = TRUE;
|
||||
@@ -3737,9 +3739,11 @@ coff_write_object_contents (bfd * abfd)
|
||||
#endif
|
||||
if (current->lineno_count != 0)
|
||||
haslinno = TRUE;
|
||||
#ifdef COFF_IMAGE_WITH_PE
|
||||
if ((current->flags & SEC_DEBUGGING) != 0
|
||||
&& ! is_reloc_section)
|
||||
hasdebug = TRUE;
|
||||
#endif
|
||||
|
||||
#ifdef RS6000COFF_C
|
||||
#ifndef XCOFF64
|
||||
|
||||
Reference in New Issue
Block a user