Why doesn't this assemble for elf but does for pe?
Stephen P. Smith
ischis2@cox.net
Wed Apr 30 16:03:00 GMT 2003
note that common, RawHandlerTable, and numRawHandlers are all defined.
Ok I change the code to :
#NO_APP
.equ rawHandlerSize, ((common - RawHandlerTable)/numRawHandlers)
#APP
I am getting :
../../code/HAL/x86/rawhndlr.S: Assembler messages:
../../code/HAL/x86/rawhndlr.S:281: Error: missing ')'
gmake: *** [rawhndlr.o] Error 1
Nick Clifton wrote:
>Hi Stephen,
>
>
>
>>>The answer is to disable pre-processing at the start of the file by
>>>using the #NO_APP directive, like this:
>>>
>>> #NO_APP .equ NumEntries, 5
>>> .equ numRawHandlers, NumEntries
>>> table:
>>> nop
>>> common:
>>> .equ size, ((common - table) / numRawHandlers)
>>>
>>>
More information about the Binutils
mailing list