diff options
| author | Johannes Berg <johannes@sipsolutions.net> | 2026-07-27 13:55:15 -0600 |
|---|---|---|
| committer | Kees Cook <kees@kernel.org> | 2026-09-23 20:41:13 -0700 |
| commit | 760f96b7f54beb8dc6f85d97ac7854fddba86835 (patch) | |
| tree | 06412521baa4506c8731b6d7c76aefba97cf320d /tools/perf/python/stackcollapse.py | |
| parent | 6e72cefa7a47f33fac62a69b22e02b379b7a754b (diff) | |
| download | linux-next-760f96b7f54beb8dc6f85d97ac7854fddba86835.tar.gz linux-next-760f96b7f54beb8dc6f85d97ac7854fddba86835.zip | |
um: fix CONFIG_GCOV for built-in code
With contemporary toolchains, CONFIG_GCOV doesn't work because
gcov now relies on both init and exit handlers, but those are
discarded from the binary. Fix the linker scripts to keep them
instead, so that CONFIG_GCOV can work again.
Note that this does not make it work in modules yet, since we
don't call their exit handlers.
Note: the .init_array.* wildcard and the RUNTIME_DISCARD_EXIT
define are already present in this tree; only the matching
.fini_array.* wildcard remained to be added.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Tested-by: Mariia Nikitash <nikitash.mariiaw@gmail.com>
Link: https://patch.msgid.link/20260727195515.2306731-1-alex.hung@amd.com
Signed-off-by: Kees Cook <kees@kernel.org>
Diffstat (limited to 'tools/perf/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
