svn commit: r1315 - in trunk/yasm: libyasm modules/objfmts/bin modules/objfmts/coff modules/objfmts/dbg modules/objfmts/elf modules/objfmts/xdf modules/parsers/gas

peter at tortall.net peter at tortall.net
Sun Nov 6 22:53:57 PST 2005


Author: peter
Date: Sun Nov  6 22:53:52 2005
New Revision: 1315

Added:
   trunk/yasm/modules/parsers/gas/tests/gassectalign.asm
   trunk/yasm/modules/parsers/gas/tests/gassectalign.errwarn
   trunk/yasm/modules/parsers/gas/tests/gassectalign.hex
Modified:
   trunk/yasm/libyasm/objfmt.h
   trunk/yasm/modules/objfmts/bin/bin-objfmt.c
   trunk/yasm/modules/objfmts/coff/coff-objfmt.c
   trunk/yasm/modules/objfmts/dbg/dbg-objfmt.c
   trunk/yasm/modules/objfmts/elf/elf-objfmt.c
   trunk/yasm/modules/objfmts/xdf/xdf-objfmt.c
   trunk/yasm/modules/parsers/gas/gas-bison.y
   trunk/yasm/modules/parsers/gas/tests/Makefile.inc
Changeset:
   http://www.tortall.net/projects/yasm/changeset/1315

Log:
Add ability for GAS input to set section alignment in the same way GAS does:
if the first thing in the section is a .align, that specifies the section
alignment.

* objfmt.h (yasm_objfmt_module): Add section_align() function.
(yasm_objfmt_section_align): Add wrapper for module section_align().
* xdf-objfmt.c, elf-objfmt.c, bin-objfmt.c, dbg-objfmt.c, coff-objfmt.c:
Implement.

* gas-bison.y (gas_parser_align): Call new yasm_objfmt_section_align() rather
than creating an align bytecode if .align is the first bytecode in the
section.

* gassectalign.asm: New test for this.



More information about the yasm-cvs mailing list