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?
- From: Hans-Peter Nilsson <hp at bitrange dot com>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: "Stephen P. Smith" <ischis2 at cox dot net>, binutils <binutils at sources dot redhat dot com>
- Date: Wed, 7 May 2003 23:36:17 -0400 (EDT)
- Subject: Re: Why doesn't this assemble for elf but does for pe?
On 1 May 2003, Nick Clifton wrote:
> Hi Stephen,
>
> > 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
>
> The #APP and #NO_APP need to be at the start of files. They do not
> work elsewhere.
They do work elsewhere if and only if there's also a #NO_APP at
the very beginning of the file. (Only one gcc port emits that:
cris-*. BTW, last time I looked there's also a kludge in glibc
that relies on #NO_APP not being in effect; that is, scrubbing
being done. But that's more than one whole other story.)
There be bugs there. I'd rather rip out all the #APP/#NO_APP
support, but I guess patching the kludge there is, is perceived
as a smaller change.
brgds, H-P