This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
bfd_arch_bits_per_address
- From: Alan Modra <amodra at gmail dot com>
- To: binutils at sourceware dot org
- Date: Wed, 25 Aug 2010 16:28:33 +0930
- Subject: bfd_arch_bits_per_address
Minor tidy.
* aout-arm.c (MY(bfd_reloc_type_lookup)): Use bfd_arch_bits_per_address.
* aout-ns32k.c (MY(bfd_reloc_type_lookup)): Likewise.
* aoutx.h (NAME(aout,reloc_type_lookup)): Likewise.
* coff-arm.c (coff_arm_reloc_type_lookup): Likewise.
* elf-hppa.h (elf_hppa_reloc_final_type): Likewise.
* reloc.c (bfd_default_reloc_type_lookup): Likewise.
* riscix.c (riscix_reloc_type_lookup): Likewise.
Index: bfd/aout-arm.c
===================================================================
RCS file: /cvs/src/src/bfd/aout-arm.c,v
retrieving revision 1.20
diff -u -p -r1.20 aout-arm.c
--- bfd/aout-arm.c 11 Dec 2009 13:42:00 -0000 1.20
+++ bfd/aout-arm.c 24 Aug 2010 12:08:55 -0000
@@ -296,7 +296,7 @@ MY (bfd_reloc_type_lookup) (bfd *abfd,
#define ASTD(i,j) case i: return & MY (howto_table)[j]
if (code == BFD_RELOC_CTOR)
- switch (bfd_get_arch_info (abfd)->bits_per_address)
+ switch (bfd_arch_bits_per_address (abfd))
{
case 32:
code = BFD_RELOC_32;
Index: bfd/aout-ns32k.c
===================================================================
RCS file: /cvs/src/src/bfd/aout-ns32k.c,v
retrieving revision 1.21
diff -u -p -r1.21 aout-ns32k.c
--- bfd/aout-ns32k.c 2 Sep 2009 07:18:35 -0000 1.21
+++ bfd/aout-ns32k.c 24 Aug 2010 12:08:55 -0000
@@ -214,7 +214,7 @@ MY (bfd_reloc_type_lookup) (bfd *abfd, b
BFD_ASSERT (ext == 0);
if (code == BFD_RELOC_CTOR)
- switch (bfd_get_arch_info (abfd)->bits_per_address)
+ switch (bfd_arch_bits_per_address (abfd))
{
case 32:
code = BFD_RELOC_32;
Index: bfd/aoutx.h
===================================================================
RCS file: /cvs/src/src/bfd/aoutx.h,v
retrieving revision 1.82
diff -u -p -r1.82 aoutx.h
--- bfd/aoutx.h 22 Jul 2010 14:07:10 -0000 1.82
+++ bfd/aoutx.h 24 Aug 2010 12:08:57 -0000
@@ -269,7 +269,7 @@ NAME (aout, reloc_type_lookup) (bfd *abf
int ext = obj_reloc_entry_size (abfd) == RELOC_EXT_SIZE;
if (code == BFD_RELOC_CTOR)
- switch (bfd_get_arch_info (abfd)->bits_per_address)
+ switch (bfd_arch_bits_per_address (abfd))
{
case 32:
code = BFD_RELOC_32;
Index: bfd/coff-arm.c
===================================================================
RCS file: /cvs/src/src/bfd/coff-arm.c,v
retrieving revision 1.78
diff -u -p -r1.78 coff-arm.c
--- bfd/coff-arm.c 12 Dec 2009 10:07:53 -0000 1.78
+++ bfd/coff-arm.c 24 Aug 2010 12:09:01 -0000
@@ -817,7 +817,7 @@ coff_arm_reloc_type_lookup (bfd * abfd,
#define ASTD(i,j) case i: return aoutarm_std_reloc_howto + j
if (code == BFD_RELOC_CTOR)
- switch (bfd_get_arch_info (abfd)->bits_per_address)
+ switch (bfd_arch_bits_per_address (abfd))
{
case 32:
code = BFD_RELOC_32;
Index: bfd/elf-hppa.h
===================================================================
RCS file: /cvs/src/src/bfd/elf-hppa.h,v
retrieving revision 1.93
diff -u -p -r1.93 elf-hppa.h
--- bfd/elf-hppa.h 1 Mar 2009 17:08:54 -0000 1.93
+++ bfd/elf-hppa.h 24 Aug 2010 12:09:02 -0000
@@ -678,7 +678,7 @@ elf_hppa_reloc_final_type (bfd *abfd,
/* When in 64bit mode, a 32bit relocation is supposed to
be a section relative relocation. Dwarf2 (for example)
uses 32bit section relative relocations. */
- if (bfd_get_arch_info (abfd)->bits_per_address != 32)
+ if (bfd_arch_bits_per_address (abfd) != 32)
final_type = R_PARISC_SECREL32;
break;
case e_psel:
Index: bfd/reloc.c
===================================================================
RCS file: /cvs/src/src/bfd/reloc.c,v
retrieving revision 1.204
diff -u -p -r1.204 reloc.c
--- bfd/reloc.c 23 Jul 2010 14:52:47 -0000 1.204
+++ bfd/reloc.c 24 Aug 2010 12:09:22 -0000
@@ -5572,7 +5572,7 @@ bfd_default_reloc_type_lookup (bfd *abfd
case BFD_RELOC_CTOR:
/* The type of reloc used in a ctor, which will be as wide as the
address - so either a 64, 32, or 16 bitter. */
- switch (bfd_get_arch_info (abfd)->bits_per_address)
+ switch (bfd_arch_bits_per_address (abfd))
{
case 64:
BFD_FAIL ();
Index: bfd/riscix.c
===================================================================
RCS file: /cvs/src/src/bfd/riscix.c,v
retrieving revision 1.18
diff -u -p -r1.18 riscix.c
--- bfd/riscix.c 3 Jul 2007 14:26:42 -0000 1.18
+++ bfd/riscix.c 24 Aug 2010 12:09:23 -0000
@@ -254,7 +254,7 @@ riscix_reloc_type_lookup (bfd *abfd, bfd
{
#define ASTD(i,j) case i: return &riscix_std_reloc_howto[j]
if (code == BFD_RELOC_CTOR)
- switch (bfd_get_arch_info (abfd)->bits_per_address)
+ switch (bfd_arch_bits_per_address (abfd))
{
case 32:
code = BFD_RELOC_32;
--
Alan Modra
Australia Development Lab, IBM