freebsd-skq/lib
Bryan Drewery 5608fd23c2 Revert r267233 for now. PIE support needs to be reworked.
1. 50+% of NO_PIE use is fixed by adding -fPIC to INTERNALLIB and other
   build-only utility libraries.
2. Another 40% is fixed by generating _pic.a variants of various libraries.
3. Some of the NO_PIE use is a bit absurd as it is disabling PIE (and ASLR)
   where it never would work anyhow, such as csu or loader. This suggests
   there may be better ways of adding support to the tree. Many of these
   cases can be fixed such that -fPIE will work but there is really no
   reason to have it in those cases.
4. Some of the uses are working around hacks done to some Makefiles that are
   really building libraries but have been using bsd.prog.mk because the code
   is cleaner. Had they been using bsd.lib.mk then NO_PIE would not have
   been needed.

We likely do want to enable PIE by default (opt-out) for non-tree consumers
(such as ports). For in-tree though we probably want to only enable PIE
(opt-in) for common attack targets such as remote service daemons and setuid
utilities. This is also a great performance compromise since ASLR is expected
to reduce performance. As such it does not make sense to enable it in all
utilities such as ls(1) that have little benefit to having it enabled.

Reported by:	kib
2014-08-19 15:04:32 +00:00
..
atf Fix typo in lib/atf/libatfc++/Makefile 2014-08-17 23:30:45 +00:00
clang Replace DPADD with DPSRCS to fix "make checkdpadd" 2014-08-18 17:38:50 +00:00
csu Revert r267233 for now. PIE support needs to be reworked. 2014-08-19 15:04:32 +00:00
libalias
libarchive In r232153, libarchive 3.0.3 was imported, replacing the archive_hash.h 2014-07-26 15:33:20 +00:00
libauditd NO_MAN= has been deprecated in favor of MAN= for some time, go ahead 2014-04-13 05:21:56 +00:00
libbegemot
libblocksruntime
libbluetooth use .Mt to mark up email addresses consistently (part3) 2014-06-23 08:23:05 +00:00
libbsdstat libbsdstat: fix warnings, set WARNS 2014-03-11 01:10:44 +00:00
libbsm
libbsnmp Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
libbz2
libc From https://sourceware.org/ml/newlib/2014/msg00113.html 2014-08-14 04:20:13 +00:00
libc_nonshared Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
libc++ Import libc++ 3.4 release. This contains a lot of bugfixes, and some 2014-01-30 07:44:22 +00:00
libcalendar use .Mt to mark up email addresses consistently (part3) 2014-06-23 08:23:05 +00:00
libcam use .Mt to mark up email addresses consistently (part3) 2014-06-23 08:23:05 +00:00
libcapsicum use .Mt to mark up email addresses consistently (part3) 2014-06-23 08:23:05 +00:00
libcasper Update most userspace consumers of capability.h to use capsicum.h instead. 2014-03-16 11:04:44 +00:00
libcom_err
libcompat
libcompiler_rt Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
libcrypt Add LIBCRYPT to DPADD, remove LDFLAGS from LDADD, and sort the Makefile variables 2014-08-18 17:35:39 +00:00
libcuse Add missing DPADD to Makefile. 2014-08-17 06:28:57 +00:00
libcxxrt Add missing C++11 typeinfos to the libcxxrt version script. 2014-01-11 19:02:17 +00:00
libdevinfo use .Mt to mark up email addresses consistently (part3) 2014-06-23 08:23:05 +00:00
libdevstat use .Mt to mark up email addresses consistently (part3) 2014-06-23 08:23:05 +00:00
libdwarf Bump SHLIB_MAJOR for libdwarf as ABI/API has changed. 2014-01-21 21:11:07 +00:00
libedit Fix mismatch. 2014-07-23 15:12:17 +00:00
libefi use .Mt to mark up email addresses consistently (part3) 2014-06-23 08:23:05 +00:00
libelf Bump SHLIB_MAJOR for libelf. 2014-01-21 21:13:13 +00:00
libexecinfo Don't install private libexecinfo headers 2013-09-03 13:31:43 +00:00
libexpat use .Mt to mark up email addresses consistently (part3) 2014-06-23 08:23:05 +00:00
libfetch Add a comment to explain the EAGAIN is only there for POSIX compliance 2014-07-15 15:29:43 +00:00
libgeom use .Mt to mark up email addresses consistently (part3) 2014-06-23 08:23:05 +00:00
libgpib mdoc: minor Bl improvements. 2012-06-02 08:47:26 +00:00
libgssapi use .Mt to mark up email addresses consistently (part3) 2014-06-23 08:23:05 +00:00
libiconv Split the last gcc-specific flags off into CFLAGS.gcc. This also 2014-01-05 21:03:49 +00:00
libiconv_modules Replace malloc+memset with calloc. 2014-06-13 08:26:53 +00:00
libipsec Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
libjail Fix some memory allocation errors: 2012-10-04 19:07:05 +00:00
libkiconv Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
libkvm Remove ia64. 2014-07-07 00:27:09 +00:00
libldns Remove dead files. 2014-05-15 15:22:32 +00:00
liblzma
libmagic MFV r267843: update file/libmagic to 5.19. 2014-06-26 06:03:39 +00:00
libmandoc Merge mdocml v1.12.3 into head 2014-02-01 09:27:57 +00:00
libmd use .Mt to mark up email addresses consistently (part3) 2014-06-23 08:23:05 +00:00
libmemstat use .Mt to mark up email addresses consistently (part3) 2014-06-23 08:23:05 +00:00
libmilter Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
libmp Integrate lib/libmp into the build/kyua 2014-08-04 22:10:07 +00:00
libnandfs Import work done under project/nand (@235533) into head. 2012-05-17 10:11:18 +00:00
libnetbsd Add libnetbsd, a thin compatibility layer intended to allow a limited 2012-12-21 20:37:38 +00:00
libnetgraph use .Mt to mark up email addresses consistently (part3) 2014-06-23 08:23:05 +00:00
libngatm
libnv Integrate lib/libnv into the build/kyua 2014-08-05 18:41:27 +00:00
libohash Make libohash a proper internallib instead of hidding it in m4 2014-08-06 22:46:15 +00:00
libopie Bump version because challenge buffer size changed 2014-08-14 04:42:09 +00:00
libpam According to opie code and even direct mention in opie(4) challenge buffer 2014-08-12 13:28:46 +00:00
libpcap Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
libpjdlog Move my simple logging API to a separate library. It is now already used 2013-12-01 09:41:06 +00:00
libpmc Update the list of cross references to include the more modern set of 2014-07-28 10:17:41 +00:00
libproc In r268463, I misplaced a return in demangle(), causing the function to 2014-08-09 12:25:06 +00:00
libprocstat use .Mt to mark up email addresses consistently (part3) 2014-06-23 08:23:05 +00:00
libradius Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
librpcsec_gss use .Mt to mark up email addresses consistently (part3) 2014-06-23 08:23:05 +00:00
librpcsvc Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
librt Convert this piece of code to use C11 atomics. 2013-06-30 08:59:33 +00:00
librtld_db use .Mt to mark up email addresses consistently (part3) 2014-06-23 08:23:05 +00:00
libsbuf Unbreak the ABI by reverting r268494 until the compat shims are provided 2014-07-28 07:20:22 +00:00
libsdp use .Mt to mark up email addresses consistently (part3) 2014-06-23 08:23:05 +00:00
libsm Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
libsmb Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
libsmdb
libsmutil
libstand Add pkgfs, a file system implementation for reading files out of a 2014-07-31 23:25:13 +00:00
libstdbuf Remove WARNS=6 lines. 2012-10-18 15:39:29 +00:00
libstdthreads use .Mt to mark up email addresses consistently (part3) 2014-06-23 08:23:05 +00:00
libtacplus mdoc sweep. 2013-05-12 22:22:12 +00:00
libtelnet When building picobsd, define WITHOUT_OPENSSL and WITHOUT_KERBEROS and 2014-06-06 04:09:07 +00:00
libthr Add a knob LIBPTHREAD_BIGSTACK_MAIN, which instructs libthr to leave 2014-08-13 05:53:41 +00:00
libthread_db Remove ia64. 2014-07-07 00:27:09 +00:00
libucl Update libucl to the 2014-07-16 snapshot 2014-07-18 06:58:01 +00:00
libufs use .Mt to mark up email addresses consistently (part3) 2014-06-23 08:23:05 +00:00
libugidfw
libulog Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
libunbound Clean up the libunbound build to avoid accidentally regenerating the 2014-07-19 18:38:48 +00:00
libusb Add more USB class codes. 2014-08-18 14:23:07 +00:00
libusbhid Restore handling of the third argument (id) of hid_start_parse(), same as 2012-09-20 18:56:27 +00:00
libutil Integrate lib/libutil into the build/kyua 2014-08-13 04:56:27 +00:00
libvgl use .Mt to mark up email addresses consistently (part3) 2014-06-23 08:23:05 +00:00
libvmmapi Fix fault injection in bhyve. 2014-07-24 01:38:11 +00:00
libwrap Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
liby
libypclnt
libz Fix path for zlib examples, this have no runtime effect and was 2014-06-11 20:48:40 +00:00
msun From https://sourceware.org/ml/newlib/2014/msg00113.html 2014-08-14 04:20:13 +00:00
ncurses Remove ia64. 2014-07-07 00:27:09 +00:00
tests Install category Kyuafiles from their category directories. 2013-11-08 14:29:06 +00:00
Makefile Make libohash a proper internallib instead of hidding it in m4 2014-08-06 22:46:15 +00:00
Makefile.inc