]> granicus.if.org Git - yasm/commit
Fix #102: Permit non-standard macho section names.
authorPeter Johnson <peter@tortall.net>
Mon, 28 May 2007 08:52:18 +0000 (08:52 -0000)
committerPeter Johnson <peter@tortall.net>
Mon, 28 May 2007 08:52:18 +0000 (08:52 -0000)
commitd2fe9a793c74406c36b698efab2fe5ba5931b4c2
tree424c70bbf666f2929cf788b9fabbd96319acb184
parent3e5fed2ad1725c0608fad598e182e8852638392d
Fix #102: Permit non-standard macho section names.

Two forms are legal ({} are replaceables):
SECTION {segname} {sectname}
SECTION {sectname} segname={segname}
Also,
SECTION {sectname}
where sectname is unrecognized is also legal, defaults segname to __TEXT,
and generates a warning.

Contributed by: bird-yasm@anduin.net

svn path=/trunk/yasm/; revision=1852
libyasm/valparam.c
libyasm/valparam.h
modules/objfmts/macho/macho-objfmt.c
modules/objfmts/macho/tests/nasm32/Makefile.inc
modules/objfmts/macho/tests/nasm32/macho32-sect.asm [new file with mode: 0644]
modules/objfmts/macho/tests/nasm32/macho32-sect.errwarn [new file with mode: 0644]
modules/objfmts/macho/tests/nasm32/macho32-sect.hex [new file with mode: 0644]