Back in November, support for the obsolete PowerPC BSS PLT format was

removed: https://marc.info/?l=openbsd-cvs&m=154174152917901&w=2

This broke gpc on macppc. Add a patch that defaults to -msecure-plt on gpc.
This fixes the build and runtime on macppc.
This commit is contained in:
bcallah 2019-03-07 15:53:25 +00:00
parent d12f509ab6
commit c603e74ae8

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-gcc_config_rs6000_openbsd_h,v 1.1 2019/03/07 15:53:25 bcallah Exp $
Default to -msecure-plt
Index: gcc/config/rs6000/openbsd.h
--- gcc/config/rs6000/openbsd.h.orig
+++ gcc/config/rs6000/openbsd.h
@@ -131,3 +131,8 @@ Boston, MA 02111-1307, USA. */
#undef TRAMPOLINE_SIZE
#define TRAMPOLINE_SIZE 40
+#undef TARGET_SECURE_PLT
+#define TARGET_SECURE_PLT secure_plt
+
+#undef CC1_SECURE_PLT_DEFAULT_SPEC
+#define CC1_SECURE_PLT_DEFAULT_SPEC "-msecure-plt"