]> granicus.if.org Git - yasm/commit
Fix common and 0-offset local definition of symbol. The symbol would end
authorPeter Johnson <peter@tortall.net>
Sun, 6 Nov 2005 20:27:49 +0000 (20:27 -0000)
committerPeter Johnson <peter@tortall.net>
Sun, 6 Nov 2005 20:27:49 +0000 (20:27 -0000)
commit9996855928d96c04bd4af42ffa3578d95b760c9c
tree0445904089fe4588b50846532af1288578dd346c
parent783e4ae9cf5a59b3b12b5657248ce0a2ed1a6a00
Fix common and 0-offset local definition of symbol.  The symbol would end
up with the alignment as the offset rather than 0.  The cause of this was
that elf_sym_set_nonzero was getting a 0 offset which it then did not set.

* elf.c (elf_symtab_set_nonzero): Make value a pointer so that 0 values
can actually get set if necessary.
* elf.h (elf_symtab_set_nonzero): Update prototype.
* elf-objfmt.c (elf_objfmt_symtab_append): Likewise, and ripple changes.

* elf_gas64_reloc.hex: Update (now is correct).

svn path=/trunk/yasm/; revision=1313
modules/objfmts/elf/elf-objfmt.c
modules/objfmts/elf/elf.c
modules/objfmts/elf/elf.h
modules/objfmts/elf/tests/gas64/elf_gas64_reloc.hex