Skip to content

Conversation

@MaskRay
Copy link
Member

@MaskRay MaskRay commented Jan 24, 2024

After #69498, when _LIBCPP_MAKE_OVERRIDABLE_FUNCTION_DETECTABLE
functions are absent (possibly after ld --gc-sections), there will no
output section __lcxx_override. The linker will report an error like

ld: error: undefined symbol: __start___lcxx_override
>>> referenced by overridable_function.h:108 (libcxx/src/include/overridable_function.h:108)

Fix this by making the references weak.

After llvm#69498, when `_LIBCPP_MAKE_OVERRIDABLE_FUNCTION_DETECTABLE`
functions are absent (possibly after ld --gc-sections), there will no
output section `__lcxx_override`. The linker will report an error like

```
ld: error: undefined symbol: __start___lcxx_override
>>> referenced by overridable_function.h:108 (libcxx/src/include/overridable_function.h:108)
```

Fix this by making the references weak.
@MaskRay MaskRay closed this Jan 24, 2024
@MaskRay MaskRay deleted the lcxx_override branch January 26, 2024 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant