* targets.c (enum bfd_endian): Define.
authorIan Lance Taylor <ian@airs.com>
Fri, 15 Dec 1995 21:18:43 +0000 (21:18 +0000)
committerIan Lance Taylor <ian@airs.com>
Fri, 15 Dec 1995 21:18:43 +0000 (21:18 +0000)
(bfd_target): Rename byteorder_big_p to byteorder, and change it
from boolean to enum bfd_endian.  Change header_byteorder_big_p
correspondingly.
* bfd-in.h (bfd_big_endian, bfd_little_endian): New macros.
(bfd_header_big_endian, bfd_header_little_endian): New macros.
* bfd-in2.h: Rebuild.
* All targets: Change initialization of byteorder and
header_byteorder to use enum bfd_endian values rather than
booleans.
* All files: Change all references to byteorder_big_p and
header_byteorder_big_p to use new bfd_*_endian macros.

bfd/ChangeLog
bfd/coff-a29k.c

index d27bd492418e9d445bf21173f8a84a2bf2448b0d..ff2bd9e5f1f4897d0b2d83c855028eb7cdb2b6a1 100644 (file)
@@ -1,5 +1,18 @@
 Fri Dec 15 12:05:57 1995  Ian Lance Taylor  <ian@cygnus.com>
 
+       * targets.c (enum bfd_endian): Define.
+       (bfd_target): Rename byteorder_big_p to byteorder, and change it
+       from boolean to enum bfd_endian.  Change header_byteorder_big_p
+       correspondingly.
+       * bfd-in.h (bfd_big_endian, bfd_little_endian): New macros.
+       (bfd_header_big_endian, bfd_header_little_endian): New macros.
+       * bfd-in2.h: Rebuild.
+       * All targets: Change initialization of byteorder and
+       header_byteorder to use enum bfd_endian values rather than
+       booleans.
+       * All files: Change all references to byteorder_big_p and
+       header_byteorder_big_p to use new bfd_*_endian macros.
+
        * coffgen.c (make_a_section_from_file): Set lma to s_paddr, not
        s_vaddr.
        * coffcode.h (coff_write_object_contents): Set s_paddr to lma, not
index 7b0f8e8807d7402fe9c07ae23c7957da3a76573b..3ceabfba5c46eaa44fdb28b27757e240f537738d 100644 (file)
@@ -585,8 +585,8 @@ const bfd_target a29kcoff_big_vec =
 {
   "coff-a29k-big",             /* name */
   bfd_target_coff_flavour,
-  true,                                /* data byte order is big */
-  true,                                /* header byte order is big */
+  BFD_ENDIAN_BIG,              /* data byte order is big */
+  BFD_ENDIAN_BIG,              /* header byte order is big */
 
   (HAS_RELOC | EXEC_P |                /* object flags */
    HAS_LINENO | HAS_DEBUG |