diff mbox series

[v5,5/5] Remove set-hooks.h from generic includes

Message ID 20230306191642.347001-6-adhemerval.zanella@linaro.org
State Accepted
Commit 743963cad7cf12563f67368f9c5d279adc796d67
Headers show
Series [v5,1/5] Move libc_freeres_ptrs and libc_subfreeres to hidden/weak functions | expand

Commit Message

Adhemerval Zanella Netto March 6, 2023, 7:16 p.m. UTC
From: Adhemerval Zanella Netto <adhemerval.zanella@linaro.org>

The hooks mechanism uses symbol sets for running lists of functions,
which requires either extra linker directives to provide any hardening
(such as RELRO) or additional code (such as pointer obfuscation via
mangling with random value).

Currently only hurd uses set-hooks.h so we remove it from the generic
includes.  The generic implementation uses direct function calls which
provide hardening and good code generation, observability and debugging
without the need for extra linking options or special code handling.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
---
 {include => hurd}/set-hooks.h | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
 rename {include => hurd}/set-hooks.h (100%)
diff mbox series

Patch

diff --git a/include/set-hooks.h b/hurd/set-hooks.h
similarity index 100%
rename from include/set-hooks.h
rename to hurd/set-hooks.h