Skip to content

Conversation

@resistor
Copy link
Collaborator

@resistor resistor commented Jun 2, 2025

These arise in newer libc++'s, where a library is used for explicit
instantiations of some std::string methods. These become weakly
exported libcall symbols from the library, and still need to be
present in the export table. Since they should only ever be materialized
in one translation unit, it's OK for the export table entry to be
strongly exported while the symbol itself is weakly exported.

@resistor resistor force-pushed the weak-export-table branch from 00aa056 to a8eab7e Compare June 2, 2025 14:11
@resistor resistor changed the title [WIP] Generate weak export table entries for weak function symbols. Generate export table entries for weak function symbols. Jun 2, 2025
@resistor resistor force-pushed the weak-export-table branch from a8eab7e to 323572e Compare June 2, 2025 14:12
@resistor resistor changed the title Generate export table entries for weak function symbols. [CHERIoT] Generate export table entries for weak function symbols. Jun 2, 2025
@resistor resistor marked this pull request as ready for review June 2, 2025 14:12
@resistor resistor force-pushed the weak-export-table branch from 323572e to 6539d69 Compare June 9, 2025 13:24
These arise in newer libc++'s, where a library is used for explicit
instantiations of some std::string methods. These become weakly
exported libcall symbols from the library, and still need to be
present in the export table. Since they should only ever be materialized
in one translation unit, it's OK for the export table entry to be
strongly exported while the symbol itself is weakly exported.
@resistor resistor force-pushed the weak-export-table branch from 6539d69 to ab6f8a2 Compare June 11, 2025 12:44
@resistor resistor merged commit 52307f8 into CHERIoT-Platform:cheriot Jun 11, 2025
7 checks passed
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