| Summary: | ld: Add -Bsymbolic-non-weak-functions which only applies to STB_GLOBAL STT_FUNC | ||
|---|---|---|---|
| Product: | binutils | Reporter: | Fangrui Song <maskray> |
| Component: | ld | Assignee: | Not yet assigned to anyone <unassigned> |
| Status: | UNCONFIRMED --- | ||
| Severity: | normal | CC: | dancol, hjl.tools, sam |
| Priority: | P2 | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| See Also: | https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100593 | ||
| Host: | Target: | ||
| Build: | Last reconfirmed: | ||
| Project(s) to access: | ssh public key: | ||
|
Description
Fangrui Song
2021-05-15 23:09:56 UTC
ld patch: https://sourceware.org/pipermail/binutils/2021-May/116703.html gold patch: https://sourceware.org/pipermail/binutils/2021-May/116683.html (I was considering -Bsymbolic-global-functions but Peter Smith suggested that "global" can confuse users. non-weak or non-vague is better. Detecting vague properly requires detection of COMDAT, which would cause some complexity. I feel that non-weak is better: this way we provide an escape hatch for users who want definition interposition (very rare and good to have a way)) |