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: 8955 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