Getting asm macros expanded

Dave Korn dave.korn.cygwin@googlemail.com
Tue Mar 17 16:51:00 GMT 2009


Philipp Marek wrote:
> [replying to the list]
> 
> Hello David,
> 
>> Are you trying to take assembly files generated from compilers or 
>> straight from .s files. Could your needs be met by modifying your 
>> makefiles to preprocess your sources into .a files?
> Well, I've renamed /usr/bin/as to something else, and put my own script in
> there, so that my script is transparently called for *any* compilation.
> 
> This works mostly; but eg. on the linux kernel (arch/x86/kernel/entry_64.S)
> I can't get the macros to expand to pure assembler before I get them.

  Does the '-am' flag not work in some way, or is it just that you want pure
assembler output rather than listing files?

    cheers,
      DaveK



More information about the Binutils mailing list