[PATCH] elf: Include <sysdep.h> in elf/dl-debug-symbols.S

Szabolcs Nagy szabolcs.nagy@arm.com
Mon Sep 20 13:45:55 GMT 2021


The 09/20/2021 13:17, Florian Weimer via Libc-alpha wrote:
> This is necessary to generate assembler marker sections on some
> targets.

thanks.

Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>

> 
> ---
> Built with build-many-glibcs.py.
> 
>  elf/dl-debug-symbols.S | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/elf/dl-debug-symbols.S b/elf/dl-debug-symbols.S
> index b7e9f5d947..28456ab1f2 100644
> --- a/elf/dl-debug-symbols.S
> +++ b/elf/dl-debug-symbols.S
> @@ -18,6 +18,10 @@
>     <https://www.gnu.org/licenses/>.  */
>  
>  #include <rtld-sizes.h>
> +#include <sysdep.h>
> +
> +/* Some targets define a macro to denote the zero register.  */
> +#undef zero
>  
>  /* Define 2 symbols, _r_debug_extended and _r_debug, which is an alias
>     of _r_debug_extended, but with the size of struct r_debug.  */
> 


More information about the Libc-alpha mailing list