Deleted Added
full compact
elf32_freebsd.c (281322) elf32_freebsd.c (281377)
1/*-
2 * Copyright (c) 1998 Michael Smith <msmith@freebsd.org>
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 Michael Smith <msmith@freebsd.org>
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: head/sys/boot/efi/loader/arch/i386/elf32_freebsd.c 281322 2015-04-09 19:48:42Z emaste $");
28__FBSDID("$FreeBSD: head/sys/boot/efi/loader/arch/i386/elf32_freebsd.c 281377 2015-04-10 18:49:43Z emaste $");
29
30#include <sys/param.h>
31#include <sys/exec.h>
32#include <sys/linker.h>
33#include <string.h>
34#include <machine/bootinfo.h>
35#include <machine/elf.h>
36#include <stand.h>

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

43
44
45static int elf32_exec(struct preloaded_file *amp);
46static int elf32_obj_exec(struct preloaded_file *amp);
47
48struct file_format i386_elf = { elf32_loadfile, elf32_exec };
49struct file_format i386_elf_obj = { elf32_obj_loadfile, elf32_obj_exec };
50
29
30#include <sys/param.h>
31#include <sys/exec.h>
32#include <sys/linker.h>
33#include <string.h>
34#include <machine/bootinfo.h>
35#include <machine/elf.h>
36#include <stand.h>

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

43
44
45static int elf32_exec(struct preloaded_file *amp);
46static int elf32_obj_exec(struct preloaded_file *amp);
47
48struct file_format i386_elf = { elf32_loadfile, elf32_exec };
49struct file_format i386_elf_obj = { elf32_obj_loadfile, elf32_obj_exec };
50
51struct file_format *file_formats[] = {
52 &i386_elf,
53 &i386_elf_obj,
54 NULL
55};
56
51/*
52 * There is an ELF kernel and one or more ELF modules loaded.
53 * We wish to start executing the kernel image, so make such
54 * preparations as are required, and do so.
55 */
56static int
57elf32_exec(struct preloaded_file *fp)
58{

--- 29 unchanged lines hidden ---
57/*
58 * There is an ELF kernel and one or more ELF modules loaded.
59 * We wish to start executing the kernel image, so make such
60 * preparations as are required, and do so.
61 */
62static int
63elf32_exec(struct preloaded_file *fp)
64{

--- 29 unchanged lines hidden ---