NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: PR/54093 CVS commit: src

>>> Joerg Sonnenberger <> wrote

> >  I think static TLS area should align with p_align in elf program
> >  header, not with sizeof(max_align_t).
> We don't support non-standard alignments of TLS. Fixing that is
> intrusive in the dynamic linker and I have no plan to do that ATM.

Should we follow p_align for static linking?  Since it is now
aligned with a value different from p_align, some atf tests fails
on amd64 like sparc before the change.  Previously, p_align and
sizeof(void *) had the same value on amd64 by chance.

> >  sizeof(max_align_t) is 12 on i386, it is not valid on roundup2.
> >  This seems to cause some atf tests to fail.
> That would be a separate bug on i386.

For dynamic linking, I understood the change since you fixed to use
roundup2 with alignof(max_align_t) instead of sizeof(max_align_t).

-- Takeshi Nakayama

Home | Main Index | Thread Index | Old Index