From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1698) id F20E83858D28; Sat, 27 Apr 2024 16:12:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F20E83858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1714234325; bh=z7bF/k/fsXaia6QQwPRC88x8xAKq8lpKkcRcxxzrHNY=; h=From:To:Subject:Date:From; b=MdxS7Tpq1YOogPmQpkgiRTers5QYoNFSu/qVt5ItqJLG7UpUDdH8ZYm/DWrstosFi lEUEpbF5XFfAmLOLzhjsSuruyigBaiM1ALRU2uoCNyaaQq+p+ILKf/jhxqKiXbz1re 7HKIA2URbHid08Zy/9O0G1r2aurF9FLfORo5W6Jw= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Iain D Sandoe To: gcc-cvs@gcc.gnu.org Subject: [gcc r11-11380] Darwin: Make metadata symbol lables linker-visible for GNU objc. X-Act-Checkin: gcc X-Git-Author: Iain Sandoe X-Git-Refname: refs/heads/releases/gcc-11 X-Git-Oldrev: b7c784f58fa7b4afe4cd8546a698df03b88b6fed X-Git-Newrev: 441effdb320d4939a1d09246ba1370d733c3218a Message-Id: <20240427161205.F20E83858D28@sourceware.org> Date: Sat, 27 Apr 2024 16:12:05 +0000 (GMT) List-Id: https://gcc.gnu.org/g:441effdb320d4939a1d09246ba1370d733c3218a commit r11-11380-g441effdb320d4939a1d09246ba1370d733c3218a Author: Iain Sandoe 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 seaprate 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 (cherry picked from commit 24709788e40bc26dfb49585e752fad503fdced71) 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 ef598f10c90..2dfdf8546e6 100644 --- a/gcc/config/darwin.h +++ b/gcc/config/darwin.h @@ -839,7 +839,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 \