* elf32-hppa.c (elf32_hppa_check_relocs): Handle R_PARISC_PCREL32.
authorDave Anglin <dave.anglin@nrc.ca>
Sat, 20 Mar 2004 00:42:10 +0000 (00:42 +0000)
committerDave Anglin <dave.anglin@nrc.ca>
Sat, 20 Mar 2004 00:42:10 +0000 (00:42 +0000)
(final_link_relocate): Likewise.

bfd/ChangeLog
bfd/elf32-hppa.c

index 5d145bfab933d6e49220dc0610444e3b53758934..a9d5ced9f0c5c99f9c5ae3ae242db4f7a13df86c 100644 (file)
@@ -1,5 +1,7 @@
 2004-03-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
 
+       * elf32-hppa.c (elf32_hppa_check_relocs): Handle R_PARISC_PCREL32.
+       (final_link_relocate): Likewise.
        * elf-hppa.h (elf_hppa_reloc_final_type): Handle selectors for
        R_PARISC_PCREL32 and R_PARISC_PCREL64 relocations.
 
index cf6c6303743450b1cddcec95b7dcecde7a025529..3e4df2e44edb6222fc1dc6e6a3ac084d61863341 100644 (file)
@@ -1147,12 +1147,13 @@ elf32_hppa_check_relocs (bfd *abfd,
            }
          break;
 
-       case R_PARISC_SEGBASE: /* Used to set segment base.  */
+       case R_PARISC_SEGBASE:  /* Used to set segment base.  */
        case R_PARISC_SEGREL32: /* Relative reloc, used for unwind.  */
        case R_PARISC_PCREL14F: /* PC relative load/store.  */
        case R_PARISC_PCREL14R:
        case R_PARISC_PCREL17R: /* External branches.  */
        case R_PARISC_PCREL21L: /* As above, and for load/store too.  */
+       case R_PARISC_PCREL32:
          /* We don't need to propagate the relocation if linking a
             shared object since these are section relative.  */
          continue;
@@ -3145,6 +3146,7 @@ final_link_relocate (asection *input_section,
     case R_PARISC_PCREL17R:
     case R_PARISC_PCREL14R:
     case R_PARISC_PCREL14F:
+    case R_PARISC_PCREL32:
       /* Make it a pc relative offset.  */
       value -= location;
       addend -= 8;
@@ -3238,6 +3240,7 @@ final_link_relocate (asection *input_section,
     case R_PARISC_DIR17F:
     case R_PARISC_PCREL17C:
     case R_PARISC_PCREL14F:
+    case R_PARISC_PCREL32:
     case R_PARISC_DPREL14F:
     case R_PARISC_PLABEL32:
     case R_PARISC_DLTIND14F:
This page took 0.028245 seconds and 4 git commands to generate.