Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/libexec/ld.elf_so/arch Make the reloc tables const.
details: https://anonhg.NetBSD.org/src/rev/b0c91c6b8d88
branches: trunk
changeset: 536088:b0c91c6b8d88
user: mycroft <mycroft%NetBSD.org@localhost>
date: Fri Sep 06 15:32:56 2002 +0000
description:
Make the reloc tables const.
diffstat:
libexec/ld.elf_so/arch/sparc/mdreloc.c | 6 +++---
libexec/ld.elf_so/arch/sparc64/mdreloc.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (54 lines):
diff -r 26a4ef8598a4 -r b0c91c6b8d88 libexec/ld.elf_so/arch/sparc/mdreloc.c
--- a/libexec/ld.elf_so/arch/sparc/mdreloc.c Fri Sep 06 15:31:19 2002 +0000
+++ b/libexec/ld.elf_so/arch/sparc/mdreloc.c Fri Sep 06 15:32:56 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mdreloc.c,v 1.20 2002/09/06 15:17:58 mycroft Exp $ */
+/* $NetBSD: mdreloc.c,v 1.21 2002/09/06 15:32:56 mycroft Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
#define _RF_B 0x08000000 /* Load address relative */
#define _RF_SZ(s) (((s) & 0xff) << 8) /* memory target size */
#define _RF_RS(s) ( (s) & 0xff) /* right shift */
-static int reloc_target_flags[] = {
+static const int reloc_target_flags[] = {
0, /* NONE */
_RF_S|_RF_A| _RF_SZ(8) | _RF_RS(0), /* RELOC_8 */
_RF_S|_RF_A| _RF_SZ(16) | _RF_RS(0), /* RELOC_16 */
@@ -135,7 +135,7 @@
#define RELOC_TARGET_SIZE(t) ((reloc_target_flags[t] >> 8) & 0xff)
#define RELOC_VALUE_RIGHTSHIFT(t) (reloc_target_flags[t] & 0xff)
-static int reloc_target_bitmask[] = {
+static const int reloc_target_bitmask[] = {
#define _BM(x) (~(-(1ULL << (x))))
0, /* NONE */
_BM(8), _BM(16), _BM(32), /* RELOC_8, _16, _32 */
diff -r 26a4ef8598a4 -r b0c91c6b8d88 libexec/ld.elf_so/arch/sparc64/mdreloc.c
--- a/libexec/ld.elf_so/arch/sparc64/mdreloc.c Fri Sep 06 15:31:19 2002 +0000
+++ b/libexec/ld.elf_so/arch/sparc64/mdreloc.c Fri Sep 06 15:32:56 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mdreloc.c,v 1.15 2002/09/06 15:17:59 mycroft Exp $ */
+/* $NetBSD: mdreloc.c,v 1.16 2002/09/06 15:32:57 mycroft Exp $ */
/*-
* Copyright (c) 2000 Eduardo Horvath.
@@ -70,7 +70,7 @@
#define _RF_U 0x04000000 /* Unaligned */
#define _RF_SZ(s) (((s) & 0xff) << 8) /* memory target size */
#define _RF_RS(s) ( (s) & 0xff) /* right shift */
-static int reloc_target_flags[] = {
+static const int reloc_target_flags[] = {
0, /* NONE */
_RF_S|_RF_A| _RF_SZ(8) | _RF_RS(0), /* RELOC_8 */
_RF_S|_RF_A| _RF_SZ(16) | _RF_RS(0), /* RELOC_16 */
@@ -154,7 +154,7 @@
#define RELOC_TARGET_SIZE(t) ((reloc_target_flags[t] >> 8) & 0xff)
#define RELOC_VALUE_RIGHTSHIFT(t) (reloc_target_flags[t] & 0xff)
-static long reloc_target_bitmask[] = {
+static const long reloc_target_bitmask[] = {
#define _BM(x) (~(-(1ULL << (x))))
0, /* NONE */
_BM(8), _BM(16), _BM(32), /* RELOC_8, _16, _32 */
Home |
Main Index |
Thread Index |
Old Index