xref: /openbmc/qemu/bsd-user/i386/target_arch_elf.h (revision 813bac3d8d70d85cb7835f7945eb9eed84c2d8d0)
166ef252fSWarner Losh /*
266ef252fSWarner Losh  *  i386 ELF definitions
366ef252fSWarner Losh  *
466ef252fSWarner Losh  *  Copyright (c) 2013 Stacey D. Son
566ef252fSWarner Losh  *
666ef252fSWarner Losh  *  This program is free software; you can redistribute it and/or modify
766ef252fSWarner Losh  *  it under the terms of the GNU General Public License as published by
866ef252fSWarner Losh  *  the Free Software Foundation; either version 2 of the License, or
966ef252fSWarner Losh  *  (at your option) any later version.
1066ef252fSWarner Losh  *
1166ef252fSWarner Losh  *  This program is distributed in the hope that it will be useful,
1266ef252fSWarner Losh  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
1366ef252fSWarner Losh  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1466ef252fSWarner Losh  *  GNU General Public License for more details.
1566ef252fSWarner Losh  *
1666ef252fSWarner Losh  *  You should have received a copy of the GNU General Public License
1766ef252fSWarner Losh  *  along with this program; if not, see <http://www.gnu.org/licenses/>.
1866ef252fSWarner Losh  */
19*9c092804SMarkus Armbruster 
20*9c092804SMarkus Armbruster #ifndef TARGET_ARCH_ELF_H
21*9c092804SMarkus Armbruster #define TARGET_ARCH_ELF_H
2266ef252fSWarner Losh 
23a8fe6d5dSWarner Losh #define ELF_ET_DYN_LOAD_ADDR    0x01001000
2466ef252fSWarner Losh #define elf_check_arch(x) (((x) == EM_386) || ((x) == EM_486))
2566ef252fSWarner Losh 
26a8fe6d5dSWarner Losh #define ELF_HWCAP       0 /* FreeBSD doesn't do AT_HWCAP{,2} on x86 */
27a8fe6d5dSWarner Losh 
2866ef252fSWarner Losh #define ELF_CLASS       ELFCLASS32
2966ef252fSWarner Losh #define ELF_DATA        ELFDATA2LSB
3066ef252fSWarner Losh #define ELF_ARCH        EM_386
3166ef252fSWarner Losh 
3266ef252fSWarner Losh #define USE_ELF_CORE_DUMP
3366ef252fSWarner Losh #define ELF_EXEC_PAGESIZE       4096
3466ef252fSWarner Losh 
35*9c092804SMarkus Armbruster #endif /* TARGET_ARCH_ELF_H */
36