public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "amodra at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug libgcc/99759] morestack.S should support .init_array.0 besides .ctors.65535 Date: Thu, 12 Aug 2021 00:39:23 +0000 [thread overview] Message-ID: <bug-99759-4-IAfqX2qR2v@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-99759-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99759 Alan Modra <amodra at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |amodra at gmail dot com Status|WAITING |NEW --- Comment #2 from Alan Modra <amodra at gmail dot com> --- > this means the ctors.65535 will come last. Nope, it will come first. And since DT_INIT_ARRAY pointers are executed in the order they appear in the array, it will be one of the first to run. .init_array and .ctors sorting is complicated. ld.bfd will sort .init_array.0 (highest priority .init_array section) and .ctors.65535 (highest priority .ctors section) together. I assume this comment: > The input section description is quite close but does not sort .init_array.* and .ctors.* with the same priority together. is referring to lld. > I don't see any issue here really in the end because GCC will produce init_array most of the time. So the issue really is that lld doesn't support mixing of .ctors.* and .init_array.*. It might be nice for libgcc to use .init_array.0 here instead of .ctors.65536 whenever gcc will use .init_array in compiled code.
next prev parent reply other threads:[~2021-08-12 0:39 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-03-25 3:16 [Bug libgcc/99759] New: " i at maskray dot me 2021-04-05 0:26 ` [Bug libgcc/99759] " pinskia at gcc dot gnu.org 2021-08-12 0:39 ` amodra at gmail dot com [this message] 2021-08-12 1:52 ` i at maskray dot me 2021-10-08 19:09 ` i at maskray dot me
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=bug-99759-4-IAfqX2qR2v@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@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: linkBe 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).