From 502eebd33964a95cb8d9aa0dfed981679c30f7da Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Fri, 19 Aug 2011 10:21:10 -0700 Subject: [PATCH] Fix const warning in elf_machine_ssym usage. Reported by: Pierre Muller [#237 state:resolved] --- modules/objfmts/elf/elf-machine.h | 2 +- modules/objfmts/elf/elf-x86-x86.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/objfmts/elf/elf-machine.h b/modules/objfmts/elf/elf-machine.h index 0d8933b1..51a4ca78 100644 --- a/modules/objfmts/elf/elf-machine.h +++ b/modules/objfmts/elf/elf-machine.h @@ -99,7 +99,7 @@ struct elf_machine_handler { func_write_reloc write_reloc; func_write_proghead write_proghead; - const elf_machine_ssym *ssyms; /* array of "special" syms */ + elf_machine_ssym *ssyms; /* array of "special" syms */ const size_t num_ssyms; /* size of array */ const int bits; /* usually 32 or 64 */ diff --git a/modules/objfmts/elf/elf-x86-x86.c b/modules/objfmts/elf/elf-x86-x86.c index 3c5157fe..6e523a6d 100644 --- a/modules/objfmts/elf/elf-x86-x86.c +++ b/modules/objfmts/elf/elf-x86-x86.c @@ -33,7 +33,7 @@ #include "elf.h" #include "elf-machine.h" -static const elf_machine_ssym elf_x86_x86_ssyms[] = { +static elf_machine_ssym elf_x86_x86_ssyms[] = { {"plt", ELF_SSYM_SYM_RELATIVE, R_386_PLT32, 32}, {"gotoff", 0, R_386_GOTOFF, 32}, /* special one for NASM */