svn commit: r1313 - in trunk/yasm/modules/objfmts/elf: tests/gas64

peter at tortall.net peter at tortall.net
Sun Nov 6 12:27:53 PST 2005


Author: peter
Date: Sun Nov  6 12:27:49 2005
New Revision: 1313

Modified:
   trunk/yasm/modules/objfmts/elf/elf-objfmt.c
   trunk/yasm/modules/objfmts/elf/elf.c
   trunk/yasm/modules/objfmts/elf/elf.h
   trunk/yasm/modules/objfmts/elf/tests/gas64/elf_gas64_reloc.hex
Changeset:
   http://www.tortall.net/projects/yasm/changeset/1313

Log:
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).



More information about the yasm-cvs mailing list