2021-11-24 16:04:02 +00:00
|
|
|
---
|
|
|
|
inspections:
|
|
|
|
# xml files shipped are GDB register set descriptions which can only be
|
|
|
|
# verified with gdb/features/gdb-target.dtd, provided in GDB sources.
|
|
|
|
xml: off
|
|
|
|
|
|
|
|
annocheck:
|
2021-11-25 14:17:24 +00:00
|
|
|
# Currently lto is disabled globally for valgrind, it should be able
|
|
|
|
# to be enabled through upstream configure --enable-lto in the future.
|
2022-01-26 13:59:08 +00:00
|
|
|
# Note that all (default hardened) flags need to be repeated here, if
|
2021-11-25 14:17:24 +00:00
|
|
|
# you override some config flags it will completely overwrite the
|
|
|
|
# defaults (--ignore-unknown --verbose).
|
2022-01-26 13:59:08 +00:00
|
|
|
- hardened: --ignore-unknown --verbose --skip-lto
|
2021-11-24 16:04:02 +00:00
|
|
|
# Ignore files built specially without hardening flags
|
|
|
|
ignore:
|
|
|
|
# Valgrind tools themselves (memcheck, cachegrind, massif, etc) are
|
|
|
|
# statically linked and need to be built without PIE to be loaded at
|
|
|
|
# a fixed address in the program's address space.
|
|
|
|
# Also need to be built without stack protection so the generated
|
|
|
|
# code (valgrind VEX jit) interacts correctly with their own static code.
|
|
|
|
- /usr/libexec/valgrind/*-*-linux
|
|
|
|
# Wrappers for various string and mem functions such as memcpy, strlen, etc
|
|
|
|
# that valgrind uses to keep track of memory usage. Hardening settings such
|
|
|
|
# as optimizations need to be disabled so they don't interfere or break
|
|
|
|
# the checks that valgrind does internally.
|
|
|
|
- /usr/libexec/valgrind/vgpreload*so
|