xref: /freebsd/sys/compat/linux/linux_elf32.c (revision 3460fab5)
1447636e4SEdward Tomasz Napierala /*-
24d846d26SWarner Losh  * SPDX-License-Identifier: BSD-2-Clause
3447636e4SEdward Tomasz Napierala  *
4447636e4SEdward Tomasz Napierala  * Copyright (c) 2021 Edward Tomasz Napierala <trasz@FreeBSD.org>
5447636e4SEdward Tomasz Napierala  * Copyright (c) 2002 Doug Rabson
6447636e4SEdward Tomasz Napierala  * All rights reserved.
7447636e4SEdward Tomasz Napierala  *
8447636e4SEdward Tomasz Napierala  * This software was developed by the University of Cambridge Computer
9447636e4SEdward Tomasz Napierala  * Laboratory as part of the CHERI for Hypervisors and Operating Systems
10447636e4SEdward Tomasz Napierala  * (CHaOS) project, funded by EPSRC grant EP/V000292/1.
11447636e4SEdward Tomasz Napierala  *
12447636e4SEdward Tomasz Napierala  * Redistribution and use in source and binary forms, with or without
13447636e4SEdward Tomasz Napierala  * modification, are permitted provided that the following conditions
14447636e4SEdward Tomasz Napierala  * are met:
15447636e4SEdward Tomasz Napierala  * 1. Redistributions of source code must retain the above copyright
16447636e4SEdward Tomasz Napierala  *    notice, this list of conditions and the following disclaimer.
17447636e4SEdward Tomasz Napierala  * 2. Redistributions in binary form must reproduce the above copyright
18447636e4SEdward Tomasz Napierala  *    notice, this list of conditions and the following disclaimer in the
19447636e4SEdward Tomasz Napierala  *    documentation and/or other materials provided with the distribution.
20447636e4SEdward Tomasz Napierala  *
21447636e4SEdward Tomasz Napierala  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
22447636e4SEdward Tomasz Napierala  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23447636e4SEdward Tomasz Napierala  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24447636e4SEdward Tomasz Napierala  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
25447636e4SEdward Tomasz Napierala  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26447636e4SEdward Tomasz Napierala  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27447636e4SEdward Tomasz Napierala  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28447636e4SEdward Tomasz Napierala  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29447636e4SEdward Tomasz Napierala  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30447636e4SEdward Tomasz Napierala  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31447636e4SEdward Tomasz Napierala  * SUCH DAMAGE.
32447636e4SEdward Tomasz Napierala  */
33447636e4SEdward Tomasz Napierala 
34447636e4SEdward Tomasz Napierala #define __ELF_WORD_SIZE 32
35447636e4SEdward Tomasz Napierala #include <compat/linux/linux_elf.c>
36