From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2052 invoked by alias); 25 Apr 2015 17:06:48 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 2008 invoked by uid 48); 25 Apr 2015 17:06:44 -0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/65886] [5/6 Regression] Copy reloc in PIE incompatible with DSO created by -Wl,-Bsymbolic Date: Sat, 25 Apr 2015 17:06:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 5.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-04/txt/msg02188.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65886 --- Comment #4 from H.J. Lu --- (In reply to Thiago Macieira from comment #3) > Thanks H.J.! > > Can I ask that -fsymbolic be the default? Otherwise, code with -fPIE MUST > add -fsymbolic in GCC 5+, but can't add it prior because the option didn't > exist. Please leave that for a release or two so that we can adapt Linux kernel has things like M16_CFLAGS := $(call cc-option, -m16, $(CODE16GCC_CFLAGS)) It adds -m16 only if it exits. Why can't KDE do something like this? There are many ways to achieve it and it works with all compilers. > buildsystems. By default, GCC should be psABI compliant. -Bsymbolic isn't psABI compliant since the resulting shared library doesn't work with normal executable. I don't believe -fsymbolic should be the default, just like that -Bsymbolic shouldn't be the default for linker either.