Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260618215829.GO27423@brightrain.aerifal.cx>
Date: Thu, 18 Jun 2026 17:58:29 -0400
From: Rich Felker <dalias@...c.org>
To: musl@...ts.openwall.com
Subject: Re: [PATCH] or1k: fix local-exec tls with large alignment

On Thu, Jun 18, 2026 at 09:12:56PM +0200, Szabolcs Nagy wrote:
> or1k uses an unusual variant of the TLS_ABOVE_TP layout:
> 
> powerpc, mips, m68k:
>    pthread  | tls
>  +----------+-----------------+--
>  |          |<     tpoff     >|
>  self       a = e = m         tp
> 
> arm, aarch64, sh:
>    pthread   <    gap    >| tls
>  +----------+-------------+------
>  |          |             |
>  self       a = e = tp    m
> 
> or1k:
>    pthread   <    gap    >| tls
>  +----------+-------------+------
>  |          |<   tpoff   >|
>  self       a = e         m = tp

To be sure we understand this correctly, can you draw a diagram like
this for the wrong way we have the or1k layout now?

Rich

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.