Subject: port-mips/20895: [rkb] -current MIPS kernels fail to run 1.6 dynamic binaries
To: None <gnats-bugs@gnats.netbsd.org>
From: None <rafal@netbsd.org>
List: netbsd-bugs
Date: 03/26/2003 11:08:18
>Number:         20895
>Category:       port-mips
>Synopsis:       -current MIPS kernels fail to run 1.6 dynamic binaries
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    port-mips-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 26 08:09:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Rafal Boni
>Release:        NetBSD 1.6P on sgimips
>Organization:
Not today
>Environment:
System: NetBSD babylon-sound-system 1.6P NetBSD 1.6P (BABYLON_SOUND_SYSTEM) #3: Mon Mar 17 00:35:54 EST 2003 rafal@stinkpad:/usr/rafal/netbsd-src/sys/arch/sgimips/compile/BABYLON_SOUND_SYSTEM sgimips
Architecture: mipseb
Machine: sgimips

	I believe this is not sgi specific and impacts all MIPS ports.

>Description:
	The combination of 1.6 ld.elf_so and 1.6P causes all dynamic 
	binaries to fall over with nonsensical corefiles.  Replacing
	the dynamic linker with one built from -current makes things
	run again.

	I *believe* that this worked with a 1.6O kernel for me, but 
	Ilpo (lonewolf@) reports that 1.6N kernel with a 1.6 userland
	experiences the same problem.

>How-To-Repeat:
	Install recent -current kernel on a MIPS (sgimips in my case)
	machine which still has a 1.6 (or much older post-1.6 current)
	userland.

	Attempt to run dynamic binaries.  Watch them go "Boom!".

>Fix:
	None, I'm not even sure *why* things fall over, but wanted to
	file a PR before it slipped through the cracks.

>Release-Note:
>Audit-Trail:
>Unformatted:
 		This has been happening on my systems since somewhere
 		between 1.6N and 1.6P, IIRC.