This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]