Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 725200 Details for
Bug 802930
sys-devel/gcc-8: powerpcspe TEXTREL patches
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
powerpcspe TEXTREL patch
0001-Bring-powerpcspe-STARTFILE_LINUX_SPEC-up-to-date-wit.patch (text/plain), 3.27 KB, created by
Luke McHale
on 2021-07-19 20:24:10 UTC
(
hide
)
Description:
powerpcspe TEXTREL patch
Filename:
MIME Type:
Creator:
Luke McHale
Created:
2021-07-19 20:24:10 UTC
Size:
3.27 KB
patch
obsolete
>From 4e542386b97b648fd844e6b9d380c193fd662098 Mon Sep 17 00:00:00 2001 >From: Luke McHale <luke.mchale@protonmail.com> >Date: Fri, 7 Aug 2020 16:40:11 +0000 >Subject: [PATCH] Bring powerpcspe STARTFILE_LINUX_SPEC up to date with the > newer PIE_SPEC decision tree from reference GNU_USER_TARGET_STARTFILE_SPEC. > Bring powerpcspe ENDFILE_LINUX_SPEC up to date with the newer PIE_SPEC > decision tree from reference GNU_USER_TARGET_STARTFILE_SPEC. > >Fixes issue where the incorrect start/end crti files are chosen when gcc is compiled with --enable-default-pie. >--- > gcc/config/powerpcspe/sysv4.h | 65 +++++++++++++++++++++++++++-------- > 1 file changed, 50 insertions(+), 15 deletions(-) > >diff --git a/gcc/config/powerpcspe/sysv4.h b/gcc/config/powerpcspe/sysv4.h >index 4f35274..c3b5643 100644 >--- a/gcc/config/powerpcspe/sysv4.h >+++ b/gcc/config/powerpcspe/sysv4.h >@@ -757,24 +757,59 @@ ENDIAN_SELECT(" -mbig", " -mlittle", DEFAULT_ASM_ENDIAN) > #define CRTOFFLOADEND "" > #endif > >-#ifdef HAVE_LD_PIE >-#define STARTFILE_LINUX_SPEC "\ >-%{!shared: %{pg|p|profile:gcrt1.o%s;pie:Scrt1.o%s;:crt1.o%s}} \ >-%{mnewlib:ecrti.o%s;:crti.o%s} \ >-%{static:crtbeginT.o%s;shared|pie:crtbeginS.o%s;:crtbegin.o%s} \ >-" CRTOFFLOADBEGIN >+/* STARTFILE_LINUX_SPEC should be the same as GNU_USER_TARGET_STARTFILE_SPEC >+ but with the mnewlib ecrti.o%s selection substituted for crti.o%s. */ >+#if defined HAVE_LD_PIE >+#define STARTFILE_LINUX_SPEC \ >+ "%{shared:; \ >+ pg|p|profile:%{static-pie:grcrt1.o%s;:gcrt1.o%s}; \ >+ static:crt1.o%s; \ >+ static-pie:rcrt1.o%s; \ >+ " PIE_SPEC ":Scrt1.o%s; \ >+ :crt1.o%s} \ >+ %{mnewlib:ecrti.o%s;:crti.o%s} \ >+ %{static:crtbeginT.o%s; \ >+ shared|static-pie|" PIE_SPEC ":crtbeginS.o%s; \ >+ :crtbegin.o%s} \ >+ %{fvtable-verify=none:%s; \ >+ fvtable-verify=preinit:vtv_start_preinit.o%s; \ >+ fvtable-verify=std:vtv_start.o%s} \ >+ " CRTOFFLOADBEGIN > #else >-#define STARTFILE_LINUX_SPEC "\ >-%{!shared: %{pg|p|profile:gcrt1.o%s;:crt1.o%s}} \ >-%{mnewlib:ecrti.o%s;:crti.o%s} \ >-%{static:crtbeginT.o%s;shared|pie:crtbeginS.o%s;:crtbegin.o%s} \ >-" CRTOFFLOADBEGIN >+#define STARTFILE_LINUX_SPEC \ >+ "%{shared:; \ >+ pg|p|profile:gcrt1.o%s; \ >+ :crt1.o%s} \ >+ %{mnewlib:ecrti.o%s;:crti.o%s} \ >+ %{static:crtbeginT.o%s; \ >+ shared|pie|static-pie:crtbeginS.o%s; \ >+ :crtbegin.o%s} \ >+ " CRTOFFLOADBEGIN > #endif > >-#define ENDFILE_LINUX_SPEC "\ >-%{shared|pie:crtendS.o%s;:crtend.o%s} \ >-%{mnewlib:ecrtn.o%s;:crtn.o%s} \ >-" CRTOFFLOADEND >+/* ENDFILE_LINUX_SPEC should be the same as GNU_USER_TARGET_ENDFILE_SPEC >+ but with the mnewlib ecrtn.o%s selection substituted for crtn.o%s. */ >+#if defined HAVE_LD_PIE >+#define ENDFILE_LINUX_SPEC \ >+ "%{fvtable-verify=none:%s; \ >+ fvtable-verify=preinit:vtv_end_preinit.o%s; \ >+ fvtable-verify=std:vtv_end.o%s} \ >+ %{static:crtend.o%s; \ >+ shared|static-pie|" PIE_SPEC ":crtendS.o%s; \ >+ :crtend.o%s} \ >+ %{mnewlib:ecrtn.o%s;:crtn.o%s} \ >+ " CRTOFFLOADEND >+#else >+#define ENDFILE_LINUX_SPEC \ >+ "%{fvtable-verify=none:%s; \ >+ fvtable-verify=preinit:vtv_end_preinit.o%s; \ >+ fvtable-verify=std:vtv_end.o%s} \ >+ %{static:crtend.o%s; \ >+ shared|pie|static-pie:crtendS.o%s; \ >+ :crtend.o%s} \ >+ %{mnewlib:ecrtn.o%s;:crtn.o%s} \ >+ " CRTOFFLOADEND >+#endif > > #define LINK_START_LINUX_SPEC "" > >-- >2.27.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 802930
: 725200 |
725203