diff options
author | Kazu Hirata <kazu@codesourcery.com> | 2000-11-20 19:05:12 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@codesourcery.com> | 2000-11-20 19:05:12 +0000 |
commit | cedc0530e1e04fe54498f93f366d31bfe305ca24 (patch) | |
tree | 0df581095d28e347d2fe6475b5285f2795b006f7 /bfd/aout-tic30.c | |
parent | 6a4cae7df007c236e045654249f5764e5c37caee (diff) | |
download | gdb-cedc0530e1e04fe54498f93f366d31bfe305ca24.tar.gz |
2000-11-20 Kazu Hirata <kazu@hxi.com>
* aix386-core.c: Fix formatting.
* aout-adobe.c: Likewise.
* aout-arm.c: Likewise.
* aout-encap.c: Likewise.
* aout-ns32k.c: Likewise.
* aout-target.h: Likewise.
* aout-tic30.c: Likewise.
* aoutf1.h: Likewise.
* aoutx.h: Likewise.
* archive.c: Likewise.
Diffstat (limited to 'bfd/aout-tic30.c')
-rw-r--r-- | bfd/aout-tic30.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/bfd/aout-tic30.c b/bfd/aout-tic30.c index c1f7c396d17..f0f4d3d50b5 100644 --- a/bfd/aout-tic30.c +++ b/bfd/aout-tic30.c @@ -296,13 +296,15 @@ tic30_aout_fix_pcrel_16 (abfd, reloc_entry, symbol, data, input_section, /* These macros will get 24-bit values from the bfd definition. Big-endian only. */ -#define bfd_getb_24(BFD,ADDR) (bfd_get_8(BFD,ADDR) << 16) | \ - (bfd_get_8(BFD,ADDR+1) << 8) | \ - (bfd_get_8(BFD,ADDR+2)) - -#define bfd_putb_24(BFD,DATA,ADDR) bfd_put_8(BFD,(bfd_byte)((DATA >> 16) & 0xFF),ADDR); \ - bfd_put_8(BFD,(bfd_byte)((DATA >> 8) & 0xFF),ADDR+1); \ - bfd_put_8(BFD,(bfd_byte)(DATA & 0xFF),ADDR+2) +#define bfd_getb_24(BFD,ADDR) \ + (bfd_get_8 (BFD, ADDR ) << 16) | \ + (bfd_get_8 (BFD, ADDR + 1) << 8) | \ + (bfd_get_8 (BFD, ADDR + 2) ) + +#define bfd_putb_24(BFD,DATA,ADDR) \ + bfd_put_8 (BFD, (bfd_byte) ((DATA >> 16) & 0xFF), ADDR ); \ + bfd_put_8 (BFD, (bfd_byte) ((DATA >> 8) & 0xFF), ADDR + 1); \ + bfd_put_8 (BFD, (bfd_byte) ( DATA & 0xFF), ADDR + 2) /* Set parameters about this a.out file that are machine-dependent. This routine is called from some_aout_object_p just before it returns. */ |