From: H. P. A. <hp...@zy...> - 2005-12-29 23:04:37
|
Frank Kotler wrote: > Jacques Mony wrote: > >> Hi, >> >> Can anyone give me an example of how to use section.<secname>.start? >> >> I tried this: >> >> ------ test.asm ------- >> >> section mysection >> >> mysectionsize equ $ - section.mysection.start >> -------------------------- >> >> This will tell me section.mysection.start wasn't defined prior to its >> use... >> >> What's wrong? > > > Dunno. I can confirm that it happens. I *think* you're doing everything > right. If I add the "-O" switch, the error message changes to "invalid > operand type". I suspect a bug. I'll pass this on to the developer's > list, and see if anyone has any ideas... > > Thanks for testing the multisection support and letting us know! > Okay, sorry for chiming in way, way late... The reason it doesn't work is because section.mysection.start isn't seen by the assembler and linker as being in the same section as $. Remember that outbin is really a linker. In the case above, it's equivalent to $-$$, but the assembler doesn't know that, and if it had been a *different* section, it wouldn't have been able to resolve it. -hpa |