[COMMITTED] Fix Wundef warning for ELF_MACHINE_NO_REL on i386
Siddhesh Poyarekar
siddhesh@redhat.com
Tue Jul 8 11:06:00 GMT 2014
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
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20140708/1685378e/attachment.sig>
More information about the Libc-alpha
mailing list