diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2020-10-03 13:40:03 +0100 |
---|---|---|
committer | Iain Sandoe <iain@sandoe.co.uk> | 2020-10-10 17:13:21 +0100 |
commit | ecd616f68067cca5e7051c8872b76311b09d8f45 (patch) | |
tree | eca6b89e0cddce11c1b6e6869702a90b4de550b8 /gcc/objc | |
parent | a788c4555c6d17a5b37516e28844e6fd6013eb3e (diff) | |
download | gcc-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.c | 4 |
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; |