libgcc, emutls: Allow building weak definitions of the emutls functions.
authorIain Sandoe <iain@sandoe.co.uk>
Sun, 19 Sep 2021 11:35:46 +0000 (12:35 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Fri, 19 Nov 2021 19:53:39 +0000 (19:53 +0000)
commitb9873b4e2c9a9955789318f4d550147ef9405b07
treece8181c811d3611cb8161a971846345fc87053b5
parentc7b782d847d8682af9d5d91c0614a880cc2436f1
libgcc, emutls: Allow building weak definitions of the emutls functions.

In order to better support use of the emulated TLS between objects with
DSO dependencies and static-linked libgcc, allow a target to make weak
definitions.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
libgcc/ChangeLog:

* config/t-darwin: Build weak-defined emutls objects.
* emutls.c (__emutls_get_address): Add optional attributes.
(__emutls_register_common): Likewise.
(EMUTLS_ATTR): New.
libgcc/config/t-darwin
libgcc/emutls.c