support for undefined weak symbols
|Reported by:||lucian||Owned by:||axeld|
|Has a Patch:||yes||Platform:||All|
Currently Haiku does not support add-ons with undefined weak symbols: it reports that a symbol could not be resolved and does not load the add-on.
As I understand it, undefined weak symbols should not be looked up, but just mapped to 0
The symbol is a weak object. When a weak defined symbol is linked with a normal defined symbol, the normal defined symbol is used with no error. When a weak undefined symbol is linked and the symbol is not defined, the value of the weak symbol becomes zero with no error.
"Unresolved weak symbols have a zero value".