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