Summary: | ld: Add -Bsymbolic-non-weak-functions which only applies to STB_GLOBAL STT_FUNC | ||
---|---|---|---|
Product: | binutils | Reporter: | Fangrui Song <i> |
Component: | ld | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | hjl.tools |
Priority: | P2 | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Last reconfirmed: |
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)) |