diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2022-07-02 18:51:15 -0500 |
---|---|---|
committer | Zach van Rijn <me@zv.io> | 2022-10-21 18:34:01 -0500 |
commit | 57b3454125ff268fb900c0d60b267535857bcd93 (patch) | |
tree | fb977ce1b0bdb0b6cbd6454809a86d1705277c8e /legacy/gcc6/310-build-gcj-s390x.patch | |
parent | 04142312762064baaf4765e13b479d9e03cfad47 (diff) | |
download | packages-57b3454125ff268fb900c0d60b267535857bcd93.tar.gz packages-57b3454125ff268fb900c0d60b267535857bcd93.tar.bz2 packages-57b3454125ff268fb900c0d60b267535857bcd93.tar.xz packages-57b3454125ff268fb900c0d60b267535857bcd93.zip |
legacy/gcc6: add buildable patches
Diffstat (limited to 'legacy/gcc6/310-build-gcj-s390x.patch')
-rw-r--r-- | legacy/gcc6/310-build-gcj-s390x.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/legacy/gcc6/310-build-gcj-s390x.patch b/legacy/gcc6/310-build-gcj-s390x.patch new file mode 100644 index 000000000..1e522ee15 --- /dev/null +++ b/legacy/gcc6/310-build-gcj-s390x.patch @@ -0,0 +1,28 @@ +From 697a7ba791fce2ffab2ed723d909a89684019e3d Mon Sep 17 00:00:00 2001 +From: "Tuan M. Hoang" <tmhoang@flatglobe.org> +Date: Sun, 19 Feb 2017 17:03:33 +0000 +Subject: [PATCH] main/gcc : when building gcc-java on s390x, libgcj.so + complains about undefined reference to __data_start. Using + SEARCH_FOR_DATA_START instead solved it. Credit to Andrew Haley at RedHat. + +--- + boehm-gc/include/private/gcconfig.h | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/boehm-gc/include/private/gcconfig.h b/boehm-gc/include/private/gcconfig.h +index 4ca6a80..a15fff6 100644 +--- a/boehm-gc/include/private/gcconfig.h ++++ b/boehm-gc/include/private/gcconfig.h +@@ -1837,8 +1837,7 @@ + # define OS_TYPE "LINUX" + # define LINUX_STACKBOTTOM + # define DYNAMIC_LOADING +- extern int __data_start[]; +-# define DATASTART ((ptr_t)(__data_start)) ++# define SEARCH_FOR_DATA_START + extern int _end[]; + # define DATAEND (_end) + # define CACHE_LINE_SIZE 256 +-- +2.11.1 + |