* aout-arm.c (MY(bfd_reloc_type_lookup)): Use bfd_arch_bits_per_address.
authorAlan Modra <amodra@gmail.com>
Wed, 25 Aug 2010 07:02:40 +0000 (07:02 +0000)
committerAlan Modra <amodra@gmail.com>
Wed, 25 Aug 2010 07:02:40 +0000 (07:02 +0000)
* 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.

bfd/ChangeLog
bfd/aout-arm.c
bfd/aout-ns32k.c
bfd/aoutx.h
bfd/coff-arm.c
bfd/elf-hppa.h
bfd/reloc.c
bfd/riscix.c

index b2608ad22cdfb2497304ba0608df905c62fbf70c..3dc84348e742db216c3108a8b8c08df7b63f341c 100644 (file)
@@ -1,3 +1,13 @@
+2010-08-25  Alan Modra  <amodra@gmail.com>
+
+       * 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.
+
 2010-08-25  Alan Modra  <amodra@gmail.com>
 
        * elf.c (_bfd_elf_map_sections_to_segments): Don't load program
index 6e99b2ef4c67e0d2736f8a1559c046ddc0b226fa..9a5d15599c8b4e0dc2bc9be540a03c4ef9a0db0b 100644 (file)
@@ -1,6 +1,6 @@
 /* BFD back-end for raw ARM a.out binaries.
    Copyright 1994, 1995, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005,
-   2007, 2009 Free Software Foundation, Inc.
+   2007, 2009, 2010 Free Software Foundation, Inc.
    Contributed by Richard Earnshaw (rwe@pegasus.esprit.ec.org)
 
    This file is part of BFD, the Binary File Descriptor library.
@@ -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 ea7d8f4fd7847fa2a6b89c9d930aa4bad4ce4027..9a0737d7ef7a25a5dac8eca6e2348101686b9ffd 100644 (file)
@@ -1,6 +1,6 @@
 /* BFD back-end for ns32k a.out-ish binaries.
    Copyright 1990, 1991, 1992, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
-   2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc.
+   2002, 2003, 2005, 2006, 2007, 2010 Free Software Foundation, Inc.
    Contributed by Ian Dall (idall@eleceng.adelaide.edu.au).
 
    This file is part of BFD, the Binary File Descriptor library.
@@ -214,7 +214,7 @@ MY (bfd_reloc_type_lookup) (bfd *abfd, bfd_reloc_code_real_type code)
 
   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 c6327226f929a0d31c127a05d22d558f96ddb7c1..11598a000d5dcece88c0bd5a7205a26b8d3676b8 100644 (file)
@@ -269,7 +269,7 @@ NAME (aout, reloc_type_lookup) (bfd *abfd, bfd_reloc_code_real_type code)
   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 2e0110a61a20395be4030415b7716a34ac6dbdc8..bdadfb2cd4ab866304b5415a198f392914085fe1 100644 (file)
@@ -1,6 +1,6 @@
 /* BFD back-end for ARM COFF files.
    Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
+   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
    Free Software Foundation, Inc.
    Written by Cygnus Support.
 
@@ -817,7 +817,7 @@ coff_arm_reloc_type_lookup (bfd * abfd, bfd_reloc_code_real_type code)
 #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 51a9484e00cdf2da02ce8e0e0cffa8bef5e825ec..3fa9dedbd08ec917c30166aaa6ef86533f8072f0 100644 (file)
@@ -1,5 +1,6 @@
 /* Common code for PA ELF implementations.
-   Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
+   Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
+   2009, 2010
    Free Software Foundation, Inc.
 
    This file is part of BFD, the Binary File Descriptor library.
@@ -678,7 +679,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 f8a39c9aa02a29b7aed9d7896a0bf254ea3c06e6..e7210eba9a4249b705e28bbb29f08b9dd9dce2ae 100644 (file)
@@ -5572,7 +5572,7 @@ bfd_default_reloc_type_lookup (bfd *abfd, bfd_reloc_code_real_type code)
     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 6ca26f6116cb6739b344e29ddda72d7ee723086f..0d07d015f92c61ae655660c57e0e75c47ec2e6ea 100644 (file)
@@ -1,6 +1,6 @@
 /* BFD back-end for RISC iX (Acorn, arm) binaries.
    Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2004,
-   2005, 2007 Free Software Foundation, Inc.
+   2005, 2007, 2010 Free Software Foundation, Inc.
    Contributed by Richard Earnshaw (rwe@pegasus.esprit.ec.org)
 
    This file is part of BFD, the Binary File Descriptor library.
@@ -254,7 +254,7 @@ riscix_reloc_type_lookup (bfd *abfd, bfd_reloc_code_real_type code)
 {
 #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;
This page took 0.033271 seconds and 4 git commands to generate.