From patchwork Tue Jul 8 11:05:53 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Siddhesh Poyarekar X-Patchwork-Id: 1941 Received: (qmail 9497 invoked by alias); 8 Jul 2014 11:06:03 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 9319 invoked by uid 89); 8 Jul 2014 11:06:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.8 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Date: Tue, 8 Jul 2014 16:35:53 +0530 From: Siddhesh Poyarekar To: libc-alpha@sourceware.org Subject: [COMMITTED] Fix Wundef warning for ELF_MACHINE_NO_REL on i386 Message-ID: <20140708110552.GF609@spoyarek.pnq.redhat.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.22.1-rc1 (2013-10-16) 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 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 + * 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