public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Florian Weimer <fweimer@redhat.com>
To: Alan Modra via Libc-alpha <libc-alpha@sourceware.org>
Cc: Joseph Myers <joseph@codesourcery.com>,
	Alan Modra <amodra@gmail.com>,
	binutils@sourceware.org
Subject: Re: Emit a warning when -z relro is unsupported
Date: Wed, 29 Jul 2020 18:25:44 +0200	[thread overview]
Message-ID: <87eeounv93.fsf@oldenburg2.str.redhat.com> (raw)
In-Reply-To: <20200729071002.GP9601@bubble.grove.modra.org> (Alan Modra via Libc-alpha's message of "Wed, 29 Jul 2020 16:40:02 +0930")

* Alan Modra via Libc-alpha:

> From 3425515f19d47eb2e13180fe031d94a9c13ce39b Mon Sep 17 00:00:00 2001
> From: Alan Modra <amodra@gmail.com>
> Date: Wed, 29 Jul 2020 16:28:57 +0930
> Subject: Don't mix linker error messages into edited scripts
>
> 	* Makerules (shlib.lds): Discard linker warning output.
> 	(format.lds): Likewise.
>
> diff --git a/Makerules b/Makerules
> index 341db86c7e..ef0fe67d9a 100644
> --- a/Makerules
> +++ b/Makerules
> @@ -557,7 +557,7 @@ $(common-objpfx)shlib.lds: $(common-objpfx)config.make $(..)Makerules
>  	$(LINK.o) -shared -Wl,-O1 \
>  		  -nostdlib -nostartfiles \
>  		  $(sysdep-LDFLAGS) $(rtld-LDFLAGS) $(LDFLAGS.so) \
> -		  -Wl,--verbose 2>&1 | \
> +		  -Wl,--verbose 2>/dev/null | \
>  	  sed > $@T \
>  	      -e '/^=========/,/^=========/!d;/^=========/d' \
>  	      $(if $(filter yes,$(have-hash-style)), \
> @@ -1073,7 +1073,7 @@ ifneq (unknown,$(output-format))
>  else
>  	$(LINK.o) -shared $(sysdep-LDFLAGS) $(rtld-LDFLAGS) \
>  		  $(LDFLAGS.so) $(LDFLAGS-lib.so) \
> -		  -x c /dev/null -o $@.so -Wl,--verbose -v 2>&1 \
> +		  -x c /dev/null -o $@.so -Wl,--verbose -v 2>/dev/null \
>  	| sed -n -f $< > $@.new
>  	test -s $@.new
>  	rm -f $@.so

This change looks reasonable to me.  Thanks for tracking this down.

We are in the glibc 2.32, so Carlos as the release manager needs to
approve this.

Florian


  reply	other threads:[~2020-07-29 16:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20200619024818.GA21885@bubble.grove.modra.org>
     [not found] ` <alpine.DEB.2.21.2007282255020.6112@digraph.polyomino.org.uk>
     [not found]   ` <20200729003850.GO9601@bubble.grove.modra.org>
2020-07-29  7:10     ` Alan Modra
2020-07-29 16:25       ` Florian Weimer [this message]
2020-07-29 22:47         ` Joseph Myers
2020-08-04 20:57         ` Carlos O'Donell
2020-08-04 23:54           ` Carlos O'Donell

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=87eeounv93.fsf@oldenburg2.str.redhat.com \
    --to=fweimer@redhat.com \
    --cc=amodra@gmail.com \
    --cc=binutils@sourceware.org \
    --cc=joseph@codesourcery.com \
    --cc=libc-alpha@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).