[COMMITTED] Fix Wundef warning for ELF_MACHINE_NO_REL on i386

Message ID 20140708110552.GF609@spoyarek.pnq.redhat.com
State Committed
Headers

Commit Message

Siddhesh Poyarekar July 8, 2014, 11:05 a.m. UTC
  Hi,

I'll be committing a similar fix to Will's[1] for i386.  Verified that
the generated code is identical.

Siddhesh

[1] http://patchwork.sourceware.org/patch/1875/

commit 9e2eeafc5e9fbbf77bb8270f293840a5bbf59b32
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
Date:   Tue Jul 8 16:19:55 2014 +0530

    Fix Wundef warning for ELF_MACHINE_NO_REL on i386
  

Patch

diff --git a/ChangeLog b/ChangeLog
index 5f31a3d..5786f45 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@ 
 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
 
+	* sysdeps/i386/dl-machine.h: Define ELF_MACHINE_NO_REL.
+
 	* localedata/tests-mbwc/dat_iswalnum.c [SHOJI_IS_RIGHT]:
 	Remove code.
 	* localedata/tests-mbwc/dat_iswalpha.c [SHOJI_IS_RIGHT]:
diff --git a/sysdeps/i386/dl-machine.h b/sysdeps/i386/dl-machine.h
index 368bee2..a3a632c 100644
--- a/sysdeps/i386/dl-machine.h
+++ b/sysdeps/i386/dl-machine.h
@@ -292,6 +292,7 @@  elf_machine_plt_value (struct link_map *map, const Elf32_Rel *reloc,
 /* The i386 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
 
 #ifdef RESOLVE_MAP