OSDN Git Service

* elf-hppa.h (elf_hppa_reloc_final_type): Handle selectors for
authorDave Anglin <dave.anglin@nrc.ca>
Fri, 19 Mar 2004 19:19:52 +0000 (19:19 +0000)
committerDave Anglin <dave.anglin@nrc.ca>
Fri, 19 Mar 2004 19:19:52 +0000 (19:19 +0000)
R_PARISC_PCREL32 and R_PARISC_PCREL64 relocations.
* tc-hppa.c (cons_fix_new_hppa): Check for PC relative base type.
(pa_comm): Set BSF_OBJECT in symbol flags.

bfd/ChangeLog
bfd/elf-hppa.h

index 58c5ffb..5d145bf 100644 (file)
@@ -1,3 +1,8 @@
+2004-03-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+       * elf-hppa.h (elf_hppa_reloc_final_type): Handle selectors for
+       R_PARISC_PCREL32 and R_PARISC_PCREL64 relocations.
+
 2004-03-19  Alan Modra  <amodra@bigpond.net.au>
 
        * Makefile.am: Run "make dep-am".
index a5c0b44..5efd808 100644 (file)
@@ -812,6 +812,28 @@ elf_hppa_reloc_final_type (bfd *abfd,
            }
          break;
 
+       case 32:
+         switch (field)
+           {
+           case e_fsel:
+             final_type = R_PARISC_PCREL32;
+             break;
+           default:
+             return R_PARISC_NONE;
+           }
+         break;
+
+       case 64:
+         switch (field)
+           {
+           case e_fsel:
+             final_type = R_PARISC_PCREL64;
+             break;
+           default:
+             return R_PARISC_NONE;
+           }
+         break;
+
        default:
          return R_PARISC_NONE;
        }