#8 Use symver attribute rather than asms, re-enable LTO
Opened 3 years ago by law. Modified 3 years ago
rpms/ law/libsemanage fix_symver_enable_lto  into  master

No commits found

This patch changes libsemanage from using asms to implement symbol versioning to instead use the symver attribute for symbol versioning. This in turn allows enabling LTO for this package.

I'm working with about 200 packages on LTO issues, so it's not really feasible for me to engage all the upstream communities. So I'd like to get this into Fedora now so we can take advantage of LTO and have the package maintainer engage upstream to get the patch (or an equivalent) installed.

Thanks,
Jeff

https://travis-ci.org/github/bachradsusi/selinux/builds/723758110

I'm afraid this solution is not acceptable for upstream as there's need to support older gcc and clang.

But upstream is going to drop problematic asm constructs and duplicate symbols as they were introduce for backward compatibility long time ago and it looks like they are not needed anymore, see https://lore.kernel.org/selinux/20200826074708.GB401602@workstation/