Question/Problem about binutils

David Müller (ELSOFT AG) d.mueller@elsoft.ch
Wed Jul 21 23:57:00 GMT 1999


Hello

I'm sorry, if anyone has to read this for the
second time. ;-)

I'm using binutils-2.9.1.0.19a / egcs-1.1.2 as a 
Linux -> PPC (MPC8xx) cross develop environment.

1.
In the ppc-opc.c file, there are definitions for
the simplified mnemonics like "mfimmr, mfcmpa, ...". 
But there are no definitions for the counterparts like
"mtimmr, mtcmpa, ...", at least not in binutils-2.9.1.0.19a
and earlier. 

Is there a "good" reason for this??

2.
To link my project, i have written the following linker
script.  
 
ROMSTART = 0xFFF00000 ;

MEMORY {
	ROM : ORIGIN = ROMSTART, LENGTH = 128K /*1M*/
}

SECTIONS {
	.text ROMSTART : AT (0x0) {
		__s_text = ABSOLUTE(.) ;
		*(.text);
		__e_text = ABSOLUTE(.) ;
	} > ROM

[rest deleted]

ld reports the error "nonconstant expression for origin" in the
"ROM" definition, but has no problems with "ROMSTART" in
the ".text" section definition.
 
Is this a bug in ld or am i missing something??

TIA

Dave


More information about the Binutils mailing list