---
include/dwarf_i.h | 2 +-
src/ppc32/Gglobal.c | 2 +-
src/ppc64/Gglobal.c | 2 +-
src/x86/Gglobal.c | 2 +-
src/x86_64/Gglobal.c | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/include/dwarf_i.h b/include/dwarf_i.h
index 77f52fe..0e72845 100644
--- a/include/dwarf_i.h
+++ b/include/dwarf_i.h
@@ -17,7 +17,7 @@
#ifndef dwarf_to_unw_regnum
# define dwarf_to_unw_regnum_map UNW_OBJ
(dwarf_to_unw_regnum_map)
-extern uint8_t dwarf_to_unw_regnum_map[DWARF_REGNUM_MAP_LENGTH];
+extern const uint8_t dwarf_to_unw_regnum_map[DWARF_REGNUM_MAP_LENGTH];
/* REG is evaluated multiple times; it better be side-effects free! */
# define dwarf_to_unw_regnum(reg) \
(((reg) <= DWARF_REGNUM_MAP_LENGTH) ? dwarf_to_unw_regnum_map[reg] : 0)
diff --git a/src/ppc32/Gglobal.c b/src/ppc32/Gglobal.c
index 3656666..6af9772 100644
--- a/src/ppc32/Gglobal.c
+++ b/src/ppc32/Gglobal.c
@@ -33,7 +33,7 @@ HIDDEN int tdep_init_done;
/* The API register numbers are exactly the same as the .eh_frame
registers, for now at least. */
-HIDDEN uint8_t dwarf_to_unw_regnum_map[DWARF_REGNUM_MAP_LENGTH] =
+HIDDEN const uint8_t dwarf_to_unw_regnum_map[DWARF_REGNUM_MAP_LENGTH] =
{
[UNW_PPC32_R0]=UNW_PPC32_R0,
[UNW_PPC32_R1]=UNW_PPC32_R1,
diff --git a/src/ppc64/Gglobal.c b/src/ppc64/Gglobal.c
index c192f62..7c5dfc1 100644
--- a/src/ppc64/Gglobal.c
+++ b/src/ppc64/Gglobal.c
@@ -33,7 +33,7 @@ HIDDEN int tdep_init_done;
/* The API register numbers are exactly the same as the .eh_frame
registers, for now at least. */
-HIDDEN uint8_t dwarf_to_unw_regnum_map[DWARF_REGNUM_MAP_LENGTH] =
+HIDDEN const uint8_t dwarf_to_unw_regnum_map[DWARF_REGNUM_MAP_LENGTH] =
{
[UNW_PPC64_R0]=UNW_PPC64_R0,
[UNW_PPC64_R1]=UNW_PPC64_R1,
diff --git a/src/x86/Gglobal.c b/src/x86/Gglobal.c
index d7f5326..24b388a 100644
--- a/src/x86/Gglobal.c
+++ b/src/x86/Gglobal.c
@@ -31,7 +31,7 @@ HIDDEN int tdep_init_done;
/* See comments for svr4_dbx_register_map[] in gcc/config/i386/i386.c. */
-HIDDEN uint8_t dwarf_to_unw_regnum_map[19] =
+HIDDEN const uint8_t dwarf_to_unw_regnum_map[19] =
{
UNW_X86_EAX, UNW_X86_ECX, UNW_X86_EDX, UNW_X86_EBX,
UNW_X86_ESP, UNW_X86_EBP, UNW_X86_ESI, UNW_X86_EDI,
diff --git a/src/x86_64/Gglobal.c b/src/x86_64/Gglobal.c
index 7c66b6d..37fe6b0 100644
--- a/src/x86_64/Gglobal.c
+++ b/src/x86_64/Gglobal.c
@@ -34,7 +34,7 @@ HIDDEN int tdep_init_done;
/* See comments for svr4_dbx_register_map[] in gcc/config/i386/i386.c. */
-HIDDEN uint8_t dwarf_to_unw_regnum_map[DWARF_NUM_PRESERVED_REGS] =
+HIDDEN const uint8_t dwarf_to_unw_regnum_map[DWARF_NUM_PRESERVED_REGS] =
{
UNW_X86_64_RAX,
UNW_X86_64_RDX,
--
1.7.9.5
_______________________________________________
Libunwind-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/libunwind-devel