elf_machdep.c (98635) | elf_machdep.c (100384) |
---|---|
1/*- 2 * Copyright (c) 2001 Jake Burkholder. 3 * Copyright (c) 2000 Eduardo Horvath. 4 * Copyright (c) 1999 The NetBSD Foundation, Inc. 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to The NetBSD Foundation 8 * by Paul Kranenburg. --- 22 unchanged lines hidden (view full) --- 31 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 32 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 33 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 34 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 35 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 36 * POSSIBILITY OF SUCH DAMAGE. 37 * 38 * from: NetBSD: mdreloc.c,v 1.5 2001/04/25 12:24:51 kleink Exp | 1/*- 2 * Copyright (c) 2001 Jake Burkholder. 3 * Copyright (c) 2000 Eduardo Horvath. 4 * Copyright (c) 1999 The NetBSD Foundation, Inc. 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to The NetBSD Foundation 8 * by Paul Kranenburg. --- 22 unchanged lines hidden (view full) --- 31 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 32 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 33 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 34 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 35 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 36 * POSSIBILITY OF SUCH DAMAGE. 37 * 38 * from: NetBSD: mdreloc.c,v 1.5 2001/04/25 12:24:51 kleink Exp |
39 * $FreeBSD: head/sys/sparc64/sparc64/elf_machdep.c 98635 2002-06-22 20:46:59Z mux $ | 39 * $FreeBSD: head/sys/sparc64/sparc64/elf_machdep.c 100384 2002-07-20 02:56:12Z peter $ |
40 */ 41 42#include <sys/param.h> | 40 */ 41 42#include <sys/param.h> |
43#include <sys/kernel.h> |
|
43#include <sys/systm.h> 44#include <sys/linker.h> | 44#include <sys/systm.h> 45#include <sys/linker.h> |
46#include <sys/sysent.h> 47#include <sys/imgact_elf.h> 48#include <sys/syscall.h> 49#include <sys/signalvar.h> 50#include <sys/vnode.h> |
|
45#include <machine/elf.h> | 51#include <machine/elf.h> |
52#include <machine/md_var.h> |
|
46 47#include "linker_if.h" 48 | 53 54#include "linker_if.h" 55 |
56struct sysentvec elf64_freebsd_sysvec = { 57 SYS_MAXSYSCALL, 58 sysent, 59 0, 60 0, 61 0, 62 0, 63 0, 64 0, 65 elf64_freebsd_fixup, 66 sendsig, 67 sigcode, 68 &szsigcode, 69 0, 70 "FreeBSD ELF64", 71 __elfN(coredump), 72 NULL, 73 MINSIGSTKSZ 74}; 75 76static Elf64_Brandinfo freebsd_brand_info = { 77 ELFOSABI_FREEBSD, 78 EM_SPARCV9, 79 "FreeBSD", 80 "", 81 "/usr/libexec/ld-elf.so.1", 82 &elf64_freebsd_sysvec 83 }; 84 85SYSINIT(elf64, SI_SUB_EXEC, SI_ORDER_ANY, 86 (sysinit_cfunc_t) elf64_insert_brand_entry, 87 &freebsd_brand_info); 88 |
|
49/* 50 * The following table holds for each relocation type: 51 * - the width in bits of the memory location the relocation 52 * applies to (not currently used) 53 * - the number of bits the relocation value must be shifted to the 54 * right (i.e. discard least significant bits) to fit into 55 * the appropriate field in the instruction word. 56 * - flags indicating whether --- 174 unchanged lines hidden --- | 89/* 90 * The following table holds for each relocation type: 91 * - the width in bits of the memory location the relocation 92 * applies to (not currently used) 93 * - the number of bits the relocation value must be shifted to the 94 * right (i.e. discard least significant bits) to fit into 95 * the appropriate field in the instruction word. 96 * - flags indicating whether --- 174 unchanged lines hidden --- |