public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Iain D Sandoe <iains@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r12-10345] Darwin: Make metadata symbol lables linker-visible for GNU objc.
Date: Fri, 19 Apr 2024 13:12:48 +0000 (GMT)	[thread overview]
Message-ID: <20240419131248.83F30384AB7E@sourceware.org> (raw)

https://gcc.gnu.org/g:abaccd9474bd62c8a2385d008c80716c0411e9c8

commit r12-10345-gabaccd9474bd62c8a2385d008c80716c0411e9c8
Author: Iain Sandoe <iain@sandoe.co.uk>
Date:   Sat Sep 30 17:15:16 2023 +0100

    Darwin: Make metadata symbol lables linker-visible for GNU objc.
    
    Now we have shifted to using the same relocation mechanism as clang for
    objective-c typeinfo the static linker needs to have a linker-visible
    symbol for metadata names (this is only needed for GNU objective C, for
    NeXT the names are in separate sections).
    
    gcc/ChangeLog:
    
            * config/darwin.h
            (darwin_label_is_anonymous_local_objc_name): Make metadata names
            linker-visibile for GNU objective C.
    
    Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
    (cherry picked from commit 2ae00adb326ed050bd67a67656b20a2cfe789626)

Diff:
---
 gcc/config/darwin.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h
index 7026d200d59..acfd4d402c6 100644
--- a/gcc/config/darwin.h
+++ b/gcc/config/darwin.h
@@ -853,7 +853,7 @@ int darwin_label_is_anonymous_local_objc_name (const char *name);
        else if (xname[0] == '+' || xname[0] == '-')			     \
          fprintf (FILE, "\"%s\"", xname);				     \
        else if (darwin_label_is_anonymous_local_objc_name (xname))	     \
-         fprintf (FILE, "L%s", xname);					     \
+	fprintf (FILE, "%c%s", flag_next_runtime ? 'L' : 'l', xname);	     \
        else if (xname[0] != '"' && name_needs_quotes (xname))		     \
 	 asm_fprintf (FILE, "\"%U%s\"", xname);				     \
        else								     \

                 reply	other threads:[~2024-04-19 13:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20240419131248.83F30384AB7E@sourceware.org \
    --to=iains@gcc.gnu.org \
    --cc=gcc-cvs@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: 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).