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 | beb0d161cdeb8dddb7c49929ce8f415b45235759 (patch) | |
tree | cf4a82a61e745679ca32ffbf2dbd27736213f674 /bfd/aout-tic30.c | |
parent | b57d7d21ef3c86b335d93b8942bb1ee50c2c9a9e (diff) | |
download | gdb-beb0d161cdeb8dddb7c49929ce8f415b45235759.zip gdb-beb0d161cdeb8dddb7c49929ce8f415b45235759.tar.gz gdb-beb0d161cdeb8dddb7c49929ce8f415b45235759.tar.bz2 |
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 c1f7c39..f0f4d3d 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. */ |