Date: Thu, 17 May 2012 12:58:36 +0000 (UTC) From: Jeremie Le Hen <jlh@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: jlh@FreeBSD.org Subject: ports/168010: [exp-run] Please test libc.so as ld script with an exp run Message-ID: <20120517125836.611DF60891@felucia.tataz.chchile.org> Resent-Message-ID: <201205171300.q4HD0BUg007064@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120517125836.611DF60891>