From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 43381 invoked by alias); 6 May 2015 20:26:55 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Received: (qmail 43179 invoked by uid 48); 6 May 2015 20:26:51 -0000 From: "roland at gnu dot org" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/18383] New: TLS blocks with very large alignment not handled right Date: Wed, 06 May 2015 20:26:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: dynamic-link X-Bugzilla-Version: 2.21 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: roland at gnu dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-05/txt/msg00027.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=18383 Bug ID: 18383 Summary: TLS blocks with very large alignment not handled right Product: glibc Version: 2.21 Status: NEW Severity: normal Priority: P2 Component: dynamic-link Assignee: unassigned at sourceware dot org Reporter: roland at gnu dot org Target Milestone: --- I'm going to add the test case to the test suite momentarily, so I won't attach it here. The test case contains: static __thread int tdata1 = 1; static __thread int tdata2 __attribute__ ((aligned (0x10))) = 2; static __thread int tdata3 __attribute__ ((aligned (0x1000))) = 4; static __thread int tbss1; static __thread int tbss2 __attribute__ ((aligned (0x10))); static __thread int tbss3 __attribute__ ((aligned (0x1000))); On arm-linux-gnueabihf, tdata3 comes out with bad alignment and not initialized with the right value and tbss3 comes out with bad alignment. It's the same in the dynamic and static versions of the case. On x86_64-linux-gnu, the dynamic version works right but the static version crashes in startup. -- You are receiving this mail because: You are on the CC list for the bug.