diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2023-09-30 17:15:16 +0100 |
---|---|---|
committer | Iain Sandoe <iain@sandoe.co.uk> | 2023-10-26 15:59:34 +0100 |
commit | 2ae00adb326ed050bd67a67656b20a2cfe789626 (patch) | |
tree | 9f729a8bda67b328a4de55efbaff07c4cfca095a | |
parent | f55cdce3f8dd8503e080e35be59c5f5390f6d95e (diff) | |
download | gcc-2ae00adb326ed050bd67a67656b20a2cfe789626.zip gcc-2ae00adb326ed050bd67a67656b20a2cfe789626.tar.gz gcc-2ae00adb326ed050bd67a67656b20a2cfe789626.tar.bz2 |
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>
-rw-r--r-- | gcc/config/darwin.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h index b43c8ce..5db64a1 100644 --- a/gcc/config/darwin.h +++ b/gcc/config/darwin.h @@ -868,7 +868,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 \ |