public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/hardened-dev:musl commit in: sys-devel/gcc/files/
@ 2014-04-07 11:45 Anthony G. Basile
  0 siblings, 0 replies; 5+ messages in thread
From: Anthony G. Basile @ 2014-04-07 11:45 UTC (permalink / raw
  To: gentoo-commits

commit:     47e4ecb5f97251ce6c2ad4a6671d54aa765b5da4
Author:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Mon Apr  7 11:44:59 2014 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Mon Apr  7 11:44:59 2014 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-dev.git;a=commit;h=47e4ecb5

sys-devel/gcc: point to libc.so for linker for mips

---
 sys-devel/gcc/files/gcc-4.7.3-musl-linker-path.patch | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

diff --git a/sys-devel/gcc/files/gcc-4.7.3-musl-linker-path.patch b/sys-devel/gcc/files/gcc-4.7.3-musl-linker-path.patch
index d9d0df6..46e73ca 100644
--- a/sys-devel/gcc/files/gcc-4.7.3-musl-linker-path.patch
+++ b/sys-devel/gcc/files/gcc-4.7.3-musl-linker-path.patch
@@ -1,6 +1,6 @@
 diff -Naur gcc-4.7.3.orig/gcc/config/arm/linux-eabi.h gcc-4.7.3/gcc/config/arm/linux-eabi.h
---- gcc-4.7.3.orig/gcc/config/arm/linux-eabi.h	2014-02-26 11:35:12.955061913 +0000
-+++ gcc-4.7.3/gcc/config/arm/linux-eabi.h	2014-02-26 11:40:46.800062073 +0000
+--- gcc-4.7.3.orig/gcc/config/arm/linux-eabi.h	2014-04-06 14:15:03.000000000 +0000
++++ gcc-4.7.3/gcc/config/arm/linux-eabi.h	2014-04-06 12:12:42.000000000 +0000
 @@ -69,8 +69,8 @@
     GLIBC_DYNAMIC_LINKER_DEFAULT and TARGET_DEFAULT_FLOAT_ABI.  */
  
@@ -13,8 +13,8 @@ diff -Naur gcc-4.7.3.orig/gcc/config/arm/linux-eabi.h gcc-4.7.3/gcc/config/arm/l
  
  #define GLIBC_DYNAMIC_LINKER \
 diff -Naur gcc-4.7.3.orig/gcc/config/i386/linux64.h gcc-4.7.3/gcc/config/i386/linux64.h
---- gcc-4.7.3.orig/gcc/config/i386/linux64.h	2011-07-07 15:38:34.000000000 +0000
-+++ gcc-4.7.3/gcc/config/i386/linux64.h	2014-02-26 11:40:00.240062051 +0000
+--- gcc-4.7.3.orig/gcc/config/i386/linux64.h	2014-04-06 14:15:03.000000000 +0000
++++ gcc-4.7.3/gcc/config/i386/linux64.h	2014-04-06 12:12:42.000000000 +0000
 @@ -28,6 +28,6 @@
  #define GNU_USER_LINK_EMULATION64 "elf_x86_64"
  #define GNU_USER_LINK_EMULATIONX32 "elf32_x86_64"
@@ -24,3 +24,12 @@ diff -Naur gcc-4.7.3.orig/gcc/config/i386/linux64.h gcc-4.7.3/gcc/config/i386/li
 +#define GLIBC_DYNAMIC_LINKER32 "/usr/lib/libc.so"
 +#define GLIBC_DYNAMIC_LINKER64 "/usr/lib/libc.so"
  #define GLIBC_DYNAMIC_LINKERX32 "/libx32/ld-linux-x32.so.2"
+diff -Naur gcc-4.7.3.orig/gcc/config/mips/linux.h gcc-4.7.3/gcc/config/mips/linux.h
+--- gcc-4.7.3.orig/gcc/config/mips/linux.h	2011-07-19 18:00:27.000000000 +0000
++++ gcc-4.7.3/gcc/config/mips/linux.h	2014-04-06 14:12:48.000000000 +0000
+@@ -18,4 +18,4 @@
+ along with GCC; see the file COPYING3.  If not see
+ <http://www.gnu.org/licenses/>.  */
+ 
+-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
++#define GLIBC_DYNAMIC_LINKER "/usr/lib/libc.so"


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] proj/hardened-dev:musl commit in: sys-devel/gcc/files/
@ 2014-08-20 13:39 Anthony G. Basile
  0 siblings, 0 replies; 5+ messages in thread
From: Anthony G. Basile @ 2014-08-20 13:39 UTC (permalink / raw
  To: gentoo-commits

commit:     8ca518da2d22433c68fee348e410d671d450dedf
Author:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 20 13:41:40 2014 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Wed Aug 20 13:41:40 2014 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/hardened-dev.git;a=commit;h=8ca518da

sys-deve/gcc: fix linker path for amd64, arm and i686.

---
 sys-devel/gcc/files/gcc-4.7.3-musl-linker-path.patch | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/sys-devel/gcc/files/gcc-4.7.3-musl-linker-path.patch b/sys-devel/gcc/files/gcc-4.7.3-musl-linker-path.patch
index 46e73ca..a3c879c 100644
--- a/sys-devel/gcc/files/gcc-4.7.3-musl-linker-path.patch
+++ b/sys-devel/gcc/files/gcc-4.7.3-musl-linker-path.patch
@@ -7,8 +7,8 @@ diff -Naur gcc-4.7.3.orig/gcc/config/arm/linux-eabi.h gcc-4.7.3/gcc/config/arm/l
  #undef  GLIBC_DYNAMIC_LINKER
 -#define GLIBC_DYNAMIC_LINKER_SOFT_FLOAT "/lib/ld-linux.so.3"
 -#define GLIBC_DYNAMIC_LINKER_HARD_FLOAT "/lib/ld-linux-armhf.so.3"
-+#define GLIBC_DYNAMIC_LINKER_SOFT_FLOAT "/usr/lib/libc.so"
-+#define GLIBC_DYNAMIC_LINKER_HARD_FLOAT "/usr/lib/libc.so"
++#define GLIBC_DYNAMIC_LINKER_SOFT_FLOAT "/lib/ld-musl-arm.so.1"
++#define GLIBC_DYNAMIC_LINKER_HARD_FLOAT "/lib/ld-musl-armhf.so.1"
  #define GLIBC_DYNAMIC_LINKER_DEFAULT GLIBC_DYNAMIC_LINKER_SOFT_FLOAT
  
  #define GLIBC_DYNAMIC_LINKER \
@@ -21,8 +21,8 @@ diff -Naur gcc-4.7.3.orig/gcc/config/i386/linux64.h gcc-4.7.3/gcc/config/i386/li
  
 -#define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2"
 -#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux-x86-64.so.2"
-+#define GLIBC_DYNAMIC_LINKER32 "/usr/lib/libc.so"
-+#define GLIBC_DYNAMIC_LINKER64 "/usr/lib/libc.so"
++#define GLIBC_DYNAMIC_LINKER32 "/lib/ld-musl-i386.so.1"
++#define GLIBC_DYNAMIC_LINKER64 "/lib/ld-musl-x86_64.so.1"
  #define GLIBC_DYNAMIC_LINKERX32 "/libx32/ld-linux-x32.so.2"
 diff -Naur gcc-4.7.3.orig/gcc/config/mips/linux.h gcc-4.7.3/gcc/config/mips/linux.h
 --- gcc-4.7.3.orig/gcc/config/mips/linux.h	2011-07-19 18:00:27.000000000 +0000


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] proj/hardened-dev:musl commit in: sys-devel/gcc/files/
@ 2014-08-28  1:16 Anthony G. Basile
  0 siblings, 0 replies; 5+ messages in thread
From: Anthony G. Basile @ 2014-08-28  1:16 UTC (permalink / raw
  To: gentoo-commits

commit:     f6f4dde7d364b531860ea44ebb08b8cae125755f
Author:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 28 01:19:08 2014 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Thu Aug 28 01:19:08 2014 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/hardened-dev.git;a=commit;h=f6f4dde7

sys-deve/gcc: fix linker path for mipsel

---
 sys-devel/gcc/files/gcc-4.7.3-musl-linker-path.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-devel/gcc/files/gcc-4.7.3-musl-linker-path.patch b/sys-devel/gcc/files/gcc-4.7.3-musl-linker-path.patch
index a3c879c..df076f1 100644
--- a/sys-devel/gcc/files/gcc-4.7.3-musl-linker-path.patch
+++ b/sys-devel/gcc/files/gcc-4.7.3-musl-linker-path.patch
@@ -32,4 +32,4 @@ diff -Naur gcc-4.7.3.orig/gcc/config/mips/linux.h gcc-4.7.3/gcc/config/mips/linu
  <http://www.gnu.org/licenses/>.  */
  
 -#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
-+#define GLIBC_DYNAMIC_LINKER "/usr/lib/libc.so"
++#define GLIBC_DYNAMIC_LINKER "/lib/ld-musl-mipsel.so.1"


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] proj/hardened-dev:musl commit in: sys-devel/gcc/files/
@ 2014-12-09 14:22 Anthony G. Basile
  0 siblings, 0 replies; 5+ messages in thread
From: Anthony G. Basile @ 2014-12-09 14:22 UTC (permalink / raw
  To: gentoo-commits

commit:     15661f8d706340b424cdc70dfe83e8512607527c
Author:     Felix Janda <felix.janda <AT> posteo <DOT> de>
AuthorDate: Sat Dec  6 12:37:33 2014 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Tue Dec  9 14:23:45 2014 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/hardened-dev.git;a=commit;h=15661f8d

sys-devel/gcc: fix linker path for mipseb

Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org>

---
 sys-devel/gcc/files/gcc-4.8.3-musl-linker-path.patch | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

diff --git a/sys-devel/gcc/files/gcc-4.8.3-musl-linker-path.patch b/sys-devel/gcc/files/gcc-4.8.3-musl-linker-path.patch
index 0f3d96c..a22fb80 100644
--- a/sys-devel/gcc/files/gcc-4.8.3-musl-linker-path.patch
+++ b/sys-devel/gcc/files/gcc-4.8.3-musl-linker-path.patch
@@ -1,6 +1,6 @@
 diff -ur a/gcc-4.8.3/gcc/config/arm/linux-eabi.h b/gcc-4.8.3/gcc/config/arm/linux-eabi.h
 --- a/gcc-4.8.3/gcc/config/arm/linux-eabi.h	2013-01-10 21:38:27.000000000 -0100
-+++ b/gcc-4.8.3/gcc/config/arm/linux-eabi.h	2014-11-03 20:04:06.126283403 -0100
++++ b/gcc-4.8.3/gcc/config/arm/linux-eabi.h	2014-11-26 21:09:34.162787397 -0100
 @@ -68,8 +68,8 @@
     GLIBC_DYNAMIC_LINKER_DEFAULT and TARGET_DEFAULT_FLOAT_ABI.  */
  
@@ -14,7 +14,7 @@ diff -ur a/gcc-4.8.3/gcc/config/arm/linux-eabi.h b/gcc-4.8.3/gcc/config/arm/linu
  #define GLIBC_DYNAMIC_LINKER \
 diff -ur a/gcc-4.8.3/gcc/config/i386/linux64.h b/gcc-4.8.3/gcc/config/i386/linux64.h
 --- a/gcc-4.8.3/gcc/config/i386/linux64.h	2013-01-10 21:38:27.000000000 -0100
-+++ b/gcc-4.8.3/gcc/config/i386/linux64.h	2014-11-03 20:04:06.126283403 -0100
++++ b/gcc-4.8.3/gcc/config/i386/linux64.h	2014-11-26 21:09:34.162787397 -0100
 @@ -27,6 +27,6 @@
  #define GNU_USER_LINK_EMULATION64 "elf_x86_64"
  #define GNU_USER_LINK_EMULATIONX32 "elf32_x86_64"
@@ -26,16 +26,21 @@ diff -ur a/gcc-4.8.3/gcc/config/i386/linux64.h b/gcc-4.8.3/gcc/config/i386/linux
  #define GLIBC_DYNAMIC_LINKERX32 "/libx32/ld-linux-x32.so.2"
 diff -ur a/gcc-4.8.3/gcc/config/mips/linux.h b/gcc-4.8.3/gcc/config/mips/linux.h
 --- a/gcc-4.8.3/gcc/config/mips/linux.h	2013-01-10 21:38:27.000000000 -0100
-+++ b/gcc-4.8.3/gcc/config/mips/linux.h	2014-11-03 20:04:06.126283403 -0100
-@@ -17,4 +17,4 @@
++++ b/gcc-4.8.3/gcc/config/mips/linux.h	2014-11-26 21:11:28.772354580 -0100
+@@ -17,4 +17,9 @@
  along with GCC; see the file COPYING3.  If not see
  <http://www.gnu.org/licenses/>.  */
  
 -#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
-+#define GLIBC_DYNAMIC_LINKER "/lib/ld-musl-mipsel.so.1"
++#if TARGET_ENDIAN_DEFAULT == 0 /* LE */
++#define GLIBC_DYNAMIC_LINKER_E "%{EB:;:el}"
++#else
++#define GLIBC_DYNAMIC_LINKER_E "%{EL:el}"
++#endif
++#define GLIBC_DYNAMIC_LINKER "/lib/ld-musl-mips" GLIBC_DYNAMIC_LINKER_E ".so.1"
 diff -ur a/gcc-4.8.3/gcc/config/rs6000/linux64.h b/gcc-4.8.3/gcc/config/rs6000/linux64.h
 --- a/gcc-4.8.3/gcc/config/rs6000/linux64.h	2014-04-04 16:10:24.000000000 -0100
-+++ b/gcc-4.8.3/gcc/config/rs6000/linux64.h	2014-11-03 20:06:28.219506993 -0100
++++ b/gcc-4.8.3/gcc/config/rs6000/linux64.h	2014-11-26 21:09:34.164787372 -0100
 @@ -366,12 +366,8 @@
  #undef	LINK_OS_DEFAULT_SPEC
  #define LINK_OS_DEFAULT_SPEC "%(link_os_linux)"
@@ -53,7 +58,7 @@ diff -ur a/gcc-4.8.3/gcc/config/rs6000/linux64.h b/gcc-4.8.3/gcc/config/rs6000/l
  #if DEFAULT_LIBC == LIBC_UCLIBC
 diff -ur a/gcc-4.8.3/gcc/config/rs6000/sysv4.h b/gcc-4.8.3/gcc/config/rs6000/sysv4.h
 --- a/gcc-4.8.3/gcc/config/rs6000/sysv4.h	2014-04-04 15:50:31.000000000 -0100
-+++ b/gcc-4.8.3/gcc/config/rs6000/sysv4.h	2014-11-03 20:04:06.128283378 -0100
++++ b/gcc-4.8.3/gcc/config/rs6000/sysv4.h	2014-11-26 21:09:34.164787372 -0100
 @@ -761,7 +761,7 @@
  
  #define LINK_START_LINUX_SPEC ""


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] proj/hardened-dev:musl commit in: sys-devel/gcc/files/
@ 2015-05-11  1:10 Anthony G. Basile
  0 siblings, 0 replies; 5+ messages in thread
From: Anthony G. Basile @ 2015-05-11  1:10 UTC (permalink / raw
  To: gentoo-commits

commit:     4d9363b9df5f800ecd13d5a55181a20707a3c243
Author:     Felix Janda <felix.janda <AT> posteo <DOT> de>
AuthorDate: Sun May  3 20:11:06 2015 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Mon May 11 01:10:19 2015 +0000
URL:        https://gitweb.gentoo.org/proj/hardened-dev.git/commit/?id=4d9363b9

sys-devel/gcc: fix patch for powerpc

 sys-devel/gcc/files/gcc-4.7.4-secure-plt.patch | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/sys-devel/gcc/files/gcc-4.7.4-secure-plt.patch b/sys-devel/gcc/files/gcc-4.7.4-secure-plt.patch
index 6277824..1cc395f 100644
--- a/sys-devel/gcc/files/gcc-4.7.4-secure-plt.patch
+++ b/sys-devel/gcc/files/gcc-4.7.4-secure-plt.patch
@@ -1,4 +1,18 @@
 adapted from musl-cross gcc-patches
+diff -ur a/gcc/config.gcc b/gcc/config.gcc
+--- a/gcc/config.gcc	2013-10-03 02:52:23.000000000 -0200
++++ b/gcc/config.gcc	2015-05-03 22:05:10.855150177 -0200
+@@ -2091,6 +2091,10 @@
+ 	    powerpc*-*-linux*paired*)
+ 		tm_file="${tm_file} rs6000/750cl.h" ;;
+ 	esac
++	case ${target} in
++	 *-linux*-musl*)
++	enable_secureplt=yes ;;
++	esac
+ 	if test x${enable_secureplt} = xyes; then
+ 		tm_file="rs6000/secureplt.h ${tm_file}"
+ 	fi
 diff -r 6097333f2ab4 gcc/config/rs6000/secureplt.h
 --- a/gcc/config/rs6000/secureplt.h	Tue May 20 11:06:08 2014 -0400
 +++ b/gcc/config/rs6000/secureplt.h	Tue May 20 11:06:11 2014 -0400


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-05-11  1:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-07 11:45 [gentoo-commits] proj/hardened-dev:musl commit in: sys-devel/gcc/files/ Anthony G. Basile
  -- strict thread matches above, loose matches on Subject: below --
2014-08-20 13:39 Anthony G. Basile
2014-08-28  1:16 Anthony G. Basile
2014-12-09 14:22 Anthony G. Basile
2015-05-11  1:10 Anthony G. Basile

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox