From: "Martin Liška" <mliska@suse.cz>
To: Jeff Law <jeffreyalaw@gmail.com>,
'GCC Patches' <gcc-patches@gcc.gnu.org>
Subject: Re: [committed] Fix more problems with new linker warnings
Date: Mon, 22 Aug 2022 11:39:31 +0200 [thread overview]
Message-ID: <13847bc4-00e8-1680-da3c-4c95b33ce1be@suse.cz> (raw)
In-Reply-To: <16a40e11-e97f-59bd-9990-9b7e6dee39c9@gmail.com>
On 4/28/22 18:10, Jeff Law via Gcc-patches wrote:
> As I mentioned in the original thread, my change to pr94157_0 was an attempt to avoid these warnings by passing a magic flag to the linker. Of course we may not be using GNU ld. Or we may be on a non-elf target where the flag I used doesn't exist. Or we may even be on a ELF target where those bits weren't added to the linker (frv). Furthermore, we need fixes to all the nested function tests as well.
>
> So even though I initially resisted pruning the warning, that seems like the best course of action. So this patch removes my recent change to pr94157_0 and instead uses our pruning facilities.
>
> I'll be pushing this to the trunk and gcc-12 branch.
>
> Jeff
Hello.
I noticed this patch during my GCC test-suite run with mold linker. As you likely now, the linker defaults
to non-executable stack and so one sees test-suite crashes (not only warnings) [1].
So the question is if we want to explicitly fix all tests that rely on exectack? Or is it something
we can assume as it's what GNU linkers do?
List of affected tests:
https://gist.githubusercontent.com/marxin/aadb75408a5a7867bf9fb26e879ce4c4/raw/aff2a0e4559e2dba8ea358520ca836eda6e7dc70/gistfile1.txt
Thanks,
Martin
[1] https://github.com/rui314/mold/issues/427
next prev parent reply other threads:[~2022-08-22 9:39 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-28 16:10 Jeff Law
2022-04-28 16:27 ` H.J. Lu
2022-04-28 16:59 ` Jeff Law
2022-04-28 17:53 ` H.J. Lu
2022-04-29 6:52 ` Richard Biener
2022-05-10 16:32 ` H.J. Lu
2022-08-22 9:39 ` Martin Liška [this message]
2022-08-31 15:49 ` Jeff Law
2022-09-01 10:13 ` Martin Liška
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=13847bc4-00e8-1680-da3c-4c95b33ce1be@suse.cz \
--to=mliska@suse.cz \
--cc=gcc-patches@gcc.gnu.org \
--cc=jeffreyalaw@gmail.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).