ARM: Define ELF_MACHINE_NO_REL
diff mbox

Message ID 1404394000-13429-1-git-send-email-will.newton@linaro.org
State New
Headers show

Commit Message

Will Newton July 3, 2014, 1:26 p.m. UTC
Fix a -Wundef warning on ARM.

ChangeLog:

2014-07-03  Will Newton  <will.newton@linaro.org>

	* sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_REL): Define.
---
 sysdeps/arm/dl-machine.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Siddhesh Poyarekar July 3, 2014, 4:09 p.m. UTC | #1
Looks good to me.

Siddhesh

On Thu, Jul 03, 2014 at 02:26:40PM +0100, Will Newton wrote:
> Fix a -Wundef warning on ARM.
> 
> ChangeLog:
> 
> 2014-07-03  Will Newton  <will.newton@linaro.org>
> 
> 	* sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_REL): Define.
> ---
>  sysdeps/arm/dl-machine.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/sysdeps/arm/dl-machine.h b/sysdeps/arm/dl-machine.h
> index c5ffc93..d6b0c52 100644
> --- a/sysdeps/arm/dl-machine.h
> +++ b/sysdeps/arm/dl-machine.h
> @@ -279,6 +279,7 @@ elf_machine_plt_value (struct link_map *map, const Elf32_Rel *reloc,
>  /* ARM never uses Elf32_Rela relocations for the dynamic linker.
>     Prelinked libraries may use Elf32_Rela though.  */
>  #define ELF_MACHINE_NO_RELA defined RTLD_BOOTSTRAP
> +#define ELF_MACHINE_NO_REL 0
>  
>  /* Names of the architecture-specific auditing callback functions.  */
>  #define ARCH_LA_PLTENTER arm_gnu_pltenter
> -- 
> 1.9.3
>
Roland McGrath July 3, 2014, 7:22 p.m. UTC | #2
That looks fine and for these I don't think machine maintainer approval is necessary.

Patch
diff mbox

diff --git a/sysdeps/arm/dl-machine.h b/sysdeps/arm/dl-machine.h
index c5ffc93..d6b0c52 100644
--- a/sysdeps/arm/dl-machine.h
+++ b/sysdeps/arm/dl-machine.h
@@ -279,6 +279,7 @@  elf_machine_plt_value (struct link_map *map, const Elf32_Rel *reloc,
 /* ARM never uses Elf32_Rela relocations for the dynamic linker.
    Prelinked libraries may use Elf32_Rela though.  */
 #define ELF_MACHINE_NO_RELA defined RTLD_BOOTSTRAP
+#define ELF_MACHINE_NO_REL 0
 
 /* Names of the architecture-specific auditing callback functions.  */
 #define ARCH_LA_PLTENTER arm_gnu_pltenter