# HG changeset patch # User lost # Date 1250396009 0 # Node ID 31231d1c87e6f9778acf2abdaa7542d80ebc045b # Parent b43e3e23583c6b484f90e588f51e24207a6dd9c0 Made ORG carp if used inside a mod/emod section diff -r b43e3e23583c -r 31231d1c87e6 lwasm/pseudo.c --- a/lwasm/pseudo.c Sun Aug 16 00:25:55 2009 +0000 +++ b/lwasm/pseudo.c Sun Aug 16 04:13:29 2009 +0000 @@ -46,6 +46,11 @@ register_error(as, l, 1, "ORG not allowed within sections"); return; } + if (as -> inmod) + { + register_error(as, l, 1, "ORG not allowed within modules"); + return; + } if (as -> passnum != 1) {