Message ID | 20221227211145.3765256-5-adhemerval.zanella@linaro.org |
---|---|
State | New |
Headers | show |
Series | Remove --with-default-link option | expand |
On 12/27/22 16:11, Adhemerval Zanella via Libc-alpha wrote: > The hooks mechanism uses symbol sets for running lists of functions, > which requires either extra linker directives to provide any hardening > (such RELRO) or additional code (such as pointer obfuscation via s/such/such as/g > mangling with random value). Please post v4. Reviewed-by: Carlos O'Donell <carlos@redhat.com> > > Currently only hurd uses it and there multiple examples where using > direct function call provides both hardening and good code generation > without the need to extra link or code handling. Suggest: 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. > --- > {include => hurd}/set-hooks.h | 0 > 1 file changed, 0 insertions(+), 0 deletions(-) > rename {include => hurd}/set-hooks.h (100%) > > 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
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