HomeFreeBSD

libc: switch to __weak_symbol for fortified interpose stubs

Description

libc: switch to __weak_symbol for fortified interpose stubs

GCC doesn't like #pragma weak macro(foo), but that's fine; just slap
a __weak_symbol on the definition to more reliably make it weak
anyways.

Reviewed by: kib (earlier version), markj
Sponsored by: Klara, Inc.
Sponsored by: Stormshield
Differential Revision: https://reviews.freebsd.org/D45976

Details

Provenance
kevansAuthored on Jul 16 2024, 5:12 AM
Reviewer
kib
Differential Revision
D45976: Collection of fixes for _FORTIFY_SOURCE
Parents
rG0c47b9c211ed: include: ssp: don't shadow the mempcpy builtin
Branches
Unknown
Tags
Unknown