diff options
author | Ian Lance Taylor <ian@airs.com> | 1995-12-15 21:18:43 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1995-12-15 21:18:43 +0000 |
commit | dc092b6b2af065de4a12e3293296cb01ded35042 (patch) | |
tree | d9e2396c9746a654e0c93be245e477bfbaa23269 /bfd | |
parent | 3ecd62ca7503fe6b816e89e8420da52c0ee7704c (diff) | |
download | gdb-dc092b6b2af065de4a12e3293296cb01ded35042.zip gdb-dc092b6b2af065de4a12e3293296cb01ded35042.tar.gz gdb-dc092b6b2af065de4a12e3293296cb01ded35042.tar.bz2 |
* 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.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 13 | ||||
-rw-r--r-- | bfd/coff-a29k.c | 4 |
2 files changed, 15 insertions, 2 deletions
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 <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 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 | |