svn commit: r1319 - in trunk/yasm: libyasm modules/dbgfmts/stabs modules/objfmts/bin modules/objfmts/dbg modules/objfmts/elf modules/objfmts/xdf modules/parsers/gas

peter at tortall.net peter at tortall.net
Sun Nov 13 12:44:27 PST 2005


Author: peter
Date: Sun Nov 13 12:44:21 2005
New Revision: 1319

Modified:
   trunk/yasm/libyasm/objfmt.h
   trunk/yasm/libyasm/section.c
   trunk/yasm/libyasm/section.h
   trunk/yasm/modules/dbgfmts/stabs/stabs-dbgfmt.c
   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/elf/elf-x86-amd64.c
   trunk/yasm/modules/objfmts/elf/elf-x86-x86.c
   trunk/yasm/modules/objfmts/elf/elf.c
   trunk/yasm/modules/objfmts/elf/elf.h
   trunk/yasm/modules/objfmts/xdf/xdf-objfmt.c
   trunk/yasm/modules/parsers/gas/gas-bison.y
Changeset:
   http://www.tortall.net/projects/yasm/changeset/1319

Log:
Move section alignment to libyasm, refactoring it from individual object
formats.

* section.h (yasm_object_get_general): Add align parameter.
(yasm_section_set_align, yasm_section_get_align): New.
* section.c (yasm_section): Add align member and implementations.

* objfmt.h (yasm_objfmt_section_align): Remove.

* gas-bison.y (gas_parser_align): Change to use yasm_section_get/set_align().

* xdf, elf, bin, dbg, coff, stabs: Refactor as necessary.



More information about the yasm-cvs mailing list