This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix arm warning


Building for ARM I got lots of these warnings:
../glibc-ports-2.15/sysdeps/unix/sysv/linux/arm/ldsodefs.h:41:0: warning: 
"MORE_ELF_HEADER_DATA" redefined [enabled by default]
../sysdeps/unix/sysv/linux/ldsodefs.h:64:0: note: this is the location of 
the previous definition

This is still in git head. Let's undef it like we undef the other 
variables.

Ok to commit?
Andreas

2012-04-16  Andreas Jaeger  <aj@suse.de>

	* sysdeps/unix/sysv/linux/arm/ldsodefs.h: Undefine
	MORE_ELF_HEADER_DATA to avoid warnings about redefinition.

diff --git a/sysdeps/unix/sysv/linux/arm/ldsodefs.h 
b/sysdeps/unix/sysv/linux/arm/ldsodefs.h
index 839dc18..6966f8a 100644
--- a/sysdeps/unix/sysv/linux/arm/ldsodefs.h
+++ b/sysdeps/unix/sysv/linux/arm/ldsodefs.h
@@ -1,5 +1,5 @@
 /* Run-time dynamic linker data structures for loaded ELF shared objects.
-   Copyright (C) 2010 Free Software Foundation, Inc.
+   Copyright (C) 2010, 2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -23,6 +23,7 @@
 
 #undef VALID_ELF_HEADER
 #undef VALID_ELF_OSABI
+#undef MORE_ELF_HEADER_DATA
 
 #ifdef __ARM_EABI__
 #define EXTRA_OSABI ELFOSABI_ARM_AEABI

-- 
 Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
  SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
   GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
    GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]