]> gcc.gnu.org Git - gcc.git/commit
Objective-C, NeXT: Adjust symbol marking to match host tools.
authorIain Sandoe <iain@sandoe.co.uk>
Mon, 2 May 2022 18:42:49 +0000 (19:42 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Mon, 22 Apr 2024 13:13:11 +0000 (14:13 +0100)
commit49c3c423218ea5f02dbbc6b847e15c06174f81ba
tree1b87464a6af54ec7d6fc989c4cf1e9aa9fa196fe
parentd79d1073c444ceb85b3cd2f55be7b4dfe598d287
Objective-C, NeXT: Adjust symbol marking to match host tools.

Current host tools mark some additional symbols as 'no dead strip' and also
expose one additional group to the linker.  This does not affect older Darwin
versions or x86_64, but omitting these changes results in link errors for
aarch64.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
gcc/ChangeLog:

* config/darwin.c (darwin_label_is_anonymous_local_objc_name): Make
protocol class methods linker-visible.

gcc/objc/ChangeLog:

* objc-next-runtime-abi-02.c (next_runtime_abi_02_protocol_decl): Do
not dead-strip the runtime meta-data symbols.
(build_v2_classrefs_table): Likewise.
(build_v2_protocol_list_address_table): Likewise.

(cherry picked from commit ecd5727c0a662a8fea6b5f8eac6f3f15bf5ef851)
gcc/config/darwin.c
gcc/objc/objc-next-runtime-abi-02.c
This page took 0.060481 seconds and 5 git commands to generate.