From dc092b6b2af065de4a12e3293296cb01ded35042 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 15 Dec 1995 21:18:43 +0000 Subject: * 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. --- bfd/ChangeLog | 13 +++++++++++++ bfd/coff-a29k.c | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) (limited to 'bfd') diff --git a/bfd/ChangeLog b/bfd/ChangeLog index d27bd49..ff2bd9e 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,18 @@ Fri Dec 15 12:05:57 1995 Ian Lance Taylor + * 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 diff --git a/bfd/coff-a29k.c b/bfd/coff-a29k.c index 7b0f8e8..3ceabfb 100644 --- a/bfd/coff-a29k.c +++ b/bfd/coff-a29k.c @@ -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 | -- cgit v1.1