aboutsummaryrefslogtreecommitdiff
path: root/include/coff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2006-11-14 19:03:32 +0000
committerNick Clifton <nickc@redhat.com>2006-11-14 19:03:32 +0000
commit6c73cbb1d9a26d1c4d9bd5464832846b7c049b9d (patch)
treed790143b61f27fc2849bc28f34ababe4bdb548e0 /include/coff
parent25fe350bd949f76828efc4b523f8f4cefbbc8295 (diff)
downloadgdb-6c73cbb1d9a26d1c4d9bd5464832846b7c049b9d.zip
gdb-6c73cbb1d9a26d1c4d9bd5464832846b7c049b9d.tar.gz
gdb-6c73cbb1d9a26d1c4d9bd5464832846b7c049b9d.tar.bz2
* peXXigen.c: Updates for PE/COFF V8.0, and clarification
(dir_names): Added CLR Runtime Header to dir_names[]. (_bfd_XX_print_private_bfd_data_common): Added EFI_ROM and XBOX subsystem names (_bfd_XXi_swap_aouthdr_in, _bfd_XXi_swap_aouthdr_out) (pe_print_idata, pe_print_edata) (_bfd_XX_bfd_copy_private_bfd_data_common) (_bfd_XXi_final_link_postscript): Use #DEFINEs for index into DataDirectory. * pe.h: Added defines for IMAGE_SUBSYSTEM_EFI_ROM and IMAGE_SUBSYSTEM_XBOX. * internal.h: Added defines for PE directory entry types. NB: in internal.h because IMAGE_NUMBEROF_DIRECTORY_ENTRYIES is in pe.h
Diffstat (limited to 'include/coff')
-rw-r--r--include/coff/ChangeLog8
-rw-r--r--include/coff/internal.h16
-rw-r--r--include/coff/pe.h2
3 files changed, 26 insertions, 0 deletions
diff --git a/include/coff/ChangeLog b/include/coff/ChangeLog
index 499d478..60a8587 100644
--- a/include/coff/ChangeLog
+++ b/include/coff/ChangeLog
@@ -1,3 +1,11 @@
+2006-11-14 Phil Lello <phil.lello@homecall.co.uk>
+
+ * pe.h: Added defines for IMAGE_SUBSYSTEM_EFI_ROM and
+ IMAGE_SUBSYSTEM_XBOX.
+ * internal.h: Added defines for PE directory entry types.
+ NB: in internal.h because IMAGE_NUMBEROF_DIRECTORY_ENTRYIES is in
+ pe.h
+
2006-09-20 Kai Tietz <Kai.Tietz@onevision.com>
* external.h: Add proper external_aouthdr64 structure (without
diff --git a/include/coff/internal.h b/include/coff/internal.h
index 71336ff..61ca4e3 100644
--- a/include/coff/internal.h
+++ b/include/coff/internal.h
@@ -103,6 +103,22 @@ typedef struct _IMAGE_DATA_DIRECTORY
bfd_vma VirtualAddress;
long Size;
} IMAGE_DATA_DIRECTORY;
+#define PE_EXPORT_TABLE 0
+#define PE_IMPORT_TABLE 1
+#define PE_RESOURCE_TABLE 2
+#define PE_EXCEPTION_TABLE 3
+#define PE_CERTIFICATE_TABLE 4
+#define PE_BASE_RELOCATION_TABLE 5
+#define PE_DEBUG_DATA 6
+#define PE_ARCHITECTURE 7
+#define PE_GLOBAL_PTR 8
+#define PE_TLS_TABLE 9
+#define PE_LOAD_CONFIG_TABLE 10
+#define PE_BOUND_IMPORT_TABLE 11
+#define PE_IMPORT_ADDRESS_TABLE 12
+#define PE_DELAY_IMPORT_DESCRIPTOR 13
+#define PE_CLR_RUNTIME_HEADER 14
+/* DataDirectory[15] is currently reserved, so no define. */
#define IMAGE_NUMBEROF_DIRECTORY_ENTRIES 16
/* Default image base for NT. */
diff --git a/include/coff/pe.h b/include/coff/pe.h
index ac53a17..277621c 100644
--- a/include/coff/pe.h
+++ b/include/coff/pe.h
@@ -130,6 +130,8 @@
#define IMAGE_SUBSYSTEM_EFI_APPLICATION 10
#define IMAGE_SUBSYSTEM_EFI_BOOT_SERVICE_DRIVER 11
#define IMAGE_SUBSYSTEM_EFI_RUNTIME_DRIVER 12
+#define IMAGE_SUBSYSTEM_EFI_ROM 13
+#define IMAGE_SUBSYSTEM_XBOX 14
/* Magic values that are true for all dos/nt implementations. */
#define DOSMAGIC 0x5a4d