opnsense-src/gnu/usr.bin/gdb/kgdb
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
..
kgdb.1 kgdb enhancements! 2013-02-19 02:09:18 +00:00
kgdb.h In kthr.c, obtain the address of the PCB for threads that were running 2013-02-17 02:15:19 +00:00
kld.c KGDB: Accept KLD symbol files with the ".symbols" extension. 2013-03-28 17:07:02 +00:00
kthr.c In kthr.c, obtain the address of the PCB for threads that were running 2013-02-17 02:15:19 +00:00
main.c When building a cross kgdb, link against the appropriate cross libkvm. 2013-12-28 23:31:22 +00:00
Makefile Revert r267233 for now. PIE support needs to be reworked. 2014-08-19 15:04:32 +00:00
trgt.c When building a cross-kgdb, suppress the registration of the 2014-01-13 19:08:25 +00:00
trgt_amd64.c In kthr.c, obtain the address of the PCB for threads that were running 2013-02-17 02:15:19 +00:00
trgt_arm.c add support for building a cross-gdb for ARM... This isn't hooked up 2014-02-12 02:08:42 +00:00
trgt_i386.c In kthr.c, obtain the address of the PCB for threads that were running 2013-02-17 02:15:19 +00:00
trgt_mips.c Fix mips64 and mipsn32 bilds by using proper register names. 2013-04-25 04:53:01 +00:00
trgt_powerpc.c In kthr.c, obtain the address of the PCB for threads that were running 2013-02-17 02:15:19 +00:00
trgt_powerpc64.c In kthr.c, obtain the address of the PCB for threads that were running 2013-02-17 02:15:19 +00:00
trgt_sparc64.c In kthr.c, obtain the address of the PCB for threads that were running 2013-02-17 02:15:19 +00:00