Nick Clifton c19a61
diff -rup binutils-2.26.orig/bfd/libaout.h binutils-2.26/bfd/libaout.h
Nick Clifton c19a61
--- binutils-2.26.orig/bfd/libaout.h	2016-03-15 09:50:29.080059305 +0000
Nick Clifton c19a61
+++ binutils-2.26/bfd/libaout.h	2016-03-15 09:53:26.178070524 +0000
Nick Clifton c19a61
@@ -448,9 +448,7 @@ struct  aout_data_struct
Nick Clifton c19a61
 #define obj_aout_sym_hashes(bfd)           (adata (bfd).sym_hashes)
Nick Clifton c19a61
 #define obj_aout_dynamic_info(bfd)         (adata (bfd).dynamic_info)
Nick Clifton c19a61
 
Nick Clifton c19a61
-/* We take the address of the first element of an asymbol to ensure that the
Nick Clifton c19a61
-   macro is only ever applied to an asymbol.  */
Nick Clifton c19a61
-#define aout_symbol(asymbol) ((aout_symbol_type *)(&(asymbol)->the_bfd))
Nick Clifton c19a61
+#define aout_symbol(asymbol) ((aout_symbol_type *) (asymbol))
Nick Clifton c19a61
 
Nick Clifton c19a61
 /* Information we keep for each a.out section.  This is currently only
Nick Clifton c19a61
    used by the a.out backend linker.  */
Nick Clifton c19a61
diff -rup binutils-2.26.orig/bfd/libcoff.h binutils-2.26/bfd/libcoff.h
Nick Clifton c19a61
--- binutils-2.26.orig/bfd/libcoff.h	2016-03-15 09:50:29.080059305 +0000
Nick Clifton c19a61
+++ binutils-2.26/bfd/libcoff.h	2016-03-15 09:54:02.826279784 +0000
Nick Clifton c19a61
@@ -192,9 +192,7 @@ struct xcoff_tdata
Nick Clifton c19a61
 
Nick Clifton c19a61
 #define xcoff_data(abfd) ((abfd)->tdata.xcoff_obj_data)
Nick Clifton c19a61
 
Nick Clifton c19a61
-/* We take the address of the first element of an asymbol to ensure that the
Nick Clifton c19a61
-   macro is only ever applied to an asymbol.  */
Nick Clifton c19a61
-#define coffsymbol(asymbol) ((coff_symbol_type *)(&((asymbol)->the_bfd)))
Nick Clifton c19a61
+#define coffsymbol(asymbol) ((coff_symbol_type *) (asymbol))
Nick Clifton c19a61
 
Nick Clifton c19a61
 /* Tdata for sections in XCOFF files.  This is used by the linker.  */
Nick Clifton c19a61
 
Nick Clifton c19a61
diff -rup binutils-2.26.orig/bfd/libcoff-in.h binutils-2.26/bfd/libcoff-in.h
Nick Clifton c19a61
--- binutils-2.26.orig/bfd/libcoff-in.h	2016-03-15 09:50:29.080059305 +0000
Nick Clifton c19a61
+++ binutils-2.26/bfd/libcoff-in.h	2016-03-15 09:53:44.989177935 +0000
Nick Clifton c19a61
@@ -188,9 +188,7 @@ struct xcoff_tdata
Nick Clifton c19a61
 
Nick Clifton c19a61
 #define xcoff_data(abfd) ((abfd)->tdata.xcoff_obj_data)
Nick Clifton c19a61
 
Nick Clifton c19a61
-/* We take the address of the first element of an asymbol to ensure that the
Nick Clifton c19a61
-   macro is only ever applied to an asymbol.  */
Nick Clifton c19a61
-#define coffsymbol(asymbol) ((coff_symbol_type *)(&((asymbol)->the_bfd)))
Nick Clifton c19a61
+#define coffsymbol(asymbol) ((coff_symbol_type *) (asymbol))
Nick Clifton c19a61
 
Nick Clifton c19a61
 /* Tdata for sections in XCOFF files.  This is used by the linker.  */
Nick Clifton c19a61
 
Nick Clifton 3a9835
--- binutils-2.26.orig/gas/config/obj-elf.h	2016-03-15 09:50:29.143059664 +0000
Nick Clifton 3a9835
+++ binutils-2.26/gas/config/obj-elf.h	2016-03-15 10:36:26.342646864 +0000
Nick Clifton 3a9835
@@ -93,8 +93,8 @@ extern void elf_begin (void);
Nick Clifton 3a9835
 #define LOCAL_LABEL_PREFIX '.'
Nick Clifton 3a9835
 #endif
Nick Clifton 3a9835
 
Nick Clifton 3a9835
-/* should be conditional on address size! */
Nick Clifton 3a9835
-#define elf_symbol(asymbol) ((elf_symbol_type *) (&(asymbol)->the_bfd))
Nick Clifton 3a9835
+/* Should be conditional on address size!  */
Nick Clifton 3a9835
+#define elf_symbol(asymbol) ((elf_symbol_type *) (asymbol))
Nick Clifton 3a9835
 
Nick Clifton 3a9835
 #ifndef S_GET_SIZE
Nick Clifton 3a9835
 #define S_GET_SIZE(S) \