mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-22 07:37:38 +01:00
Set `_UPT_reg_offset' read only
We do not modify `_UPT_reg_offset', so let's set it `const'. Given that the array is exported, it's technically possible that some library user is actually modifying the content, but does not seem really all that likely.
This commit is contained in:
parent
fca254a9b4
commit
a9b5b10f23
2 changed files with 2 additions and 2 deletions
|
@ -54,6 +54,6 @@ struct UPT_info
|
||||||
struct elf_dyn_info edi;
|
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 */
|
#endif /* _UPT_internal_h */
|
||||||
|
|
|
@ -31,7 +31,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||||
# include <asm/ptrace_offsets.h>
|
# include <asm/ptrace_offsets.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int _UPT_reg_offset[UNW_REG_LAST + 1] =
|
const int _UPT_reg_offset[UNW_REG_LAST + 1] =
|
||||||
{
|
{
|
||||||
#ifdef HAVE_ASM_PTRACE_OFFSETS_H
|
#ifdef HAVE_ASM_PTRACE_OFFSETS_H
|
||||||
# ifndef PT_AR_CSD
|
# ifndef PT_AR_CSD
|
||||||
|
|
Loading…
Reference in a new issue