problem with gas

Ian Lance Taylor ian@zembu.com
Thu Apr 20 15:14:00 GMT 2000


   From: Sudhanshu_Tewari@3com.com
   Date: Thu, 20 Apr 2000 16:12:07 -0600

   I am giving a small example here.

   FOR LINE: >
   .section ".BootUp", 2, c

   ASSEMBLER IS GENERATIN ERROR
   Warning: Bad .section directive - character following name is not  #

Read the assembler documentation describing the .section pseudo-op.
It looks as though you are trying to assemble a file written for
another assembler.

	addis          R4,       R0,  %hi(LED1REG)
	ori       R4,       R0,  %lo(LED1REG)

   xx.s: Assembler messages
   xx.s:72: Error: Bad expression
   xx.s:72 Error: syntax error: found 'h' but expected ' , '
   xx.s:72 Error: Junk at the end of the line: 'hi(LED1REG)
   xx.s:73 Error: Bad expression
   xx.s:73 Error: syntax error: found 'l' but expected ' , '
   xx.s:73 Error: Junk at the end of the line: 'lo(LED1REG)

Try using -mregnames.

Ian


More information about the Binutils mailing list