head	1.2;
access;
symbols
	netbsd-11-0-RC5:1.2
	netbsd-11-0-RC4:1.2
	netbsd-11-0-RC3:1.2
	netbsd-11-0-RC2:1.2
	netbsd-11-0-RC1:1.2
	perseant-exfatfs-base-20250801:1.2
	netbsd-11:1.2.0.44
	netbsd-11-base:1.2
	netbsd-10-1-RELEASE:1.2
	perseant-exfatfs-base-20240630:1.2
	perseant-exfatfs:1.2.0.42
	perseant-exfatfs-base:1.2
	netbsd-8-3-RELEASE:1.2
	netbsd-9-4-RELEASE:1.2
	netbsd-10-0-RELEASE:1.2
	netbsd-10-0-RC6:1.2
	netbsd-10-0-RC5:1.2
	netbsd-10-0-RC4:1.2
	netbsd-10-0-RC3:1.2
	netbsd-10-0-RC2:1.2
	netbsd-10-0-RC1:1.2
	netbsd-10:1.2.0.40
	netbsd-10-base:1.2
	netbsd-9-3-RELEASE:1.2
	cjep_sun2x-base1:1.2
	cjep_sun2x:1.2.0.38
	cjep_sun2x-base:1.2
	cjep_staticlib_x-base1:1.2
	netbsd-9-2-RELEASE:1.2
	cjep_staticlib_x:1.2.0.36
	cjep_staticlib_x-base:1.2
	netbsd-9-1-RELEASE:1.2
	phil-wifi-20200421:1.2
	phil-wifi-20200411:1.2
	is-mlppp:1.2.0.34
	is-mlppp-base:1.2
	phil-wifi-20200406:1.2
	netbsd-8-2-RELEASE:1.2
	netbsd-9-0-RELEASE:1.2
	netbsd-9-0-RC2:1.2
	netbsd-9-0-RC1:1.2
	phil-wifi-20191119:1.2
	netbsd-9:1.2.0.32
	netbsd-9-base:1.2
	phil-wifi-20190609:1.2
	netbsd-8-1-RELEASE:1.2
	netbsd-8-1-RC1:1.2
	pgoyette-compat-merge-20190127:1.2
	pgoyette-compat-20190127:1.2
	pgoyette-compat-20190118:1.2
	pgoyette-compat-1226:1.2
	pgoyette-compat-1126:1.2
	pgoyette-compat-1020:1.2
	pgoyette-compat-0930:1.2
	pgoyette-compat-0906:1.2
	netbsd-7-2-RELEASE:1.2
	pgoyette-compat-0728:1.2
	netbsd-8-0-RELEASE:1.2
	phil-wifi:1.2.0.30
	phil-wifi-base:1.2
	pgoyette-compat-0625:1.2
	netbsd-8-0-RC2:1.2
	pgoyette-compat-0521:1.2
	pgoyette-compat-0502:1.2
	pgoyette-compat-0422:1.2
	netbsd-8-0-RC1:1.2
	pgoyette-compat-0415:1.2
	pgoyette-compat-0407:1.2
	pgoyette-compat-0330:1.2
	pgoyette-compat-0322:1.2
	pgoyette-compat-0315:1.2
	netbsd-7-1-2-RELEASE:1.2
	pgoyette-compat:1.2.0.28
	pgoyette-compat-base:1.2
	netbsd-7-1-1-RELEASE:1.2
	matt-nb8-mediatek:1.2.0.26
	matt-nb8-mediatek-base:1.2
	perseant-stdc-iso10646:1.2.0.24
	perseant-stdc-iso10646-base:1.2
	netbsd-8:1.2.0.22
	netbsd-8-base:1.2
	prg-localcount2-base3:1.2
	prg-localcount2-base2:1.2
	prg-localcount2-base1:1.2
	prg-localcount2:1.2.0.20
	prg-localcount2-base:1.2
	pgoyette-localcount-20170426:1.2
	bouyer-socketcan-base1:1.2
	pgoyette-localcount-20170320:1.2
	netbsd-7-1:1.2.0.18
	netbsd-7-1-RELEASE:1.2
	netbsd-7-1-RC2:1.2
	netbsd-7-nhusb-base-20170116:1.2
	bouyer-socketcan:1.2.0.16
	bouyer-socketcan-base:1.2
	pgoyette-localcount-20170107:1.2
	netbsd-7-1-RC1:1.2
	pgoyette-localcount-20161104:1.2
	netbsd-7-0-2-RELEASE:1.2
	localcount-20160914:1.2
	netbsd-7-nhusb:1.2.0.14
	netbsd-7-nhusb-base:1.2
	pgoyette-localcount-20160806:1.2
	pgoyette-localcount-20160726:1.2
	pgoyette-localcount:1.2.0.12
	pgoyette-localcount-base:1.2
	netbsd-7-0-1-RELEASE:1.2
	netbsd-7-0:1.2.0.10
	netbsd-7-0-RELEASE:1.2
	netbsd-7-0-RC3:1.2
	netbsd-7-0-RC2:1.2
	netbsd-7-0-RC1:1.2
	tls-maxphys-base:1.2
	tls-maxphys:1.2.0.8
	netbsd-7:1.2.0.6
	netbsd-7-base:1.2
	yamt-pagecache:1.2.0.4
	yamt-pagecache-base9:1.2
	tls-earlyentropy:1.2.0.2
	tls-earlyentropy-base:1.2
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.2
	riastradh-drm2-base3:1.2;
locks; strict;
comment	@# @;


1.2
date	2014.03.06.19.19.40;	author matt;	state Exp;
branches
	1.2.4.1
	1.2.8.1;
next	1.1;
commitid	dC0DckLNLfEILFrx;

1.1
date	2014.03.06.07.47.19;	author matt;	state Exp;
branches;
next	;
commitid	XYt9Q2f8tD8HWBrx;

1.2.4.1
date	2014.03.06.19.19.40;	author yamt;	state dead;
branches;
next	1.2.4.2;
commitid	VmckIax9CgOhKwBx;

1.2.4.2
date	2014.05.22.11.37.14;	author yamt;	state Exp;
branches;
next	;
commitid	VmckIax9CgOhKwBx;

1.2.8.1
date	2014.03.06.19.19.40;	author tls;	state dead;
branches;
next	1.2.8.2;
commitid	jTnpym9Qu0o4R1Nx;

1.2.8.2
date	2014.08.20.00.02.22;	author tls;	state Exp;
branches;
next	;
commitid	jTnpym9Qu0o4R1Nx;


desc
@@


1.2
log
@More PPC64 changes.
Nothing to do for lazy bindings.
Record DT_PPC64_GLINK and make _rtld_bind return it.
When resolving a JMP_SLOT, copy the source function descriptor into the PLTGOT
@
text
@/*	$NetBSD: rtld_start64.S,v 1.1 2014/03/06 07:47:19 matt Exp $	*/

/*-
 * Copyright (C) 1998	Tsubai Masanari
 * Portions copyright 2002 Charles M. Hannum <root@@ihack.net>
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 * 3. The name of the author may not be used to endorse or promote products
 *    derived from this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

#include <machine/asm.h>

	.globl	_rtld_relocate_nonplt_self
	.globl	_rtld

	.text
ENTRY_NOPROFILE(_rtld_start)
	mr	%r23,%r3		// argc
	mr	%r24,%r4		// argv
	mr	%r25,%r5		// envp
/*	mr	%r26,%r6		// obj		(always 0) */
/*	mr	%r27,%r7		// cleanup	(always 0) */
	mr	%r28,%r8		// ps_strings
	li	%r0,0
	stdu	%r0,-64(%r1)		// terminate stack chain
	std	%r2,40(%r1)		// save TOC
	std	%r0,16(%r1)		// ditto

	bcl	20,31,1f
1:	mflr	%r30
	ld	%r3,0(%r2)		// TOC[0] = &TOC
	sub	%r29,%r2,%r3		// compute relocbase

	addis	%r3,%r3,_DYNAMIC-1b@@ha	// get _DYNAMIC actual address
	addi	%r3,%r3,_DYNAMIC-1b@@l
	mr	%r4,%r29		// r4 = relocbase
	CALL(_rtld_relocate_nonplt_self)

	addi	%r3,%r1,48		// sp = <local variable space>
	mr	%r4,%r29		// r4 = relocbase
	CALL(_rtld)			// _start = _rtld(sp, relocbase)

	ld	%r0,0(%r3)		// func address
	ld	%r2,8(%r3)		// TOC address
	ld	%r11,16(%r3)		// environment pointer
	mtctr	%r0			// so we can call it.

	mr	%r3,%r23		// argc
	mr	%r4,%r24		// argv
	mr	%r5,%r25		// envp
	ld	%r6,56(%r1)		// obj = <localvar>[1]
	ld	%r7,48(%r1)		// cleanup = <localvar>[0]
	mr	%r8,%r28		// ps_strings

	bctrl		// _start(argc, argv, envp, obj, cleanup, ps_strings)
	nop

	li	%r0,1			// _exit()
	sc
END(_rtld_start)

	.globl	_rtld_bind

/*
 * %r0 has the index of the rela, %r12 has a pointer to the plt entry.
 */
ENTRY_NOPROFILE(_rtld_bind_start)
	std	%r3,-72(%r1)		// save argument register
	std	%r4,-64(%r1)		// save argument register
	std	%r5,-56(%r1)		// save argument register
	std	%r6,-48(%r1)		// save argument register
	std	%r7,-40(%r1)		// save argument register
	std	%r8,-32(%r1)		// save argument register
	std	%r9,-24(%r1)		// save argument register
	std	%r10,-16(%r1)		// save argument register
	std	%r31,-8(%r1)		// save register
	stdu	%r1,-(48+80)(%r1)	// create back chain
	mflr	%r10
	std	%r10,16(%r1)		// save LR
	mfcr	%r9
	std	%r9,8(%r1)		// save CR to be safe

	mr	%r31, %r12		// save this across bind call
	mr	%r3, %r11 		// obj
	mr	%r4, %r0		// reloff

	CALL(_rtld_bind)		// _rtld_bind(obj, reloff)

	mtctr	%r3
	mr	%r12,%r31		// restore r12

	ld	%r0,8(%r1)		// get saved CR
	mtcr	%r0			// restore it
	ld	%r0,16(%r1)		// get saved LR
	mtlr	%r0			// restore it

	addi	%r1,%r1,(48+80)		// adjust stack
	ld	%r3,-72(%r1)		// restore argument register
	ld	%r4,-64(%r1)		// restore argument register
	ld	%r5,-56(%r1)		// restore argument register
	ld	%r6,-48(%r1)		// restore argument register
	ld	%r7,-40(%r1)		// restore argument register
	ld	%r8,-32(%r1)		// restore argument register
	ld	%r9,-24(%r1)		// restore argument register
	ld	%r10,-16(%r1)		// restore argument register
	ld	%r31,-8(%r1)		// restore register
	bctr
END(_rtld_bind_start)
@


1.2.8.1
log
@file rtld_start64.S was added on branch tls-maxphys on 2014-08-20 00:02:22 +0000
@
text
@d1 128
@


1.2.8.2
log
@Rebase to HEAD as of a few days ago.
@
text
@a0 128
/*	$NetBSD$	*/

/*-
 * Copyright (C) 1998	Tsubai Masanari
 * Portions copyright 2002 Charles M. Hannum <root@@ihack.net>
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 * 3. The name of the author may not be used to endorse or promote products
 *    derived from this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

#include <machine/asm.h>

	.globl	_rtld_relocate_nonplt_self
	.globl	_rtld

	.text
ENTRY_NOPROFILE(_rtld_start)
	mr	%r23,%r3		// argc
	mr	%r24,%r4		// argv
	mr	%r25,%r5		// envp
/*	mr	%r26,%r6		// obj		(always 0) */
/*	mr	%r27,%r7		// cleanup	(always 0) */
	mr	%r28,%r8		// ps_strings
	li	%r0,0
	stdu	%r0,-64(%r1)		// terminate stack chain
	std	%r2,40(%r1)		// save TOC
	std	%r0,16(%r1)		// ditto

	bcl	20,31,1f
1:	mflr	%r30
	ld	%r3,0(%r2)		// TOC[0] = &TOC
	sub	%r29,%r2,%r3		// compute relocbase

	addis	%r3,%r3,_DYNAMIC-1b@@ha	// get _DYNAMIC actual address
	addi	%r3,%r3,_DYNAMIC-1b@@l
	mr	%r4,%r29		// r4 = relocbase
	CALL(_rtld_relocate_nonplt_self)

	addi	%r3,%r1,48		// sp = <local variable space>
	mr	%r4,%r29		// r4 = relocbase
	CALL(_rtld)			// _start = _rtld(sp, relocbase)

	ld	%r0,0(%r3)		// func address
	ld	%r2,8(%r3)		// TOC address
	ld	%r11,16(%r3)		// environment pointer
	mtctr	%r0			// so we can call it.

	mr	%r3,%r23		// argc
	mr	%r4,%r24		// argv
	mr	%r5,%r25		// envp
	ld	%r6,56(%r1)		// obj = <localvar>[1]
	ld	%r7,48(%r1)		// cleanup = <localvar>[0]
	mr	%r8,%r28		// ps_strings

	bctrl		// _start(argc, argv, envp, obj, cleanup, ps_strings)
	nop

	li	%r0,1			// _exit()
	sc
END(_rtld_start)

	.globl	_rtld_bind

/*
 * %r0 has the index of the rela, %r12 has a pointer to the plt entry.
 */
ENTRY_NOPROFILE(_rtld_bind_start)
	std	%r3,-72(%r1)		// save argument register
	std	%r4,-64(%r1)		// save argument register
	std	%r5,-56(%r1)		// save argument register
	std	%r6,-48(%r1)		// save argument register
	std	%r7,-40(%r1)		// save argument register
	std	%r8,-32(%r1)		// save argument register
	std	%r9,-24(%r1)		// save argument register
	std	%r10,-16(%r1)		// save argument register
	std	%r31,-8(%r1)		// save register
	stdu	%r1,-(48+80)(%r1)	// create back chain
	mflr	%r10
	std	%r10,16(%r1)		// save LR
	mfcr	%r9
	std	%r9,8(%r1)		// save CR to be safe

	mr	%r31, %r12		// save this across bind call
	mr	%r3, %r11 		// obj
	mr	%r4, %r0		// reloff

	CALL(_rtld_bind)		// _rtld_bind(obj, reloff)

	mtctr	%r3
	mr	%r12,%r31		// restore r12

	ld	%r0,8(%r1)		// get saved CR
	mtcr	%r0			// restore it
	ld	%r0,16(%r1)		// get saved LR
	mtlr	%r0			// restore it

	addi	%r1,%r1,(48+80)		// adjust stack
	ld	%r3,-72(%r1)		// restore argument register
	ld	%r4,-64(%r1)		// restore argument register
	ld	%r5,-56(%r1)		// restore argument register
	ld	%r6,-48(%r1)		// restore argument register
	ld	%r7,-40(%r1)		// restore argument register
	ld	%r8,-32(%r1)		// restore argument register
	ld	%r9,-24(%r1)		// restore argument register
	ld	%r10,-16(%r1)		// restore argument register
	ld	%r31,-8(%r1)		// restore register
	bctr
END(_rtld_bind_start)
@


1.2.4.1
log
@file rtld_start64.S was added on branch yamt-pagecache on 2014-05-22 11:37:14 +0000
@
text
@d1 128
@


1.2.4.2
log
@sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@a0 128
/*	$NetBSD$	*/

/*-
 * Copyright (C) 1998	Tsubai Masanari
 * Portions copyright 2002 Charles M. Hannum <root@@ihack.net>
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 * 3. The name of the author may not be used to endorse or promote products
 *    derived from this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

#include <machine/asm.h>

	.globl	_rtld_relocate_nonplt_self
	.globl	_rtld

	.text
ENTRY_NOPROFILE(_rtld_start)
	mr	%r23,%r3		// argc
	mr	%r24,%r4		// argv
	mr	%r25,%r5		// envp
/*	mr	%r26,%r6		// obj		(always 0) */
/*	mr	%r27,%r7		// cleanup	(always 0) */
	mr	%r28,%r8		// ps_strings
	li	%r0,0
	stdu	%r0,-64(%r1)		// terminate stack chain
	std	%r2,40(%r1)		// save TOC
	std	%r0,16(%r1)		// ditto

	bcl	20,31,1f
1:	mflr	%r30
	ld	%r3,0(%r2)		// TOC[0] = &TOC
	sub	%r29,%r2,%r3		// compute relocbase

	addis	%r3,%r3,_DYNAMIC-1b@@ha	// get _DYNAMIC actual address
	addi	%r3,%r3,_DYNAMIC-1b@@l
	mr	%r4,%r29		// r4 = relocbase
	CALL(_rtld_relocate_nonplt_self)

	addi	%r3,%r1,48		// sp = <local variable space>
	mr	%r4,%r29		// r4 = relocbase
	CALL(_rtld)			// _start = _rtld(sp, relocbase)

	ld	%r0,0(%r3)		// func address
	ld	%r2,8(%r3)		// TOC address
	ld	%r11,16(%r3)		// environment pointer
	mtctr	%r0			// so we can call it.

	mr	%r3,%r23		// argc
	mr	%r4,%r24		// argv
	mr	%r5,%r25		// envp
	ld	%r6,56(%r1)		// obj = <localvar>[1]
	ld	%r7,48(%r1)		// cleanup = <localvar>[0]
	mr	%r8,%r28		// ps_strings

	bctrl		// _start(argc, argv, envp, obj, cleanup, ps_strings)
	nop

	li	%r0,1			// _exit()
	sc
END(_rtld_start)

	.globl	_rtld_bind

/*
 * %r0 has the index of the rela, %r12 has a pointer to the plt entry.
 */
ENTRY_NOPROFILE(_rtld_bind_start)
	std	%r3,-72(%r1)		// save argument register
	std	%r4,-64(%r1)		// save argument register
	std	%r5,-56(%r1)		// save argument register
	std	%r6,-48(%r1)		// save argument register
	std	%r7,-40(%r1)		// save argument register
	std	%r8,-32(%r1)		// save argument register
	std	%r9,-24(%r1)		// save argument register
	std	%r10,-16(%r1)		// save argument register
	std	%r31,-8(%r1)		// save register
	stdu	%r1,-(48+80)(%r1)	// create back chain
	mflr	%r10
	std	%r10,16(%r1)		// save LR
	mfcr	%r9
	std	%r9,8(%r1)		// save CR to be safe

	mr	%r31, %r12		// save this across bind call
	mr	%r3, %r11 		// obj
	mr	%r4, %r0		// reloff

	CALL(_rtld_bind)		// _rtld_bind(obj, reloff)

	mtctr	%r3
	mr	%r12,%r31		// restore r12

	ld	%r0,8(%r1)		// get saved CR
	mtcr	%r0			// restore it
	ld	%r0,16(%r1)		// get saved LR
	mtlr	%r0			// restore it

	addi	%r1,%r1,(48+80)		// adjust stack
	ld	%r3,-72(%r1)		// restore argument register
	ld	%r4,-64(%r1)		// restore argument register
	ld	%r5,-56(%r1)		// restore argument register
	ld	%r6,-48(%r1)		// restore argument register
	ld	%r7,-40(%r1)		// restore argument register
	ld	%r8,-32(%r1)		// restore argument register
	ld	%r9,-24(%r1)		// restore argument register
	ld	%r10,-16(%r1)		// restore argument register
	ld	%r31,-8(%r1)		// restore register
	bctr
END(_rtld_bind_start)
@


1.1
log
@Startup file for powerpc64.  (too many difference with ppc32 to do
#ifdef dance)
@
text
@d1 1
a1 1
/*	$NetBSD: rtld_start.S,v 1.17 2011/09/26 01:52:22 mrg Exp $	*/
d110 1
a110 2
	ld	%r2,8(%r31)		// load TOC for function
	ld	%r11,16(%r31)		// load env ptr for function.
@

