aboutsummaryrefslogtreecommitdiff
path: root/gcc/objc
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2020-10-03 13:40:03 +0100
committerIain Sandoe <iain@sandoe.co.uk>2020-10-10 17:13:21 +0100
commitecd616f68067cca5e7051c8872b76311b09d8f45 (patch)
treeeca6b89e0cddce11c1b6e6869702a90b4de550b8 /gcc/objc
parenta788c4555c6d17a5b37516e28844e6fd6013eb3e (diff)
downloadgcc-ecd616f68067cca5e7051c8872b76311b09d8f45.zip
gcc-ecd616f68067cca5e7051c8872b76311b09d8f45.tar.gz
gcc-ecd616f68067cca5e7051c8872b76311b09d8f45.tar.bz2
Objective-C, Darwin : Update metadata section uses.
Newer versions of ld64 are more picky about adherence to placement rules for objective c metadata. This adds protocol refs and uses the ivar refs for all targets. gcc/ChangeLog: * config/darwin-sections.def (objc2_data_section): New. (objc2_ivar_section): New. * config/darwin.c (darwin_objc2_section): Act on Protocol and ivar refs. gcc/objc/ChangeLog: * objc-next-runtime-abi-02.c (next_runtime_abi_02_init_metadata_attributes): Make protocol refs a distinct section.
Diffstat (limited to 'gcc/objc')
-rw-r--r--gcc/objc/objc-next-runtime-abi-02.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/objc/objc-next-runtime-abi-02.c b/gcc/objc/objc-next-runtime-abi-02.c
index b4019cd..6d1badc 100644
--- a/gcc/objc/objc-next-runtime-abi-02.c
+++ b/gcc/objc/objc-next-runtime-abi-02.c
@@ -305,8 +305,8 @@ next_runtime_abi_02_init_metadata_attributes (void)
meta_class = get_identifier ("G2_CLAS");
meta_metaclass = get_identifier ("G2_META");
- meta_category =
- meta_protocol = meta_base;
+ meta_category = meta_base;
+ meta_protocol = get_identifier ("V2_PCOL");
meta_clac_vars =
meta_clai_vars = meta_base;