Fix const warning in elf_machine_ssym usage.

Reported by: Pierre Muller

[#237 state:resolved]
pull/59/head
Peter Johnson 13 years ago
parent d8d1a5ad90
commit 502eebd339
  1. 2
      modules/objfmts/elf/elf-machine.h
  2. 2
      modules/objfmts/elf/elf-x86-x86.c

@ -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 */

@ -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 */

Loading…
Cancel
Save