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]
Other format: [Raw text]

sparcv9 architecture


Hi everybody,
	using gcc 3.0.3 (Configured with: ./configure
--host=sparcv9-sun-solaris2.8 --enable-threads=solaris
--prefix=/opt/gnu64 --with-gnu-ld --with-gnu-as) 
and binutils 2.11.2 (Configured with: ./configure
--host=sparcv9-sun-solaris2.8 --prefix=/opt/gnu64), I
get this error during de link:

"gcc -o prova prova.c
/usr/lib/libdl.so.1: could not read symbols: Invalid
operation
collect2: ld returned 1 exit status"

using de file command I get:

"file /usr/lib/libdl.so
/usr/lib/libdl.so:      ELF 32-bit MSB dynamic lib
SPARC Version 1, dynamically linked, not stripped" :-(

I don't have this problem if I do this way:

"gcc -Wl,-rpath -Wl,/usr/lib/sparcv9 -o prova prova.c"

Do you think that this a bug or not? 

I'd expect that the linker uses automatically the
correct library for the sparcv9 architecture!

Thanks in advance
	Paolo Narducci

______________________________________________________________________

Iscriviti al gruppo ufficiale di Tomb Raider:
http://it.groups.yahoo.com/group/gruppoufficiale_tombraider/


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