This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[patch/coff] Remove exec_hdr
- From: Tristan Gingold <gingold at adacore dot com>
- To: binutils <binutils at sourceware dot org>
- Date: Wed, 30 Mar 2011 12:12:46 +0200
- Subject: [patch/coff] Remove exec_hdr
Hi,
the definition of libcoff.h:exec_hdr references the 'hdr' field of struct coff_tdata, but this field doesn't exist.
A quick grep also shows that this macro is not used (hopefully).
So I propose a little cleanup: removing this macro.
Sanity-checked by rebuilding powerpc-ibm-aix.
Ok for trunk ?
Tristan.
bfd/
2011-03-30 Tristan Gingold <gingold@adacore.com>
* libcoff-in.h (exec_hdr): Remove.
* libcoff.h: Regenerate.
diff --git a/bfd/libcoff-in.h b/bfd/libcoff-in.h
index e2b60c5..9d24748 100644
--- a/bfd/libcoff-in.h
+++ b/bfd/libcoff-in.h
@@ -26,7 +26,6 @@
/* Object file tdata; access macros. */
#define coff_data(bfd) ((bfd)->tdata.coff_obj_data)
-#define exec_hdr(bfd) (coff_data (bfd)->hdr)
#define obj_pe(bfd) (coff_data (bfd)->pe)
#define obj_symbols(bfd) (coff_data (bfd)->symbols)
#define obj_sym_filepos(bfd) (coff_data (bfd)->sym_filepos)