diff --git a/src/ptrace/_UPT_internal.h b/src/ptrace/_UPT_internal.h index 27149d36..2283dc41 100644 --- a/src/ptrace/_UPT_internal.h +++ b/src/ptrace/_UPT_internal.h @@ -54,6 +54,6 @@ struct UPT_info struct elf_dyn_info edi; }; -extern int _UPT_reg_offset[UNW_REG_LAST + 1]; +extern const int _UPT_reg_offset[UNW_REG_LAST + 1]; #endif /* _UPT_internal_h */ diff --git a/src/ptrace/_UPT_reg_offset.c b/src/ptrace/_UPT_reg_offset.c index a59c852b..765f7d56 100644 --- a/src/ptrace/_UPT_reg_offset.c +++ b/src/ptrace/_UPT_reg_offset.c @@ -31,7 +31,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ # include #endif -int _UPT_reg_offset[UNW_REG_LAST + 1] = +const int _UPT_reg_offset[UNW_REG_LAST + 1] = { #ifdef HAVE_ASM_PTRACE_OFFSETS_H # ifndef PT_AR_CSD