Deleted Added
full compact
link_elf.c (340054) link_elf.c (359652)
1/*-
2 * Copyright (c) 1998-2000 Doug Rabson
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1998-2000 Doug Rabson
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: stable/11/sys/kern/link_elf.c 340054 2018-11-02 14:15:52Z bz $");
28__FBSDID("$FreeBSD: stable/11/sys/kern/link_elf.c 359652 2020-04-06 07:16:31Z hselasky $");
29
30#include "opt_ddb.h"
31#include "opt_gdb.h"
32
33#include <sys/param.h>
34#include <sys/systm.h>
35#ifdef GPROF
36#include <sys/gmon.h>

--- 422 unchanged lines hidden (view full) ---

459 (void)link_elf_link_common_finish(linker_kernel_file);
460 linker_kernel_file->flags |= LINKER_FILE_LINKED;
461 TAILQ_INIT(&set_pcpu_list);
462#ifdef VIMAGE
463 TAILQ_INIT(&set_vnet_list);
464#endif
465}
466
29
30#include "opt_ddb.h"
31#include "opt_gdb.h"
32
33#include <sys/param.h>
34#include <sys/systm.h>
35#ifdef GPROF
36#include <sys/gmon.h>

--- 422 unchanged lines hidden (view full) ---

459 (void)link_elf_link_common_finish(linker_kernel_file);
460 linker_kernel_file->flags |= LINKER_FILE_LINKED;
461 TAILQ_INIT(&set_pcpu_list);
462#ifdef VIMAGE
463 TAILQ_INIT(&set_vnet_list);
464#endif
465}
466
467SYSINIT(link_elf, SI_SUB_KLD, SI_ORDER_THIRD, link_elf_init, 0);
467SYSINIT(link_elf, SI_SUB_KLD, SI_ORDER_THIRD, link_elf_init, NULL);
468
469static int
470link_elf_preload_parse_symbols(elf_file_t ef)
471{
472 caddr_t pointer;
473 caddr_t ssym, esym, base;
474 caddr_t strtab;
475 int strcnt;

--- 1239 unchanged lines hidden ---
468
469static int
470link_elf_preload_parse_symbols(elf_file_t ef)
471{
472 caddr_t pointer;
473 caddr_t ssym, esym, base;
474 caddr_t strtab;
475 int strcnt;

--- 1239 unchanged lines hidden ---