public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Florian Weimer <fweimer@redhat.com>
To: Andreas Schwab <schwab@linux-m68k.org>
Cc: "H.J. Lu via Libc-alpha" <libc-alpha@sourceware.org>,
	 "H.J. Lu" <hjl.tools@gmail.com>,
	 Siddhesh Poyarekar <siddhesh@sourceware.org>
Subject: Re: [PATCH v4] ld.so: Replace DL_RO_DYN_SECTION with dl_relocate_ld
Date: Mon, 20 Sep 2021 12:03:59 +0200	[thread overview]
Message-ID: <877dfb5zsg.fsf@oldenburg.str.redhat.com> (raw)
In-Reply-To: <87ee9j8to7.fsf@igel.home> (Andreas Schwab's message of "Mon, 20 Sep 2021 11:47:52 +0200")

* Andreas Schwab:

> This breaks aarch64.
>
> gcc   -nostdlib -nostartfiles -shared -o /home/abuild/rpmbuild/BUILD/glibc-2.34.9000.109.ga93d9e03a3/cc-base/elf/ld.so.new              \
>           -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both -Wl,-z,force-bti,--fatal-warnings -Wl,-z,defs -Wl,-z,now  \
>           /home/abuild/rpmbuild/BUILD/glibc-2.34.9000.109.ga93d9e03a3/cc-base/elf/librtld.os -Wl,--version-script=/home/abuild/rpmbuild/BUILD/glibc-2.34.9000.109.ga93d9e03a3/cc-base/ld.map            \
>           -Wl,-soname=ld-linux-aarch64.so.1                     \
>           -Wl,-defsym=_begin=0
> /usr/lib64/gcc/aarch64-suse-linux/11/../../../../aarch64-suse-linux/bin/ld: /home/abuild/rpmbuild/BUILD/glibc-2.34.9000.109.ga93d9e03a3/cc-base/elf/librtld.os: warning: BTI turned on by -z force-bti when all inputs do not have BTI in NOTE section.
> collect2: error: ld returned 1 exit status
> make[2]: *** [Makefile:607: /home/abuild/rpmbuild/BUILD/glibc-2.34.9000.109.ga93d9e03a3/cc-base/elf/ld.so] Error 1

This is rather odd because the patch does not change the set of linker
input files or its attributes.

Or is this about commit a93d9e03a31ec14405cb3a09aa95413b67067380
("Extend struct r_debug to support multiple namespaces [BZ #15971]")?

Thanks,
Florian


  reply	other threads:[~2021-09-20 10:04 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-19 16:28 H.J. Lu
2021-09-20  3:28 ` Siddhesh Poyarekar
2021-09-20 14:19   ` H.J. Lu
2021-09-20  8:53 ` Florian Weimer
2021-09-22 18:00   ` H.J. Lu
2021-09-20  9:47 ` Andreas Schwab
2021-09-20 10:03   ` Florian Weimer [this message]
2021-09-20 10:31     ` Andreas Schwab
2021-09-20 10:32       ` Florian Weimer
2021-09-23 10:22 ` Florian Weimer
2021-09-23 15:47   ` H.J. Lu
2021-09-23 16:02     ` Florian Weimer
2021-09-23 16:15       ` H.J. Lu

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=877dfb5zsg.fsf@oldenburg.str.redhat.com \
    --to=fweimer@redhat.com \
    --cc=hjl.tools@gmail.com \
    --cc=libc-alpha@sourceware.org \
    --cc=schwab@linux-m68k.org \
    --cc=siddhesh@sourceware.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).