This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: problem with gas
- To: Sudhanshu_Tewari at 3com dot com
- Subject: Re: problem with gas
- From: Ian Lance Taylor <ian at zembu dot com>
- Date: 20 Apr 2000 15:14:23 -0700
- CC: binutils at sourceware dot cygnus dot com
- References: <882568C7.0079BC74.00@hqoutbound.ops.3com.com>
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