aboutsummaryrefslogtreecommitdiff
path: root/include/coff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2007-03-19 23:06:06 +0000
committerH.J. Lu <hjl.tools@gmail.com>2007-03-19 23:06:06 +0000
commitd13c9dc69aa73469d177e6cb10d1f6ba9dc8fb58 (patch)
treec0be8ddbba7cf4d8b98a32ef1e460383c990a12b /include/coff
parent1615fd16305c225358605485142d1cc6724f96d8 (diff)
downloadgdb-d13c9dc69aa73469d177e6cb10d1f6ba9dc8fb58.zip
gdb-d13c9dc69aa73469d177e6cb10d1f6ba9dc8fb58.tar.gz
gdb-d13c9dc69aa73469d177e6cb10d1f6ba9dc8fb58.tar.bz2
*** empty log message ***
Diffstat (limited to 'include/coff')
-rw-r--r--include/coff/ChangeLog7
-rw-r--r--include/coff/internal.h22
2 files changed, 29 insertions, 0 deletions
diff --git a/include/coff/ChangeLog b/include/coff/ChangeLog
index b8af0fe..a7bde4a 100644
--- a/include/coff/ChangeLog
+++ b/include/coff/ChangeLog
@@ -1,3 +1,10 @@
+2003-03-19 H.J. Lu <hongjiu.lu@intel.com>
+
+ * internal.h (internal_extra_pe_aouthdr): Add Magic,
+ MajorLinkerVersion, MinorLinkerVersion, SizeOfCode,
+ SizeOfInitializedData, SizeOfUninitializedData,
+ AddressOfEntryPoint, BaseOfCode and BaseOfData.
+
2006-12-05 Michael Tautschnig <tautschn@model.in.tum.de>
Nick Clifton <nickc@redhat.com>
diff --git a/include/coff/internal.h b/include/coff/internal.h
index 61ca4e3..afe6889 100644
--- a/include/coff/internal.h
+++ b/include/coff/internal.h
@@ -138,6 +138,28 @@ typedef struct _IMAGE_DATA_DIRECTORY
struct internal_extra_pe_aouthdr
{
+ /* FIXME: The following entries are in AOUTHDR. But they aren't
+ available internally in bfd. We add them here so that objdump
+ can dump them. */
+ /* The state of the image file */
+ short Magic;
+ /* Linker major version number */
+ char MajorLinkerVersion;
+ /* Linker minor version number */
+ char MinorLinkerVersion;
+ /* Total size of all code sections */
+ long SizeOfCode;
+ /* Total size of all initialized data sections */
+ long SizeOfInitializedData;
+ /* Total size of all uninitialized data sections */
+ long SizeOfUninitializedData;
+ /* Address of entry point relative to image base. */
+ bfd_vma AddressOfEntryPoint;
+ /* Address of the first code section relative to image base. */
+ bfd_vma BaseOfCode;
+ /* Address of the first data section relative to image base. */
+ bfd_vma BaseOfData;
+
/* PE stuff */
bfd_vma ImageBase; /* address of specific location in memory that
file is located, NT default 0x10000 */