?? "ld: elf error:" from gcc-2.7.2 in solaris 2.5

?? "ld: elf error:" from gcc-2.7.2 in solaris 2.5

Post by Z. Zh » Sun, 04 Feb 1996 04:00:00



I am using gcc-2.7.2 on a sparc/solaris2.5 and often got the message

ld: elf error: file ...

How can I deal with this error ?  seems to be from the differnt
objects gcc and solaris are using. How to get rid of it ?

Thanks,
        zhao

 
 
 

?? "ld: elf error:" from gcc-2.7.2 in solaris 2.5

Post by Casper H.S. Dik - Network Security Engine » Thu, 08 Feb 1996 04:00:00



>I am using gcc-2.7.2 on a sparc/solaris2.5 and often got the message
>ld: elf error: file ...

(please quote the exact error message, not some rendering from memory)

Quote:>How can I deal with this error ?  seems to be from the differnt
>objects gcc and solaris are using. How to get rid of it ?

You get rid of it by properly installing gcc and not attempting
to link a.out objects with ELF objects.

Casper
--
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.

 
 
 

1. in solaris 2.5, which "ld" works with gcc better ?

The native ld is /usr/ccs/binld]]/ld

/usr/ucb/ld is just a warpper scripts that calls native ld
in denatified way.  Gcc will pick the rigth one by default.
(But you may need to make sure /usr/ccs/bin is in your PATH before
/usr/ucb in any case)

Casper
--
Casper Dik - Sun Microsystems - via my guest account at the University

Statements on Sun products included here are not gospel and may
be fiction rather than truth.

2. Solaris 8 loses loopback route

3. gcc error: "elf error: file insn-attrtab.o: elf_strptr: Request error: no string table"

4. MultiPort Serial Card Questions

5. Linker error "relocations remain", shared object, Solaris, gcc, ld, java, java native interface, cplex

6. Promise IDE DC4030VL-2

7. "dig" and "host" for Solaris 2.5?

8. ftape load failures?

9. Solaris 2.5 "bsd" vs. "s5" printing oddities

10. "ld" problems using Intel Solaris version 2.5

11. GETSERVBYNAME()????????????????????"""""""""""""

12. gcc-2.7.2 compilation for x86 Solaris 2.5 on Linux machine

13. gcc-2.7.2 binaries for Solaris 2.5 for x86