diff mbox

[COMMITTED] iconvdata: Add missing const to lookup table definitions

Message ID 5614DFCF.30107@redhat.com
State New
Headers show

Commit Message

Florian Weimer Oct. 7, 2015, 9:03 a.m. UTC
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
diff mbox

Patch

From 7d6f9f74c8292d63cc3b574eb84919c54946e679 Mon Sep 17 00:00:00 2001
Message-Id: <7d6f9f74c8292d63cc3b574eb84919c54946e679.1444208435.git.fweimer@redhat.com>
From: Florian Weimer <fweimer@redhat.com>
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  <fweimer@redhat.com>
+
+	* iconvdata/cp737.h (from_idx): Add const.
+	* iconvdata/cp775.h (from_idx): Likewise.
+
 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
 
 	* 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