diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2020-09-26 10:15:28 +0100 |
---|---|---|
committer | Iain Sandoe <iain@sandoe.co.uk> | 2020-10-10 17:04:45 +0100 |
commit | a788c4555c6d17a5b37516e28844e6fd6013eb3e (patch) | |
tree | f33fa20c14b152ec1f1f8756d111edb63c3110bd /gcc/objc | |
parent | 900c0ca22673ec4d382ce588057de240f887be3a (diff) | |
download | gcc-a788c4555c6d17a5b37516e28844e6fd6013eb3e.zip gcc-a788c4555c6d17a5b37516e28844e6fd6013eb3e.tar.gz gcc-a788c4555c6d17a5b37516e28844e6fd6013eb3e.tar.bz2 |
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.
Diffstat (limited to 'gcc/objc')
-rw-r--r-- | gcc/objc/objc-next-runtime-abi-02.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/objc/objc-next-runtime-abi-02.c b/gcc/objc/objc-next-runtime-abi-02.c index e401906..b4019cd 100644 --- a/gcc/objc/objc-next-runtime-abi-02.c +++ b/gcc/objc/objc-next-runtime-abi-02.c @@ -323,9 +323,10 @@ next_runtime_abi_02_init_metadata_attributes (void) meta_sel_refs = get_identifier ("V2_SRFS"); - meta_class_name = - meta_meth_name = - meta_meth_type = + meta_class_name = get_identifier ("V2_CNAM"); + meta_meth_name = get_identifier ("V2_MNAM"); + + meta_meth_type = get_identifier ("V2_MTYP"); meta_prop_name_attr = get_identifier ("V2_STRG"); meta_mref = get_identifier ("V2_MREF"); |