freebsd-dev/gnu/usr.bin/binutils
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
..
addr2line Revert r267233 for now. PIE support needs to be reworked. 2014-08-19 15:04:32 +00:00
as Remove ia64. 2014-07-07 00:27:09 +00:00
doc Merge binutils 2.17.50 to head. This brings a number of improvements to 2011-02-18 20:54:12 +00:00
ld Remove ia64. 2014-07-07 00:27:09 +00:00
libbfd Remove ia64. 2014-07-07 00:27:09 +00:00
libbinutils Define YY_NO_INPUT when building libbinutils, to prevent warnings about 2011-12-16 22:19:13 +00:00
libiberty Update Makefile and config.h for libiberty. 2010-11-01 19:40:22 +00:00
libopcodes Remove ia64. 2014-07-07 00:27:09 +00:00
nm Revert r267233 for now. PIE support needs to be reworked. 2014-08-19 15:04:32 +00:00
objcopy Revert r267233 for now. PIE support needs to be reworked. 2014-08-19 15:04:32 +00:00
objdump Revert r267233 for now. PIE support needs to be reworked. 2014-08-19 15:04:32 +00:00
readelf Revert r267233 for now. PIE support needs to be reworked. 2014-08-19 15:04:32 +00:00
size Revert r267233 for now. PIE support needs to be reworked. 2014-08-19 15:04:32 +00:00
strings Revert r267233 for now. PIE support needs to be reworked. 2014-08-19 15:04:32 +00:00
strip Revert r267233 for now. PIE support needs to be reworked. 2014-08-19 15:04:32 +00:00
Makefile Remove long-unused GNU ar and ranlib 2013-10-01 17:40:56 +00:00
Makefile.inc Remove another reference to alpha... 2010-02-03 02:39:08 +00:00
Makefile.inc0 Add a new ARM TARGET_ARCH, armv6hf. This is considered experimental. 2014-03-23 12:49:25 +00:00
update.sh