ObjC relocation against symbol in discarded section error on Windows using gnustep-2.0 runtime #49025
Labels
bugzilla
Issues migrated from bugzilla
clang
Clang issues not falling into any other category
objective-c
Extended Description
Linking a file that references functions from the gnustep-2.0 runtime, but does not reference any Objective-C code, results in the following linker errors when using LLD:
Using link.exe only results in the following warnings:
This can be reproduced e.g. as follows:
Adding any code that references Objective-C classes in the same file, e.g.
[NSObject new]
, makes the linker errors disappear. Likewise using the gnustep-1.9 runtime does not expose this issue.This is relevant when using Autoconf to check for the existence of runtime functions, as it will generate files like the above (minus the #include) to do so.
The text was updated successfully, but these errors were encountered: