public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Adhemerval Zanella Netto <adhemerval.zanella@linaro.org>
To: "H.J. Lu" <hjl.tools@gmail.com>
Cc: libc-alpha@sourceware.org, Szabolcs Nagy <szabolcs.nagy@arm.com>
Subject: Re: [PATCH 1/3] Ignore undefined symbols for -mtls-dialect=gnu2
Date: Tue, 5 Mar 2024 17:17:16 -0300	[thread overview]
Message-ID: <987f9c7c-76e8-4ff1-8599-4f7bdf0239c5@linaro.org> (raw)
In-Reply-To: <CAMe9rOpPajezOqf+kGae+jsETwpsYsasEPZFQM4cweO_8L1OrA@mail.gmail.com>



On 05/03/24 17:07, H.J. Lu wrote:
> On Thu, Feb 29, 2024 at 11:46 AM Adhemerval Zanella
> <adhemerval.zanella@linaro.org> wrote:
>>
>> So it is not fail for arm config that defaults to -mtp=soft (which
>> issues a call to __aeabi_read_tp).
>> ---
>>  configure    | 2 +-
>>  configure.ac | 2 +-
>>  2 files changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/configure b/configure
>> index 59ff1e415d..ab8a10ed92 100755
>> --- a/configure
>> +++ b/configure
>> @@ -7020,7 +7020,7 @@ void foo (void)
>>  }
>>  EOF
>>  if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -fPIC -mtls-dialect=gnu2 -nostdlib -nostartfiles
>> -                  conftest.c -o conftest 1>&5'
>> +                  -Wl,--unresolved-symbols=ignore-all conftest.c -o conftest 1>&5'
>>    { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
>>    (eval $ac_try) 2>&5
>>    ac_status=$?
>> diff --git a/configure.ac b/configure.ac
>> index 65799e5685..4bb9aeef95 100644
>> --- a/configure.ac
>> +++ b/configure.ac
>> @@ -1297,7 +1297,7 @@ void foo (void)
>>  }
>>  EOF
>>  if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS -fPIC -mtls-dialect=gnu2 -nostdlib -nostartfiles
>> -                  conftest.c -o conftest 1>&AS_MESSAGE_LOG_FD])
>> +                  -Wl,--unresolved-symbols=ignore-all conftest.c -o conftest 1>&AS_MESSAGE_LOG_FD])
>>  then
> 
> Can we use -shared instead?

It works as well, I don't have a strong preference.

> 
>>    libc_cv_mtls_dialect_gnu2=yes
>>  else
>> --
>> 2.34.1
>>
> 
> 

  reply	other threads:[~2024-03-05 20:17 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-29 19:46 [PATCH 0/3] Extending TLS testing and fixing TLS gnu2 for ARM Adhemerval Zanella
2024-02-29 19:46 ` [PATCH 1/3] Ignore undefined symbols for -mtls-dialect=gnu2 Adhemerval Zanella
2024-03-05 20:07   ` H.J. Lu
2024-03-05 20:17     ` Adhemerval Zanella Netto [this message]
2024-03-05 20:22       ` H.J. Lu
2024-02-29 19:46 ` [PATCH 2/3] arm: Update _dl_tlsdesc_dynamic to preserve caller-saved registers (BZ 31372) Adhemerval Zanella
2024-02-29 19:46 ` [PATCH 3/3] elf: Enable TLS descriptor tests on aarch64 Adhemerval Zanella
2024-03-11 12:31   ` Szabolcs Nagy
2024-03-11 12:36     ` Adhemerval Zanella Netto

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=987f9c7c-76e8-4ff1-8599-4f7bdf0239c5@linaro.org \
    --to=adhemerval.zanella@linaro.org \
    --cc=hjl.tools@gmail.com \
    --cc=libc-alpha@sourceware.org \
    --cc=szabolcs.nagy@arm.com \
    /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).