On 1/9/2018 09:02, Victor Wren wrote:
I'm stumped as to what switch enables stack validation and the ORC
unwinder that depends on libelf. The only way I've seen online to
disable stack validation is to manually edit the .config file.
Looking through the Makefiles, if I am reading it at all correctly,
X86_64 automatically enables "CONFIG_HAVE_STACK_VALIDATION" which
enables "CONFIG_STACK_VALIDATION" and the selection of
CONFIG_UNWINDER_ORC automatically forces "CONFIG_STACK_VALIDATION" to be on.
from arch/X86/Kconfig.debug:
"config UNWINDER_ORC
bool "ORC unwinder"
depends on X86_64
select STACK_VALIDATION"
So that's where CONFIG_STACK_VALIDATION gets turned on. You have to
either pick the ORC unwinder, or the slower, bulkier
CONFIG_UNWINDER_FRAME_POINTER, that forces on CONFIG_FRAME_POINTER, but
allows for building without libelf (I think). I still can't figure out
if it's possible to disable all types of stack validation on x86_64.
Seems that collecting debugging info on 64BIT is not optional?
—Victor Wren
--
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page