[polyml] 05/09: Add support for HP PA-RISC

James Clarke jrtc27-guest at moszumanska.debian.org
Thu Apr 7 10:52:23 UTC 2016


This is an automated email from the git hooks/post-receive script.

jrtc27-guest pushed a commit to branch master
in repository polyml.

commit 3d2cad94dc15193c0649eeae832fa01e3fc9232b
Author: James Clarke <jrtc27 at jrtc27.com>
Date:   Wed Apr 6 20:23:47 2016 +0100

    Add support for HP PA-RISC
---
 debian/changelog         |  1 +
 debian/patches/hppa.diff | 45 +++++++++++++++++++++++++++++++++++++++++++++
 debian/patches/series    |  1 +
 3 files changed, 47 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 9a9eaa6..5b325cd 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 polyml (5.6-4) UNRELEASED; urgency=low
 
   * New patches:
+    - hppa.diff: Add support for hppa
     - maxhostnamelen.diff: Remove all use of MAXHOSTNAMELEN
     - sh.diff: Add support for sh4
     - sparc64.diff: Add support for sparc64
diff --git a/debian/patches/hppa.diff b/debian/patches/hppa.diff
new file mode 100644
index 0000000..06fe868
--- /dev/null
+++ b/debian/patches/hppa.diff
@@ -0,0 +1,45 @@
+Description: Add support for HP PA-RISC
+Author: James Clarke <jrtc27 at jrtc27.com>
+Forwarded: https://github.com/polyml/polyml/pull/48
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/config.h.in
++++ b/config.h.in
+@@ -566,6 +566,9 @@
+ /* Define if the host is an ARM (32-bit) */
+ #undef HOSTARCHITECTURE_ARM
+ 
++/* Define if the host is an HP PA-RISC (32-bit) */
++#undef HOSTARCHITECTURE_HPPA
++
+ /* Define if the host is an Itanium */
+ #undef HOSTARCHITECTURE_IA64
+ 
+--- a/configure.ac
++++ b/configure.ac
+@@ -459,6 +459,10 @@
+             AC_DEFINE([HOSTARCHITECTURE_AARCH64], [1], [Define if the host is an ARM (64-bit)])
+             polyarch=interpret
+             ;;
++      hppa*)
++            AC_DEFINE([HOSTARCHITECTURE_HPPA], [1], [Define if the host is an HP PA-RISC (32-bit)])
++            polyarch=interpret
++            ;;
+       ia64*)
+             AC_DEFINE([HOSTARCHITECTURE_IA64], [1], [Define if the host is an Itanium])
+             polyarch=interpret
+--- a/libpolyml/elfexport.cpp
++++ b/libpolyml/elfexport.cpp
+@@ -430,6 +430,12 @@
+     directReloc = R_ARM_ABS32;
+     useRela = false;
+     fhdr.e_flags = EF_ARM_EABI_VER4;
++#elif defined(HOSTARCHITECTURE_HPPA)
++    fhdr.e_ident[EI_OSABI] = ELFOSABI_HPUX;
++    fhdr.e_machine = EM_PARISC;
++    directReloc = R_PARISC_DIR32;
++    fhdr.e_flags = EFA_PARISC_1_0;
++    useRela = true;
+ #elif defined(HOSTARCHITECTURE_IA64)
+     fhdr.e_machine = EM_IA_64;
+     directReloc = R_IA64_DIR64LSB;
diff --git a/debian/patches/series b/debian/patches/series
index 63b8a0e..173b9bd 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -22,3 +22,4 @@ noflsh-unsigned.diff
 maxhostnamelen.diff
 sparc64.diff
 sh.diff
+hppa.diff

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/polyml.git



More information about the debian-science-commits mailing list