Subject: Re: Changes to for some architectures
To: None <>
From: Simon Burge <>
List: tech-toolchain
Date: 11/16/1999 15:00:39
Simon Burge wrote:

> Simon Burge wrote:
> > I've done a "make build" with this on a pmax and have no problems so
> > far.  It also seems from a limited look that the alpha can also use
> > this, but that ELF i386 and sparc can't.  I'll do a full test on alpha
> > over the weekend.
> Mmm, I like alphas.  They're faster than pmaxes :)  It seems so far
> that the alpha is ok too.

Damn, spoke too soon.  Everything works on the alpha except ld.elf_so.
After I install a new ld.elf_so, I get the following from any
dynamically linked program:
	assertion "!objself.textrel
	" failed: file "/NetBSD/src/libexec/ld.elf_so/rtld.c", line 208

If anyone wants to look into this on an alpha, you can create an
ld.elf_so that fails like this with:

	ld -Bshareable -Bsymbolic -e _rtld_start -o ld.elf_so rtld_start.o \
		rtld.o reloc.o symbol.o malloc.o xmalloc.o xprintf.o debug.o \
		map_object.o load.o search.o headers.o paths.o -L/usr/lib \
		-non_shared -lc

Just make sure you have a backup of ld.elf_so around :-)

I've added the _pic.a symlink as well.  I'll add this to the source tree
soon, but only enabled for mips.