summaryrefslogtreecommitdiff
path: root/bfd/aout-tic30.c
diff options
context:
space:
mode:
authorKazu Hirata <kazu@codesourcery.com>2000-11-20 19:05:12 +0000
committerKazu Hirata <kazu@codesourcery.com>2000-11-20 19:05:12 +0000
commit159c3d0d3d788cbe270b59ba2f9349f1a30116b1 (patch)
tree7f4a1698fb99c58075634d3450960e24d6d038cc /bfd/aout-tic30.c
parentc114f11b5e43e4a434c8d8bc43b267cfe3db8ef1 (diff)
downloadbinutils-redhat-159c3d0d3d788cbe270b59ba2f9349f1a30116b1.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.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/bfd/aout-tic30.c b/bfd/aout-tic30.c
index c1f7c396d1..f0f4d3d50b 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. */