From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 125460 invoked by alias); 11 Jul 2015 21:03:41 -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 125420 invoked by uid 48); 11 Jul 2015 21:03:37 -0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/58066] __tls_get_addr is called with misaligned stack on x86-64 Date: Sat, 11 Jul 2015 21:03: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: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc version target_milestone short_desc everconfirmed 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-07/txt/msg00944.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58066 H.J. Lu changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2015-07-11 CC| |ubizjak at gmail dot com Version|unknown |6.0 Target Milestone|--- |6.0 Summary|GCC mis-compiles access to |__tls_get_addr is called |TLS variable with -fPIC on |with misaligned stack on |x86_64 |x86-64 Ever confirmed|0 |1 --- Comment #9 from H.J. Lu --- __tls_get_addr is called with misaligned stack on x86-64. It crashes ld.so when it tries to save and restore XMM registers with aligned load/store: https://sourceware.org/ml/libc-alpha/2015-07/msg00365.html