Page MenuHomeFreeBSD

Allow programs to set `NO_SHARED` on a per-prog basis
ClosedPublic

Authored by ngie on Mar 29 2019, 7:06 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 3, 6:54 AM
Unknown Object (File)
Fri, May 3, 6:54 AM
Unknown Object (File)
Fri, May 3, 6:54 AM
Unknown Object (File)
Fri, May 3, 1:27 AM
Unknown Object (File)
Mar 3 2024, 7:58 AM
Unknown Object (File)
Dec 20 2023, 5:31 AM
Unknown Object (File)
Nov 15 2023, 7:41 PM
Unknown Object (File)
Nov 8 2023, 10:48 PM
Subscribers

Details

Summary

This is particularly useful when installing programs for tests that need to be
linked statically, e.g., mini-me from capsicum-test, which is linked statically
to avoid the dynamic library lookup in the upstream project.

MFC after: 1 month

Test Plan

Some programs from ^/projects/capsicum-test linked statically via this change:

$ file /usr/tests/sys/capsicum-test/mini-me*
/usr/tests/sys/capsicum-test/mini-me:        ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), statically linked, for FreeBSD 13.0 (1300012), FreeBSD-style, stripped
/usr/tests/sys/capsicum-test/mini-me.noexec: setuid ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), statically linked, for FreeBSD 13.0 (1300012), FreeBSD-style, stripped
/usr/tests/sys/capsicum-test/mini-me.setuid: setuid ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), statically linked, for FreeBSD 13.0 (1300012), FreeBSD-style, stripped

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

The downside of adding these is just the extra loops?

The downside of adding these is just the extra loops?

In make, it'd be an extra loop, yeah...

This revision is now accepted and ready to land.Mar 30 2019, 2:29 PM
This revision was automatically updated to reflect the committed changes.