remove unneeded ifdefs
This commit is contained in:
parent
8d3ad4e16f
commit
fdfd89ab43
|
@ -1,8 +1,8 @@
|
||||||
1999-09-06 Donn Terry <donn@interix.com>
|
1999-09-06 Donn Terry <donn@interix.com>
|
||||||
|
|
||||||
* libcoff-in.h (struct pei_section_tdata): Add pe_flags field.
|
* libcoff-in.h (struct pei_section_tdata): Add pe_flags field.
|
||||||
* coffcode.h (coff_set_alignment_hook): Set pe_flags field if
|
* coffcode.h (coff_set_alignment_hook) [COFF_WITH_PE version]: Set
|
||||||
COFF_WITH_PE.
|
pe_flags field.
|
||||||
* libcoff.h: Rebuild.
|
* libcoff.h: Rebuild.
|
||||||
|
|
||||||
* coffcode.h (coff_set_custom_section_alignment): Add const to
|
* coffcode.h (coff_set_custom_section_alignment): Add const to
|
||||||
|
|
|
@ -1487,7 +1487,6 @@ coff_set_alignment_hook (abfd, section, scnhdr)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef COFF_WITH_PE
|
|
||||||
/* In a PE image file, the s_paddr field holds the virtual size of a
|
/* In a PE image file, the s_paddr field holds the virtual size of a
|
||||||
section, while the s_size field holds the raw size. We also keep
|
section, while the s_size field holds the raw size. We also keep
|
||||||
the original section flag value, since not every bit can be
|
the original section flag value, since not every bit can be
|
||||||
|
@ -1516,7 +1515,6 @@ coff_set_alignment_hook (abfd, section, scnhdr)
|
||||||
pei_section_data (abfd, section)->pe_flags = hdr->s_flags;
|
pei_section_data (abfd, section)->pe_flags = hdr->s_flags;
|
||||||
|
|
||||||
section->lma = hdr->s_vaddr;
|
section->lma = hdr->s_vaddr;
|
||||||
#endif /* COFF_WITH_PE */
|
|
||||||
}
|
}
|
||||||
#undef ALIGN_SET
|
#undef ALIGN_SET
|
||||||
#undef ELIFALIGN_SET
|
#undef ELIFALIGN_SET
|
||||||
|
|
Loading…
Reference in New Issue