Page MenuHomeFreeBSD

libc: Use __weak_symbol for poll/ppoll wrappers
AbandonedPublic

Authored by jhb on Jul 17 2024, 12:25 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Feb 13, 9:56 AM
Unknown Object (File)
Wed, Feb 12, 2:10 AM
Unknown Object (File)
Sun, Feb 9, 6:36 AM
Unknown Object (File)
Fri, Feb 7, 9:16 PM
Unknown Object (File)
Jan 18 2025, 12:50 AM
Unknown Object (File)
Jan 9 2025, 12:19 PM
Unknown Object (File)
Jan 8 2025, 10:00 PM
Unknown Object (File)
Dec 7 2024, 11:13 PM
Subscribers

Details

Reviewers
kevans
Summary

GCC only does not expand the argument to #pragma weak and instead
requires its argument to be a literal string. Use an attribute on the
function definition via __weak_symbol instead.

Fixes: 88276dfbf19e include: ssp: fortify poll/ppoll from <poll.h>

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 58672
Build 55560: arc lint + arc unit