public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug dynamic-link/18383] New: TLS blocks with very large alignment not handled right
@ 2015-05-06 20:26 roland at gnu dot org
  2015-06-03  0:20 ` [Bug dynamic-link/18383] " roland at gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: roland at gnu dot org @ 2015-05-06 20:26 UTC (permalink / raw)
  To: glibc-bugs

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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-07-08 22:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-06 20:26 [Bug dynamic-link/18383] New: TLS blocks with very large alignment not handled right roland at gnu dot org
2015-06-03  0:20 ` [Bug dynamic-link/18383] " roland at gnu dot org
2015-06-24 23:32 ` cvs-commit at gcc dot gnu.org
2015-07-08 22:03 ` roland at gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).