Remove set-hooks.h from generic includes
commit743963cad7cf12563f67368f9c5d279adc796d67
authorAdhemerval Zanella Netto <adhemerval.zanella@linaro.org>
Tue, 27 Dec 2022 21:11:45 +0000 (27 18:11 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 27 Mar 2023 16:57:55 +0000 (27 13:57 -0300)
tree0539ac4c5031f1c1e613becec26e8ed9108739f6
parent91fc5b99907655bc04cf23247b5fe0ae0ca6e9eb
Remove set-hooks.h from generic includes

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>
hurd/set-hooks.h [moved from include/set-hooks.h with 100% similarity]