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

Brooks Davis <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Brooks Davis <[email protected]> ---
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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to