[PATCH] aix: ensure reference to __tls_get_addr is in text section.

2021-10-19 Thread CHIGOT, CLEMENT via Gcc-patches
Move         __tls_get_addr reference to .text csect. Approved offline by David Edelson. From 52e9e4554d8dba9f9c9c56267789fc1d08b1de98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Chigot?= Date: Thu, 14 Oct 2021 09:03:13 +0200 Subject: [PATCH] aix: ensure reference to __tls_get_addr is in text se

Re: [PATCH] aix: ensure reference to __tls_get_addr is in text section.

2021-10-14 Thread David Edelsohn via Gcc-patches
> However, writing this mail, I'm wondering if we don't want to always keep both > csects. If .data is kept, then .text is and if .text is kept, then .data is. > Or always keeping .data would have too much side effects ? > > Thanks, > Clément > > __

Re: [PATCH] aix: ensure reference to __tls_get_addr is in text section.

2021-10-14 Thread CHIGOT, CLEMENT via Gcc-patches
David Edelsohn Sent: Thursday, October 14, 2021 3:42 PM To: CHIGOT, CLEMENT Cc: gcc-patches@gcc.gnu.org Subject: Re: [PATCH] aix: ensure reference to __tls_get_addr is in text section. Caution! External email. Do not open attachments or click links, unless this email comes from a known sender and yo

Re: [PATCH] aix: ensure reference to __tls_get_addr is in text section.

2021-10-14 Thread David Edelsohn via Gcc-patches
The reference to __tls_get_addr is in the data section. And the code just above creates a symbol in the text section referenced from the data section to ensure the text section is retained. So this change doesn't make sense. You're essentially saying that the data section is not used, which make

[PATCH] aix: ensure reference to __tls_get_addr is in text section.

2021-10-14 Thread CHIGOT, CLEMENT via Gcc-patches
The garbage collector of AIX linker might remove the reference to __tls_get_addr if it's added inside an unused csect. Clément Chigot ATOS Bull SAS 1 rue de Provence - 38432 Échirolles - France 0001-aix-ensure-reference-to-__tls_get_addr-is-in-text-se.patch Description: 0001-aix-ensure-referen