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)
Nov 1 2025, 5:01 PM
Unknown Object (File)
Oct 19 2025, 2:30 AM
Unknown Object (File)
Oct 17 2025, 5:04 PM
Unknown Object (File)
Oct 17 2025, 5:04 PM
Unknown Object (File)
Oct 17 2025, 8:30 AM
Unknown Object (File)
Sep 29 2025, 5:23 AM
Unknown Object (File)
Sep 5 2025, 7:31 AM
Unknown Object (File)
Sep 5 2025, 1:28 AM
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