Skip to content

support x86_64 Objective-C code generation for Leopard #4359

@d0k

Description

@d0k
Bugzilla Link 3987
Resolution FIXED
Resolved on Jul 29, 2010 17:39
Version unspecified
OS MacOS X

Extended Description

$ cat test.m
#import <Foundation/Foundation.h>

@​protocol Foo
@​end

@​interface Test : NSObject
@​end

@​implementation Test
@​end

If this code is compiled with clang in 64 bit mode 'as' complains:

$ clang -m64 test.m
/tmp/cc-USvXbC.s:27:FATAL:symbol: l_OBJC_LABEL_PROTOCOL_$_Foo can't be a weak_definition (currently only supported in section of type coalesced)

The code assembles fine in 32 bit mode.

(I don't know much Objective C so the test case might be reduced further. I've extracted this from transmission)

I'm using OS X 10.5.6 (intel) and clang/llvm r69067.

$ as -v
Apple Inc version cctools-698~13, GNU assembler version 1.38

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclang:codegenIR generation bugs: mangling, exceptions, etc.compile-failUse [accepts-invalid] and [rejects-valid] instead

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions