summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1999-08-10 18:51:53 +0000
committerJeff Law <law@redhat.com>1999-08-10 18:51:53 +0000
commit75d2f9ec974627f7661c8ce20646eedc44f8c484 (patch)
treecadcbeea1dddb95547d41ab7f2319d27a7117583
parent8a7a9dc9d9f5b26dc5f5b9e0adf6b326c7c373e6 (diff)
downloadgdb-75d2f9ec974627f7661c8ce20646eedc44f8c484.tar.gz
* elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle
R_HPPA_SEGBASE and R_HPPA_SEGREL32. * cpu-hppa.c (bfd_hppa20w_arch): New entry in architecture info list.
-rw-r--r--bfd/ChangeLog7
-rw-r--r--bfd/cpu-hppa.c19
-rw-r--r--bfd/elf-hppa.h5
3 files changed, 30 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index b1f6a394217..228e30d0d84 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,10 @@
+Tue Aug 10 12:48:09 1999 Jeffrey A Law (law@cygnus.com)
+
+ * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle
+ R_HPPA_SEGBASE and R_HPPA_SEGREL32.
+ * cpu-hppa.c (bfd_hppa20w_arch): New entry in architecture info
+ list.
+
Tue Aug 10 00:34:29 1999 Mark P. Mitchell <mark@codesourcery.com>
Ralf Baechle <ralf@uni-koblenz.de>
diff --git a/bfd/cpu-hppa.c b/bfd/cpu-hppa.c
index 5d26a92ad99..5c1774367d5 100644
--- a/bfd/cpu-hppa.c
+++ b/bfd/cpu-hppa.c
@@ -54,6 +54,23 @@ static const bfd_arch_info_type bfd_hppa20_arch =
&bfd_hppa10_arch,
};
+/* PA2.0 in wide mode */
+static const bfd_arch_info_type bfd_hppa20w_arch =
+{
+ 64, /* 32 bits in a word */
+ 64, /* 32 bits in an address */
+ 8, /* 8 bits in a byte */
+ bfd_arch_hppa,
+ 25, /* ??? How best to describe wide mode here? */
+ "hppa",
+ "hppa2.0w",
+ 3,
+ false, /* Unless we use 1.1 specific features */
+ bfd_default_compatible,
+ bfd_default_scan ,
+ &bfd_hppa20_arch,
+};
+
const bfd_arch_info_type bfd_hppa_arch =
{
32, /* 32 bits in a word */
@@ -67,5 +84,5 @@ const bfd_arch_info_type bfd_hppa_arch =
false, /* 1.1 specific features used */
bfd_default_compatible,
bfd_default_scan ,
- &bfd_hppa20_arch,
+ &bfd_hppa20w_arch,
};
diff --git a/bfd/elf-hppa.h b/bfd/elf-hppa.h
index 1fe61e7d4e2..44f22384cdb 100644
--- a/bfd/elf-hppa.h
+++ b/bfd/elf-hppa.h
@@ -535,6 +535,11 @@ _bfd_elf_hppa_gen_reloc_type (abfd, base_type, format, field, ignore, sym)
}
break;
+ case R_PARISC_SEGREL32:
+ case R_PARISC_SEGBASE:
+ /* The defaults are fine for these cases. */
+ break;
+
default:
return NULL;
}