This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Why doesn't this assemble for elf but does for pe?
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)