tools/elfutils: use weak alias over no alias for macOS
authorMichael Pratt <mcpratt@pm.me>
Tue, 11 Jun 2024 03:59:10 +0000 (23:59 -0400)
committerRobert Marko <robimarko@gmail.com>
Wed, 19 Jun 2024 09:22:13 +0000 (11:22 +0200)
commite4fb7c9544d607ce9d63bcfaa955fc3b28b3898e
tree7cc31fc1c9cc1264a0fed32bb7257673e5dfd2a5
parent52a53445014d87cf4cdc5484a8293a41b6f5b274
tools/elfutils: use weak alias over no alias for macOS

Clang has support for weak aliases
despite no support for strong aliases,
but it only works with the #pragma directive.

Implementing weak aliases instead of none
is likely a more upstream-friendly solution
for supporting building on other platforms.

Signed-off-by: Michael Pratt <mcpratt@pm.me>
Link: https://github.com/openwrt/openwrt/pull/15690
Signed-off-by: Robert Marko <robimarko@gmail.com>
tools/elfutils/patches/100-portability.patch