This is the mail archive of the binutils@sourceware.cygnus.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]

Re: problem with gas


   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

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