Subject: Assembler problem with -fpic
To: None <port-i386@netbsd.org>
From: None <crvich@us.ibm.com>
List: port-i386
Date: 12/14/1999 14:11:47
Is there any way to upgrade the assembler and/or linker (as and ld) on
NetBSD 1.3.3?  I've tried the generic GNU binutils sources (both 2.8 and
2.9), but they produce "Error: Cannot represent relocation type
BFD_RELOC_386_PLT32" errors during assembly if I compile with -fpic or
-fPIC (we can build our library statically, but would obviously prefer to
create a shared lib).

When I try to use the assembler that comes with NetBSD 1.3.3 (gas 1.9x I
think), it doesn't recognize some symbols that gcc/g++ 2.95 produces (like
p2align).  I'm also concerned that ld may have similar problems.  Someone
told me that some of these low-level tools won't work right if compiled
from the generic GNU source, and I can't seem to find source code for as or
ld at the NetBSD site.

What are my options (besides upgrading to NetBSD 1.4.1, which is a last
resort)?

---
Ernest M. Crvich
IBM ODE team
Have footbag, will shred.