This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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

RE: unsupported relocation type in PPC


>-----Original Message-----
>From: David de Andrés Martínez [mailto:ddandres@disca.upv.es]
>Sent: 05 October 2001 09:19

>PBDAT and TIMER_MAX are defined as follows:
>#define PBDAT IMR_ULONG( 0x0AC4 )
>#define IMR_ULONG( addr ) V_ULONG( CFG_IMMR + addr )
>#define IMR_ULONG( addr ) ( addr )
>#define V_ULONG( a ) (*(volatile unsigned long *)( a ))
>....
>#define TIMER_MAX (0xFFFFFFFF)
>....
>
>Do you know how to fix the problem?

  The problem is that these are statements in C.  You are trying to
use an assembler.  You will have to convert the C code to assembler
code if you expect to assemble it.  Assembly does not have typecasts
or volatile or pointer dereferences any more than it has for loops
or typedefs.

        DaveK
-- 
Burn your ID card!  http://www.optional-identity.org.uk/
Help support the campaign, copy this into your .sig!


**********************************************************************
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
**********************************************************************

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


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