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>
Tue, 3 May 2022 18:38:34 +0000 (19:38 +0100)
commitecd5727c0a662a8fea6b5f8eac6f3f15bf5ef851
tree511ab0f555e15f7b331bfd02a307fee3c67e6860
parent25389f3de489c25a6983db96428a6bf06aedc829
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.cc (darwin_label_is_anonymous_local_objc_name): Make
protocol class methods linker-visible.

gcc/objc/ChangeLog:

* objc-next-runtime-abi-02.cc (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.
gcc/config/darwin.cc
gcc/objc/objc-next-runtime-abi-02.cc