]> granicus.if.org Git - yasm/commit
* elf-x86-x86.c (elf_x86_x86_write_reloc): Don't cast symbol index to
authorPeter Johnson <peter@tortall.net>
Fri, 13 Jan 2006 06:41:50 +0000 (06:41 -0000)
committerPeter Johnson <peter@tortall.net>
Fri, 13 Jan 2006 06:41:50 +0000 (06:41 -0000)
commitf126112f2ebf6344d0ee09d31285a171e33ad37f
tree240332b9cd98469cf1418b6c5aa0253a159dac23
parent38403f8490abb27e72f06cc39c3176e7b43464f8
* elf-x86-x86.c (elf_x86_x86_write_reloc): Don't cast symbol index to
unsigned char.  This was causing relocation corruption after 255 symbols,
in ELF32 only.
* elfmanysym.asm: Additional test that has exactly 257 symbols.

We actually should have caught this with the very large 32-bit elf-x86id.asm
test, but that object file (unlike the 64-bit GAS version of it) has only
been manually reviewed.  This bug was only in ELF32, and wasn't in ELF64.

Fixes bug #62 submitted by: Jens von der Heydt <mailme@vdh-webservice.de>

svn path=/trunk/yasm/; revision=1330
modules/objfmts/elf/elf-x86-x86.c
modules/objfmts/elf/tests/Makefile.inc
modules/objfmts/elf/tests/elf-x86id.hex
modules/objfmts/elf/tests/elfmanysym.asm [new file with mode: 0755]
modules/objfmts/elf/tests/elfmanysym.errwarn [new file with mode: 0644]
modules/objfmts/elf/tests/elfmanysym.hex [new file with mode: 0644]