From patchwork Wed Oct 7 09:03:11 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 527171 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id BFD76140D71 for ; Wed, 7 Oct 2015 20:03:23 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b=BRvDOGiP; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:from:subject:message-id:date:mime-version :content-type; q=dns; s=default; b=tNJsSTqQwJEInb8277Eou56Yrspu7 A1XZ0RAd0hZipVDeaqO5dMNjfW+Sb4wgoudEnFz8rlS4EwGTWFFmrKudqLkLcj32 2Kq8QtRlCHrrEmiV3wx6jY4Ns8M3MEhh5w5IRI5qAeT4/lqCemECh6Zx9Vtq+Um7 M9qKN69p+b+Sew= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:from:subject:message-id:date:mime-version :content-type; s=default; bh=xkU+Hm9g6RDln6TvV7qbg3B/qZk=; b=BRv DOGiPD+JrsxAK1+FQsZ6C+nEn4CAjkJu8AIxQ/gyy93m+eWIWZvPTt7Ebj/QETED Jjw0Lo4XPLy4wYnyDQ9JS34nQHJ8Kzykt8ED83ZaBE16KyfrkbWKJJv1qFB48hE5 vx7KdUd/0y/blEXo1RRpYclu1vMJnCR5Ahvp+VJU= Received: (qmail 20560 invoked by alias); 7 Oct 2015 09:03:17 -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 20543 invoked by uid 89); 7 Oct 2015 09:03:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL, BAYES_00, SPF_HELO_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com To: GNU C Library From: Florian Weimer Subject: [PATCH COMMITTED] iconvdata: Add missing const to lookup table definitions Message-ID: <5614DFCF.30107@redhat.com> Date: Wed, 7 Oct 2015 11:03:11 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 I verified that this changes removes all the remaining .data segments from the gconv modules using: for x in iconvdata/*.so ; do objdump -s $x | grep --label=$x '^Contents.*\.data:' done Florian From 7d6f9f74c8292d63cc3b574eb84919c54946e679 Mon Sep 17 00:00:00 2001 Message-Id: <7d6f9f74c8292d63cc3b574eb84919c54946e679.1444208435.git.fweimer@redhat.com> From: Florian Weimer Date: Wed, 7 Oct 2015 10:48:59 +0200 Subject: [PATCH] iconvdata: Add missing const to lookup table definitions To: libc-alpha@sourceware.org --- ChangeLog | 5 +++++ iconvdata/cp737.h | 2 +- iconvdata/cp775.h | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6dfe825..e1761b9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2015-10-07 Florian Weimer + + * iconvdata/cp737.h (from_idx): Add const. + * iconvdata/cp775.h (from_idx): Likewise. + 2015-10-07 Joseph Myers * sysdeps/mips/mips64/Implies: Use ieee754/dbl-64/wordsize-64. diff --git a/iconvdata/cp737.h b/iconvdata/cp737.h index 6a2265a..a39b71d 100644 --- a/iconvdata/cp737.h +++ b/iconvdata/cp737.h @@ -294,7 +294,7 @@ static const uint32_t to_ucs4[256] = where gap.pl is the file in this directory. */ -static struct gap from_idx[] = +static const struct gap from_idx[] = { { .start = 0x0000, .end = 0x007f, .idx = 0 }, { .start = 0x00a0, .end = 0x00a0, .idx = -32 }, diff --git a/iconvdata/cp775.h b/iconvdata/cp775.h index 97f97f5..1553124 100644 --- a/iconvdata/cp775.h +++ b/iconvdata/cp775.h @@ -294,7 +294,7 @@ static const uint32_t to_ucs4[256] = where gap.pl is the file in this directory. */ -static struct gap from_idx[] = +static const struct gap from_idx[] = { { .start = 0x0000, .end = 0x007f, .idx = 0 }, { .start = 0x00a0, .end = 0x00c9, .idx = -32 }, -- 2.4.3