This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]