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]

RE: Undefined Symbol Error in GAS


>-----Original Message-----
>From: Steve deRosier [mailto:sderosier@vari-lite.com]
>Sent: 27 February 2001 20:32


> LEA.L    .STARTOF.(stack)+.SIZEOF.(stack),SP   * initialize 
>stack pointer

>I just went and replaced it with:
> LEA.L  .STARTOF.(stack),SP
> ADDA.L   #.SIZEOF.(stack),SP

  Heh.  You do, of course, realise what will happen if an interrupt 
occurs between these two instructions ?  It might be best to do the
calculation in a temporary register...

   lea.l  .STARTOF.(stack),a0
   lea.l  .SIZEOF.(stack)(a0),sp

      DaveK
-- 
 All your base are belong to us!


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************


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