ports/168010: [exp-run] Please test libc.so as ld script with an exp run

Jeremie Le Hen jlh at FreeBSD.org
Thu May 17 13:00:11 UTC 2012


>Number:         168010
>Category:       ports
>Synopsis:       [exp-run] Please test libc.so as ld script with an exp run
>Confidential:   yes
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 17 13:00:10 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Jeremie Le Hen
>Release:        
>Organization:
>Environment:


>Description:
	The attached patch turns libc.so into an ld script.  This should fix
	the link-time error sometimes seen, where a binary is linked with
	-fstack-protector with a library that was compiled with this flag.      
>How-To-Repeat:
	
>Fix:



--- libc_ssp_nonshared.diff begins here ---
Index: lib/libc/Makefile
===================================================================
--- lib/libc/Makefile	(revision 235518)
+++ lib/libc/Makefile	(working copy)
@@ -30,6 +30,7 @@
 CLEANFILES+=tags
 INSTALL_PIC_ARCHIVE=
 PRECIOUSLIB=
+SHLIB_LDSCRIPT=libc.ldscript
 
 .ifndef NO_THREAD_STACK_UNWIND
 CANCELPOINTS_CFLAGS=-fexceptions
Index: lib/libc/libc.ldscript
===================================================================
--- lib/libc/libc.ldscript	(revision 0)
+++ lib/libc/libc.ldscript	(working copy)
@@ -0,0 +1,2 @@
+/* $FreeBSD$ */
+GROUP ( @@SHLIB@@ @@LIBDIR@@/libssp_nonshared.a )

Property changes on: lib/libc/libc.ldscript
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+FreeBSD=%H
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
--- libc_ssp_nonshared.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list