link_elf_obj.c (350354) | link_elf_obj.c (359652) |
---|---|
1/*- 2 * Copyright (c) 1998-2000 Doug Rabson 3 * Copyright (c) 2004 Peter Wemm 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1998-2000 Doug Rabson 3 * Copyright (c) 2004 Peter Wemm 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> |
29__FBSDID("$FreeBSD: stable/11/sys/kern/link_elf_obj.c 350354 2019-07-26 10:30:45Z kib $"); | 29__FBSDID("$FreeBSD: stable/11/sys/kern/link_elf_obj.c 359652 2020-04-06 07:16:31Z hselasky $"); |
30 31#include "opt_ddb.h" 32 33#include <sys/param.h> 34#include <sys/systm.h> 35#include <sys/kernel.h> 36#include <sys/lock.h> 37#include <sys/malloc.h> --- 149 unchanged lines hidden (view full) --- 187 188static void 189link_elf_init(void *arg) 190{ 191 192 linker_add_class(&link_elf_class); 193} 194 | 30 31#include "opt_ddb.h" 32 33#include <sys/param.h> 34#include <sys/systm.h> 35#include <sys/kernel.h> 36#include <sys/lock.h> 37#include <sys/malloc.h> --- 149 unchanged lines hidden (view full) --- 187 188static void 189link_elf_init(void *arg) 190{ 191 192 linker_add_class(&link_elf_class); 193} 194 |
195SYSINIT(link_elf_obj, SI_SUB_KLD, SI_ORDER_SECOND, link_elf_init, 0); | 195SYSINIT(link_elf_obj, SI_SUB_KLD, SI_ORDER_SECOND, link_elf_init, NULL); |
196 197static int 198link_elf_link_preload(linker_class_t cls, const char *filename, 199 linker_file_t *result) 200{ 201 Elf_Ehdr *hdr; 202 Elf_Shdr *shdr; 203 Elf_Sym *es; --- 1395 unchanged lines hidden --- | 196 197static int 198link_elf_link_preload(linker_class_t cls, const char *filename, 199 linker_file_t *result) 200{ 201 Elf_Ehdr *hdr; 202 Elf_Shdr *shdr; 203 Elf_Sym *es; --- 1395 unchanged lines hidden --- |