[Bug 245189] Building world WITH_BEARSSL=1 and WITH_PIE=1 is currently broken

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Mar 31 16:50:51 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=245189

Brooks Davis <brooks at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |brooks at FreeBSD.org

--- Comment #1 from Brooks Davis <brooks at FreeBSD.org> ---
I prodded this a little and I think the logic for when to build _pie.a
libraries may be wrong.  Right now it only happens when:

.if defined(INTERNALLIB) && ${MK_PIE} != "no"
PIEOBJS+=       ${OBJS:.o=.pieo}
...
_LIBS+=         lib${LIB_PRIVATE}${LIB}_pie.a


The problem is that veriexec is NO_SHARED= which means it wants to link to the
PIE archives that don't exist.

There are a bunch of options here:
 * have NO_SHARED imply MK_PIE=no (or just set it in sbin/veriexec/Makefile)
 * always build _pie.a archives when PIE is enabled.
 * add some sort of PIELIB= to enable the _pie.a archive in select libraries
 * make these libraries into INTENRALLIBS

I've got a build in progress testing adding MK_PIE=no to sbin/veriexec/Makefile

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list