Objective-C, Darwin : Use special string sections for V2 NeXT runtime.
authorIain Sandoe <iain@sandoe.co.uk>
Sat, 26 Sep 2020 09:15:28 +0000 (10:15 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Sat, 10 Oct 2020 16:04:45 +0000 (17:04 +0100)
commita788c4555c6d17a5b37516e28844e6fd6013eb3e
treef33fa20c14b152ec1f1f8756d111edb63c3110bd
parent900c0ca22673ec4d382ce588057de240f887be3a
Objective-C, Darwin : Use special string sections for V2 NeXT runtime.

Newer versions of the runtime expect to find strings for class, method
and method types in set-aside sections rather than the general c_strings
one.

gcc/ChangeLog:

* config/darwin-sections.def (objc2_class_names_section,
objc2_method_names_section, objc2_method_types_section): New
* config/darwin.c (output_objc_section_asm_op): Output new
sections.  (darwin_objc2_section): Select new sections where
used.

gcc/objc/ChangeLog:

* objc-next-runtime-abi-02.c
(next_runtime_abi_02_init_metadata_attributes): Attach metadata
for the special string sections to class, method and method type
string sections.
gcc/config/darwin-sections.def
gcc/config/darwin.c
gcc/objc/objc-next-runtime-abi-02.c