* coff-pe-read.c (IMAGE_SCN_CNT_TEXT, IMAGE_SCN_CNT_INITIALIZED_DATA)

(IMAGE_SCN_CNT_UNINITIALIZED_DATA): Remove useless checks
	for already defined macros.
This commit is contained in:
Pierre Muller 2012-12-13 14:58:26 +00:00
parent 3999122f0c
commit 78ea0eca85
2 changed files with 9 additions and 9 deletions

View File

@ -1,3 +1,9 @@
2012-12-13 Pierre Muller <muller@sourceware.org>
* coff-pe-read.c (IMAGE_SCN_CNT_TEXT, IMAGE_SCN_CNT_INITIALIZED_DATA)
(IMAGE_SCN_CNT_UNINITIALIZED_DATA): Remove useless checks
for already defined macros.
2012-12-13 Pierre Muller <muller@sourceware.org>
* coff-pe-read.h (pe_text_section_offset): Declare new function.

View File

@ -55,15 +55,9 @@ struct read_pe_section_data
char *section_name; /* Recorded section name. */
};
#ifndef IMAGE_SCN_CNT_CODE
# define IMAGE_SCN_CNT_CODE 0x20
#endif
#ifndef IMAGE_SCN_CNT_INITIALIZED_DATA
# define IMAGE_SCN_CNT_INITIALIZED_DATA 0x40
#endif
#ifndef IMAGE_SCN_CNT_UNINITIALIZED_DATA
# define IMAGE_SCN_CNT_UNINITIALIZED_DATA 0x80
#endif
#define IMAGE_SCN_CNT_CODE 0x20
#define IMAGE_SCN_CNT_INITIALIZED_DATA 0x40
#define IMAGE_SCN_CNT_UNINITIALIZED_DATA 0x80
#define PE_SECTION_INDEX_TEXT 0
#define PE_SECTION_INDEX_DATA 1
#define PE_SECTION_INDEX_BSS 2