public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: David Edelsohn <dje.gcc@gmail.com>
To: "CHIGOT, CLEMENT" <clement.chigot@atos.net>
Cc: "gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org>
Subject: Re: [PATCH] aix: ensure reference to __tls_get_addr is in text section.
Date: Thu, 14 Oct 2021 09:42:48 -0400	[thread overview]
Message-ID: <CAGWvnykb+7RtZkbu1v3_DN+z=-_TPER64JS7oVVyBEFtF_OexA@mail.gmail.com> (raw)
In-Reply-To: <PA4PR02MB6686AB43F30EF47E591F12E0EAB89@PA4PR02MB6686.eurprd02.prod.outlook.com>

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 makes the other code useless to ensure that the
text section is referenced.

Thanks, David

On Thu, Oct 14, 2021 at 3:06 AM CHIGOT, CLEMENT <clement.chigot@atos.net> wrote:
>
> 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
>

  reply	other threads:[~2021-10-14 13:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-14  7:06 CHIGOT, CLEMENT
2021-10-14 13:42 ` David Edelsohn [this message]
2021-10-14 14:10   ` CHIGOT, CLEMENT
2021-10-14 14:37     ` David Edelsohn
2021-10-19 12:40 CHIGOT, CLEMENT

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAGWvnykb+7RtZkbu1v3_DN+z=-_TPER64JS7oVVyBEFtF_OexA@mail.gmail.com' \
    --to=dje.gcc@gmail.com \
    --cc=clement.chigot@atos.net \
    --cc=gcc-patches@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).