FreeBSD Bugzilla – Attachment 173064 Details for
Bug 211419
[NEW PORT] misc/linux-kernel: Build customized Linux kernels
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
linux-kernel.shar
linux-kernel.shar (text/plain), 165.73 KB, created by
Tobias Kortkamp
on 2016-07-28 09:49:10 UTC
(
hide
)
Description:
linux-kernel.shar
Filename:
MIME Type:
Creator:
Tobias Kortkamp
Created:
2016-07-28 09:49:10 UTC
Size:
165.73 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># linux-kernel ># linux-kernel/files ># linux-kernel/files/patch-arch_x86_Makefile ># linux-kernel/files/patch-scripts_kconfig_lxdialog_check-lxdialog.sh ># linux-kernel/files/patch-freebsd-build-support_include_elf.h ># linux-kernel/files/patch-scripts_package_buildtar ># linux-kernel/files/patch-Documentation_DocBook_media_Makefile ># linux-kernel/files/patch-freebsd-build-support_include_bits_auxv.h ># linux-kernel/Makefile ># linux-kernel/distinfo ># linux-kernel/pkg-descr ># >echo c - linux-kernel >mkdir -p linux-kernel > /dev/null 2>&1 >echo c - linux-kernel/files >mkdir -p linux-kernel/files > /dev/null 2>&1 >echo x - linux-kernel/files/patch-arch_x86_Makefile >sed 's/^X//' >linux-kernel/files/patch-arch_x86_Makefile << 'f5cb446088999320c1f7a185da660fca' >X--- arch/x86/Makefile.orig 2015-06-08 03:23:50 UTC >X+++ arch/x86/Makefile >X@@ -2,7 +2,7 @@ >X >X # select defconfig based on actual architecture >X ifeq ($(ARCH),x86) >X- ifeq ($(shell uname -m),x86_64) >X+ ifeq ($(shell uname -m),amd64) >X KBUILD_DEFCONFIG := x86_64_defconfig >X else >X KBUILD_DEFCONFIG := i386_defconfig >f5cb446088999320c1f7a185da660fca >echo x - linux-kernel/files/patch-scripts_kconfig_lxdialog_check-lxdialog.sh >sed 's/^X//' >linux-kernel/files/patch-scripts_kconfig_lxdialog_check-lxdialog.sh << 'c8a247b1fd6967e8a3433bf6d661f0f2' >X--- scripts/kconfig/lxdialog/check-lxdialog.sh.orig 2015-06-08 03:23:50 UTC >X+++ scripts/kconfig/lxdialog/check-lxdialog.sh >X@@ -4,39 +4,14 @@ >X # What library to link >X ldflags() >X { >X- pkg-config --libs ncursesw 2>/dev/null && exit >X- pkg-config --libs ncurses 2>/dev/null && exit >X- for ext in so a dll.a dylib ; do >X- for lib in ncursesw ncurses curses ; do >X- $cc -print-file-name=lib${lib}.${ext} | grep -q / >X- if [ $? -eq 0 ]; then >X- echo "-l${lib}" >X- exit >X- fi >X- done >X- done >X- exit 1 >X+ echo "-lncursesw" >X+ exit >X } >X >X # Where is ncurses.h? >X ccflags() >X { >X- if pkg-config --cflags ncursesw 2>/dev/null; then >X- echo '-DCURSES_LOC="<ncurses.h>" -DNCURSES_WIDECHAR=1' >X- elif pkg-config --cflags ncurses 2>/dev/null; then >X- echo '-DCURSES_LOC="<ncurses.h>"' >X- elif [ -f /usr/include/ncursesw/curses.h ]; then >X- echo '-I/usr/include/ncursesw -DCURSES_LOC="<curses.h>"' >X- echo ' -DNCURSES_WIDECHAR=1' >X- elif [ -f /usr/include/ncurses/ncurses.h ]; then >X- echo '-I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>"' >X- elif [ -f /usr/include/ncurses/curses.h ]; then >X- echo '-I/usr/include/ncurses -DCURSES_LOC="<curses.h>"' >X- elif [ -f /usr/include/ncurses.h ]; then >X- echo '-DCURSES_LOC="<ncurses.h>"' >X- else >X- echo '-DCURSES_LOC="<curses.h>"' >X- fi >X+ echo '-DCURSES_LOC="<ncurses.h>" -DNCURSES_WIDECHAR=1' >X } >X >X # Temp file, try to clean up after us >c8a247b1fd6967e8a3433bf6d661f0f2 >echo x - linux-kernel/files/patch-freebsd-build-support_include_elf.h >sed 's/^X//' >linux-kernel/files/patch-freebsd-build-support_include_elf.h << '1c67fabe67213eca9cf1281b7c023330' >X--- freebsd-build-support/include/elf.h.orig 2015-06-12 22:04:41 UTC >X+++ freebsd-build-support/include/elf.h >X@@ -0,0 +1,3304 @@ >X+/* This file defines standard ELF types, structures, and macros. >X+ Copyright (C) 1995-2014 Free Software Foundation, Inc. >X+ This file is part of the GNU C Library. >X+ >X+ The GNU C Library is free software; you can redistribute it and/or >X+ modify it under the terms of the GNU Lesser General Public >X+ License as published by the Free Software Foundation; either >X+ version 2.1 of the License, or (at your option) any later version. >X+ >X+ The GNU C Library is distributed in the hope that it will be useful, >X+ but WITHOUT ANY WARRANTY; without even the implied warranty of >X+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU >X+ Lesser General Public License for more details. >X+ >X+ You should have received a copy of the GNU Lesser General Public >X+ License along with the GNU C Library; if not, see >X+ <http://www.gnu.org/licenses/>. */ >X+ >X+#ifndef _ELF_H >X+#define _ELF_H 1 >X+ >X+#include <features.h> >X+ >X+__BEGIN_DECLS >X+ >X+/* Standard ELF types. */ >X+ >X+#include <stdint.h> >X+ >X+/* Type for a 16-bit quantity. */ >X+typedef uint16_t Elf32_Half; >X+typedef uint16_t Elf64_Half; >X+ >X+/* Types for signed and unsigned 32-bit quantities. */ >X+typedef uint32_t Elf32_Word; >X+typedef int32_t Elf32_Sword; >X+typedef uint32_t Elf64_Word; >X+typedef int32_t Elf64_Sword; >X+ >X+/* Types for signed and unsigned 64-bit quantities. */ >X+typedef uint64_t Elf32_Xword; >X+typedef int64_t Elf32_Sxword; >X+typedef uint64_t Elf64_Xword; >X+typedef int64_t Elf64_Sxword; >X+ >X+/* Type of addresses. */ >X+typedef uint32_t Elf32_Addr; >X+typedef uint64_t Elf64_Addr; >X+ >X+/* Type of file offsets. */ >X+typedef uint32_t Elf32_Off; >X+typedef uint64_t Elf64_Off; >X+ >X+/* Type for section indices, which are 16-bit quantities. */ >X+typedef uint16_t Elf32_Section; >X+typedef uint16_t Elf64_Section; >X+ >X+/* Type for version symbol information. */ >X+typedef Elf32_Half Elf32_Versym; >X+typedef Elf64_Half Elf64_Versym; >X+ >X+ >X+/* The ELF file header. This appears at the start of every ELF file. */ >X+ >X+#define EI_NIDENT (16) >X+ >X+typedef struct >X+{ >X+ unsigned char e_ident[EI_NIDENT]; /* Magic number and other info */ >X+ Elf32_Half e_type; /* Object file type */ >X+ Elf32_Half e_machine; /* Architecture */ >X+ Elf32_Word e_version; /* Object file version */ >X+ Elf32_Addr e_entry; /* Entry point virtual address */ >X+ Elf32_Off e_phoff; /* Program header table file offset */ >X+ Elf32_Off e_shoff; /* Section header table file offset */ >X+ Elf32_Word e_flags; /* Processor-specific flags */ >X+ Elf32_Half e_ehsize; /* ELF header size in bytes */ >X+ Elf32_Half e_phentsize; /* Program header table entry size */ >X+ Elf32_Half e_phnum; /* Program header table entry count */ >X+ Elf32_Half e_shentsize; /* Section header table entry size */ >X+ Elf32_Half e_shnum; /* Section header table entry count */ >X+ Elf32_Half e_shstrndx; /* Section header string table index */ >X+} Elf32_Ehdr; >X+ >X+typedef struct >X+{ >X+ unsigned char e_ident[EI_NIDENT]; /* Magic number and other info */ >X+ Elf64_Half e_type; /* Object file type */ >X+ Elf64_Half e_machine; /* Architecture */ >X+ Elf64_Word e_version; /* Object file version */ >X+ Elf64_Addr e_entry; /* Entry point virtual address */ >X+ Elf64_Off e_phoff; /* Program header table file offset */ >X+ Elf64_Off e_shoff; /* Section header table file offset */ >X+ Elf64_Word e_flags; /* Processor-specific flags */ >X+ Elf64_Half e_ehsize; /* ELF header size in bytes */ >X+ Elf64_Half e_phentsize; /* Program header table entry size */ >X+ Elf64_Half e_phnum; /* Program header table entry count */ >X+ Elf64_Half e_shentsize; /* Section header table entry size */ >X+ Elf64_Half e_shnum; /* Section header table entry count */ >X+ Elf64_Half e_shstrndx; /* Section header string table index */ >X+} Elf64_Ehdr; >X+ >X+/* Fields in the e_ident array. The EI_* macros are indices into the >X+ array. The macros under each EI_* macro are the values the byte >X+ may have. */ >X+ >X+#define EI_MAG0 0 /* File identification byte 0 index */ >X+#define ELFMAG0 0x7f /* Magic number byte 0 */ >X+ >X+#define EI_MAG1 1 /* File identification byte 1 index */ >X+#define ELFMAG1 'E' /* Magic number byte 1 */ >X+ >X+#define EI_MAG2 2 /* File identification byte 2 index */ >X+#define ELFMAG2 'L' /* Magic number byte 2 */ >X+ >X+#define EI_MAG3 3 /* File identification byte 3 index */ >X+#define ELFMAG3 'F' /* Magic number byte 3 */ >X+ >X+/* Conglomeration of the identification bytes, for easy testing as a word. */ >X+#define ELFMAG "\177ELF" >X+#define SELFMAG 4 >X+ >X+#define EI_CLASS 4 /* File class byte index */ >X+#define ELFCLASSNONE 0 /* Invalid class */ >X+#define ELFCLASS32 1 /* 32-bit objects */ >X+#define ELFCLASS64 2 /* 64-bit objects */ >X+#define ELFCLASSNUM 3 >X+ >X+#define EI_DATA 5 /* Data encoding byte index */ >X+#define ELFDATANONE 0 /* Invalid data encoding */ >X+#define ELFDATA2LSB 1 /* 2's complement, little endian */ >X+#define ELFDATA2MSB 2 /* 2's complement, big endian */ >X+#define ELFDATANUM 3 >X+ >X+#define EI_VERSION 6 /* File version byte index */ >X+ /* Value must be EV_CURRENT */ >X+ >X+#define EI_OSABI 7 /* OS ABI identification */ >X+#define ELFOSABI_NONE 0 /* UNIX System V ABI */ >X+#define ELFOSABI_SYSV 0 /* Alias. */ >X+#define ELFOSABI_HPUX 1 /* HP-UX */ >X+#define ELFOSABI_NETBSD 2 /* NetBSD. */ >X+#define ELFOSABI_GNU 3 /* Object uses GNU ELF extensions. */ >X+#define ELFOSABI_LINUX ELFOSABI_GNU /* Compatibility alias. */ >X+#define ELFOSABI_SOLARIS 6 /* Sun Solaris. */ >X+#define ELFOSABI_AIX 7 /* IBM AIX. */ >X+#define ELFOSABI_IRIX 8 /* SGI Irix. */ >X+#define ELFOSABI_FREEBSD 9 /* FreeBSD. */ >X+#define ELFOSABI_TRU64 10 /* Compaq TRU64 UNIX. */ >X+#define ELFOSABI_MODESTO 11 /* Novell Modesto. */ >X+#define ELFOSABI_OPENBSD 12 /* OpenBSD. */ >X+#define ELFOSABI_ARM_AEABI 64 /* ARM EABI */ >X+#define ELFOSABI_ARM 97 /* ARM */ >X+#define ELFOSABI_STANDALONE 255 /* Standalone (embedded) application */ >X+ >X+#define EI_ABIVERSION 8 /* ABI version */ >X+ >X+#define EI_PAD 9 /* Byte index of padding bytes */ >X+ >X+/* Legal values for e_type (object file type). */ >X+ >X+#define ET_NONE 0 /* No file type */ >X+#define ET_REL 1 /* Relocatable file */ >X+#define ET_EXEC 2 /* Executable file */ >X+#define ET_DYN 3 /* Shared object file */ >X+#define ET_CORE 4 /* Core file */ >X+#define ET_NUM 5 /* Number of defined types */ >X+#define ET_LOOS 0xfe00 /* OS-specific range start */ >X+#define ET_HIOS 0xfeff /* OS-specific range end */ >X+#define ET_LOPROC 0xff00 /* Processor-specific range start */ >X+#define ET_HIPROC 0xffff /* Processor-specific range end */ >X+ >X+/* Legal values for e_machine (architecture). */ >X+ >X+#define EM_NONE 0 /* No machine */ >X+#define EM_M32 1 /* AT&T WE 32100 */ >X+#define EM_SPARC 2 /* SUN SPARC */ >X+#define EM_386 3 /* Intel 80386 */ >X+#define EM_68K 4 /* Motorola m68k family */ >X+#define EM_88K 5 /* Motorola m88k family */ >X+#define EM_860 7 /* Intel 80860 */ >X+#define EM_MIPS 8 /* MIPS R3000 big-endian */ >X+#define EM_S370 9 /* IBM System/370 */ >X+#define EM_MIPS_RS3_LE 10 /* MIPS R3000 little-endian */ >X+ >X+#define EM_PARISC 15 /* HPPA */ >X+#define EM_VPP500 17 /* Fujitsu VPP500 */ >X+#define EM_SPARC32PLUS 18 /* Sun's "v8plus" */ >X+#define EM_960 19 /* Intel 80960 */ >X+#define EM_PPC 20 /* PowerPC */ >X+#define EM_PPC64 21 /* PowerPC 64-bit */ >X+#define EM_S390 22 /* IBM S390 */ >X+ >X+#define EM_V800 36 /* NEC V800 series */ >X+#define EM_FR20 37 /* Fujitsu FR20 */ >X+#define EM_RH32 38 /* TRW RH-32 */ >X+#define EM_RCE 39 /* Motorola RCE */ >X+#define EM_ARM 40 /* ARM */ >X+#define EM_FAKE_ALPHA 41 /* Digital Alpha */ >X+#define EM_SH 42 /* Hitachi SH */ >X+#define EM_SPARCV9 43 /* SPARC v9 64-bit */ >X+#define EM_TRICORE 44 /* Siemens Tricore */ >X+#define EM_ARC 45 /* Argonaut RISC Core */ >X+#define EM_H8_300 46 /* Hitachi H8/300 */ >X+#define EM_H8_300H 47 /* Hitachi H8/300H */ >X+#define EM_H8S 48 /* Hitachi H8S */ >X+#define EM_H8_500 49 /* Hitachi H8/500 */ >X+#define EM_IA_64 50 /* Intel Merced */ >X+#define EM_MIPS_X 51 /* Stanford MIPS-X */ >X+#define EM_COLDFIRE 52 /* Motorola Coldfire */ >X+#define EM_68HC12 53 /* Motorola M68HC12 */ >X+#define EM_MMA 54 /* Fujitsu MMA Multimedia Accelerator*/ >X+#define EM_PCP 55 /* Siemens PCP */ >X+#define EM_NCPU 56 /* Sony nCPU embeeded RISC */ >X+#define EM_NDR1 57 /* Denso NDR1 microprocessor */ >X+#define EM_STARCORE 58 /* Motorola Start*Core processor */ >X+#define EM_ME16 59 /* Toyota ME16 processor */ >X+#define EM_ST100 60 /* STMicroelectronic ST100 processor */ >X+#define EM_TINYJ 61 /* Advanced Logic Corp. Tinyj emb.fam*/ >X+#define EM_X86_64 62 /* AMD x86-64 architecture */ >X+#define EM_PDSP 63 /* Sony DSP Processor */ >X+ >X+#define EM_FX66 66 /* Siemens FX66 microcontroller */ >X+#define EM_ST9PLUS 67 /* STMicroelectronics ST9+ 8/16 mc */ >X+#define EM_ST7 68 /* STmicroelectronics ST7 8 bit mc */ >X+#define EM_68HC16 69 /* Motorola MC68HC16 microcontroller */ >X+#define EM_68HC11 70 /* Motorola MC68HC11 microcontroller */ >X+#define EM_68HC08 71 /* Motorola MC68HC08 microcontroller */ >X+#define EM_68HC05 72 /* Motorola MC68HC05 microcontroller */ >X+#define EM_SVX 73 /* Silicon Graphics SVx */ >X+#define EM_ST19 74 /* STMicroelectronics ST19 8 bit mc */ >X+#define EM_VAX 75 /* Digital VAX */ >X+#define EM_CRIS 76 /* Axis Communications 32-bit embedded processor */ >X+#define EM_JAVELIN 77 /* Infineon Technologies 32-bit embedded processor */ >X+#define EM_FIREPATH 78 /* Element 14 64-bit DSP Processor */ >X+#define EM_ZSP 79 /* LSI Logic 16-bit DSP Processor */ >X+#define EM_MMIX 80 /* Donald Knuth's educational 64-bit processor */ >X+#define EM_HUANY 81 /* Harvard University machine-independent object files */ >X+#define EM_PRISM 82 /* SiTera Prism */ >X+#define EM_AVR 83 /* Atmel AVR 8-bit microcontroller */ >X+#define EM_FR30 84 /* Fujitsu FR30 */ >X+#define EM_D10V 85 /* Mitsubishi D10V */ >X+#define EM_D30V 86 /* Mitsubishi D30V */ >X+#define EM_V850 87 /* NEC v850 */ >X+#define EM_M32R 88 /* Mitsubishi M32R */ >X+#define EM_MN10300 89 /* Matsushita MN10300 */ >X+#define EM_MN10200 90 /* Matsushita MN10200 */ >X+#define EM_PJ 91 /* picoJava */ >X+#define EM_OPENRISC 92 /* OpenRISC 32-bit embedded processor */ >X+#define EM_ARC_A5 93 /* ARC Cores Tangent-A5 */ >X+#define EM_XTENSA 94 /* Tensilica Xtensa Architecture */ >X+#define EM_AARCH64 183 /* ARM AARCH64 */ >X+#define EM_TILEPRO 188 /* Tilera TILEPro */ >X+#define EM_MICROBLAZE 189 /* Xilinx MicroBlaze */ >X+#define EM_TILEGX 191 /* Tilera TILE-Gx */ >X+#define EM_NUM 192 >X+ >X+/* If it is necessary to assign new unofficial EM_* values, please >X+ pick large random numbers (0x8523, 0xa7f2, etc.) to minimize the >X+ chances of collision with official or non-GNU unofficial values. */ >X+ >X+#define EM_ALPHA 0x9026 >X+ >X+/* Legal values for e_version (version). */ >X+ >X+#define EV_NONE 0 /* Invalid ELF version */ >X+#define EV_CURRENT 1 /* Current version */ >X+#define EV_NUM 2 >X+ >X+/* Section header. */ >X+ >X+typedef struct >X+{ >X+ Elf32_Word sh_name; /* Section name (string tbl index) */ >X+ Elf32_Word sh_type; /* Section type */ >X+ Elf32_Word sh_flags; /* Section flags */ >X+ Elf32_Addr sh_addr; /* Section virtual addr at execution */ >X+ Elf32_Off sh_offset; /* Section file offset */ >X+ Elf32_Word sh_size; /* Section size in bytes */ >X+ Elf32_Word sh_link; /* Link to another section */ >X+ Elf32_Word sh_info; /* Additional section information */ >X+ Elf32_Word sh_addralign; /* Section alignment */ >X+ Elf32_Word sh_entsize; /* Entry size if section holds table */ >X+} Elf32_Shdr; >X+ >X+typedef struct >X+{ >X+ Elf64_Word sh_name; /* Section name (string tbl index) */ >X+ Elf64_Word sh_type; /* Section type */ >X+ Elf64_Xword sh_flags; /* Section flags */ >X+ Elf64_Addr sh_addr; /* Section virtual addr at execution */ >X+ Elf64_Off sh_offset; /* Section file offset */ >X+ Elf64_Xword sh_size; /* Section size in bytes */ >X+ Elf64_Word sh_link; /* Link to another section */ >X+ Elf64_Word sh_info; /* Additional section information */ >X+ Elf64_Xword sh_addralign; /* Section alignment */ >X+ Elf64_Xword sh_entsize; /* Entry size if section holds table */ >X+} Elf64_Shdr; >X+ >X+/* Special section indices. */ >X+ >X+#define SHN_UNDEF 0 /* Undefined section */ >X+#define SHN_LORESERVE 0xff00 /* Start of reserved indices */ >X+#define SHN_LOPROC 0xff00 /* Start of processor-specific */ >X+#define SHN_BEFORE 0xff00 /* Order section before all others >X+ (Solaris). */ >X+#define SHN_AFTER 0xff01 /* Order section after all others >X+ (Solaris). */ >X+#define SHN_HIPROC 0xff1f /* End of processor-specific */ >X+#define SHN_LOOS 0xff20 /* Start of OS-specific */ >X+#define SHN_HIOS 0xff3f /* End of OS-specific */ >X+#define SHN_ABS 0xfff1 /* Associated symbol is absolute */ >X+#define SHN_COMMON 0xfff2 /* Associated symbol is common */ >X+#define SHN_XINDEX 0xffff /* Index is in extra table. */ >X+#define SHN_HIRESERVE 0xffff /* End of reserved indices */ >X+ >X+/* Legal values for sh_type (section type). */ >X+ >X+#define SHT_NULL 0 /* Section header table entry unused */ >X+#define SHT_PROGBITS 1 /* Program data */ >X+#define SHT_SYMTAB 2 /* Symbol table */ >X+#define SHT_STRTAB 3 /* String table */ >X+#define SHT_RELA 4 /* Relocation entries with addends */ >X+#define SHT_HASH 5 /* Symbol hash table */ >X+#define SHT_DYNAMIC 6 /* Dynamic linking information */ >X+#define SHT_NOTE 7 /* Notes */ >X+#define SHT_NOBITS 8 /* Program space with no data (bss) */ >X+#define SHT_REL 9 /* Relocation entries, no addends */ >X+#define SHT_SHLIB 10 /* Reserved */ >X+#define SHT_DYNSYM 11 /* Dynamic linker symbol table */ >X+#define SHT_INIT_ARRAY 14 /* Array of constructors */ >X+#define SHT_FINI_ARRAY 15 /* Array of destructors */ >X+#define SHT_PREINIT_ARRAY 16 /* Array of pre-constructors */ >X+#define SHT_GROUP 17 /* Section group */ >X+#define SHT_SYMTAB_SHNDX 18 /* Extended section indeces */ >X+#define SHT_NUM 19 /* Number of defined types. */ >X+#define SHT_LOOS 0x60000000 /* Start OS-specific. */ >X+#define SHT_GNU_ATTRIBUTES 0x6ffffff5 /* Object attributes. */ >X+#define SHT_GNU_HASH 0x6ffffff6 /* GNU-style hash table. */ >X+#define SHT_GNU_LIBLIST 0x6ffffff7 /* Prelink library list */ >X+#define SHT_CHECKSUM 0x6ffffff8 /* Checksum for DSO content. */ >X+#define SHT_LOSUNW 0x6ffffffa /* Sun-specific low bound. */ >X+#define SHT_SUNW_move 0x6ffffffa >X+#define SHT_SUNW_COMDAT 0x6ffffffb >X+#define SHT_SUNW_syminfo 0x6ffffffc >X+#define SHT_GNU_verdef 0x6ffffffd /* Version definition section. */ >X+#define SHT_GNU_verneed 0x6ffffffe /* Version needs section. */ >X+#define SHT_GNU_versym 0x6fffffff /* Version symbol table. */ >X+#define SHT_HISUNW 0x6fffffff /* Sun-specific high bound. */ >X+#define SHT_HIOS 0x6fffffff /* End OS-specific type */ >X+#define SHT_LOPROC 0x70000000 /* Start of processor-specific */ >X+#define SHT_HIPROC 0x7fffffff /* End of processor-specific */ >X+#define SHT_LOUSER 0x80000000 /* Start of application-specific */ >X+#define SHT_HIUSER 0x8fffffff /* End of application-specific */ >X+ >X+/* Legal values for sh_flags (section flags). */ >X+ >X+#define SHF_WRITE (1 << 0) /* Writable */ >X+#define SHF_ALLOC (1 << 1) /* Occupies memory during execution */ >X+#define SHF_EXECINSTR (1 << 2) /* Executable */ >X+#define SHF_MERGE (1 << 4) /* Might be merged */ >X+#define SHF_STRINGS (1 << 5) /* Contains nul-terminated strings */ >X+#define SHF_INFO_LINK (1 << 6) /* `sh_info' contains SHT index */ >X+#define SHF_LINK_ORDER (1 << 7) /* Preserve order after combining */ >X+#define SHF_OS_NONCONFORMING (1 << 8) /* Non-standard OS specific handling >X+ required */ >X+#define SHF_GROUP (1 << 9) /* Section is member of a group. */ >X+#define SHF_TLS (1 << 10) /* Section hold thread-local data. */ >X+#define SHF_MASKOS 0x0ff00000 /* OS-specific. */ >X+#define SHF_MASKPROC 0xf0000000 /* Processor-specific */ >X+#define SHF_ORDERED (1 << 30) /* Special ordering requirement >X+ (Solaris). */ >X+#define SHF_EXCLUDE (1 << 31) /* Section is excluded unless >X+ referenced or allocated (Solaris).*/ >X+ >X+/* Section group handling. */ >X+#define GRP_COMDAT 0x1 /* Mark group as COMDAT. */ >X+ >X+/* Symbol table entry. */ >X+ >X+typedef struct >X+{ >X+ Elf32_Word st_name; /* Symbol name (string tbl index) */ >X+ Elf32_Addr st_value; /* Symbol value */ >X+ Elf32_Word st_size; /* Symbol size */ >X+ unsigned char st_info; /* Symbol type and binding */ >X+ unsigned char st_other; /* Symbol visibility */ >X+ Elf32_Section st_shndx; /* Section index */ >X+} Elf32_Sym; >X+ >X+typedef struct >X+{ >X+ Elf64_Word st_name; /* Symbol name (string tbl index) */ >X+ unsigned char st_info; /* Symbol type and binding */ >X+ unsigned char st_other; /* Symbol visibility */ >X+ Elf64_Section st_shndx; /* Section index */ >X+ Elf64_Addr st_value; /* Symbol value */ >X+ Elf64_Xword st_size; /* Symbol size */ >X+} Elf64_Sym; >X+ >X+/* The syminfo section if available contains additional information about >X+ every dynamic symbol. */ >X+ >X+typedef struct >X+{ >X+ Elf32_Half si_boundto; /* Direct bindings, symbol bound to */ >X+ Elf32_Half si_flags; /* Per symbol flags */ >X+} Elf32_Syminfo; >X+ >X+typedef struct >X+{ >X+ Elf64_Half si_boundto; /* Direct bindings, symbol bound to */ >X+ Elf64_Half si_flags; /* Per symbol flags */ >X+} Elf64_Syminfo; >X+ >X+/* Possible values for si_boundto. */ >X+#define SYMINFO_BT_SELF 0xffff /* Symbol bound to self */ >X+#define SYMINFO_BT_PARENT 0xfffe /* Symbol bound to parent */ >X+#define SYMINFO_BT_LOWRESERVE 0xff00 /* Beginning of reserved entries */ >X+ >X+/* Possible bitmasks for si_flags. */ >X+#define SYMINFO_FLG_DIRECT 0x0001 /* Direct bound symbol */ >X+#define SYMINFO_FLG_PASSTHRU 0x0002 /* Pass-thru symbol for translator */ >X+#define SYMINFO_FLG_COPY 0x0004 /* Symbol is a copy-reloc */ >X+#define SYMINFO_FLG_LAZYLOAD 0x0008 /* Symbol bound to object to be lazy >X+ loaded */ >X+/* Syminfo version values. */ >X+#define SYMINFO_NONE 0 >X+#define SYMINFO_CURRENT 1 >X+#define SYMINFO_NUM 2 >X+ >X+ >X+/* How to extract and insert information held in the st_info field. */ >X+ >X+#define ELF32_ST_BIND(val) (((unsigned char) (val)) >> 4) >X+#define ELF32_ST_TYPE(val) ((val) & 0xf) >X+#define ELF32_ST_INFO(bind, type) (((bind) << 4) + ((type) & 0xf)) >X+ >X+/* Both Elf32_Sym and Elf64_Sym use the same one-byte st_info field. */ >X+#define ELF64_ST_BIND(val) ELF32_ST_BIND (val) >X+#define ELF64_ST_TYPE(val) ELF32_ST_TYPE (val) >X+#define ELF64_ST_INFO(bind, type) ELF32_ST_INFO ((bind), (type)) >X+ >X+/* Legal values for ST_BIND subfield of st_info (symbol binding). */ >X+ >X+#define STB_LOCAL 0 /* Local symbol */ >X+#define STB_GLOBAL 1 /* Global symbol */ >X+#define STB_WEAK 2 /* Weak symbol */ >X+#define STB_NUM 3 /* Number of defined types. */ >X+#define STB_LOOS 10 /* Start of OS-specific */ >X+#define STB_GNU_UNIQUE 10 /* Unique symbol. */ >X+#define STB_HIOS 12 /* End of OS-specific */ >X+#define STB_LOPROC 13 /* Start of processor-specific */ >X+#define STB_HIPROC 15 /* End of processor-specific */ >X+ >X+/* Legal values for ST_TYPE subfield of st_info (symbol type). */ >X+ >X+#define STT_NOTYPE 0 /* Symbol type is unspecified */ >X+#define STT_OBJECT 1 /* Symbol is a data object */ >X+#define STT_FUNC 2 /* Symbol is a code object */ >X+#define STT_SECTION 3 /* Symbol associated with a section */ >X+#define STT_FILE 4 /* Symbol's name is file name */ >X+#define STT_COMMON 5 /* Symbol is a common data object */ >X+#define STT_TLS 6 /* Symbol is thread-local data object*/ >X+#define STT_NUM 7 /* Number of defined types. */ >X+#define STT_LOOS 10 /* Start of OS-specific */ >X+#define STT_GNU_IFUNC 10 /* Symbol is indirect code object */ >X+#define STT_HIOS 12 /* End of OS-specific */ >X+#define STT_LOPROC 13 /* Start of processor-specific */ >X+#define STT_HIPROC 15 /* End of processor-specific */ >X+ >X+ >X+/* Symbol table indices are found in the hash buckets and chain table >X+ of a symbol hash table section. This special index value indicates >X+ the end of a chain, meaning no further symbols are found in that bucket. */ >X+ >X+#define STN_UNDEF 0 /* End of a chain. */ >X+ >X+ >X+/* How to extract and insert information held in the st_other field. */ >X+ >X+#define ELF32_ST_VISIBILITY(o) ((o) & 0x03) >X+ >X+/* For ELF64 the definitions are the same. */ >X+#define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) >X+ >X+/* Symbol visibility specification encoded in the st_other field. */ >X+#define STV_DEFAULT 0 /* Default symbol visibility rules */ >X+#define STV_INTERNAL 1 /* Processor specific hidden class */ >X+#define STV_HIDDEN 2 /* Sym unavailable in other modules */ >X+#define STV_PROTECTED 3 /* Not preemptible, not exported */ >X+ >X+ >X+/* Relocation table entry without addend (in section of type SHT_REL). */ >X+ >X+typedef struct >X+{ >X+ Elf32_Addr r_offset; /* Address */ >X+ Elf32_Word r_info; /* Relocation type and symbol index */ >X+} Elf32_Rel; >X+ >X+/* I have seen two different definitions of the Elf64_Rel and >X+ Elf64_Rela structures, so we'll leave them out until Novell (or >X+ whoever) gets their act together. */ >X+/* The following, at least, is used on Sparc v9, MIPS, and Alpha. */ >X+ >X+typedef struct >X+{ >X+ Elf64_Addr r_offset; /* Address */ >X+ Elf64_Xword r_info; /* Relocation type and symbol index */ >X+} Elf64_Rel; >X+ >X+/* Relocation table entry with addend (in section of type SHT_RELA). */ >X+ >X+typedef struct >X+{ >X+ Elf32_Addr r_offset; /* Address */ >X+ Elf32_Word r_info; /* Relocation type and symbol index */ >X+ Elf32_Sword r_addend; /* Addend */ >X+} Elf32_Rela; >X+ >X+typedef struct >X+{ >X+ Elf64_Addr r_offset; /* Address */ >X+ Elf64_Xword r_info; /* Relocation type and symbol index */ >X+ Elf64_Sxword r_addend; /* Addend */ >X+} Elf64_Rela; >X+ >X+/* How to extract and insert information held in the r_info field. */ >X+ >X+#define ELF32_R_SYM(val) ((val) >> 8) >X+#define ELF32_R_TYPE(val) ((val) & 0xff) >X+#define ELF32_R_INFO(sym, type) (((sym) << 8) + ((type) & 0xff)) >X+ >X+#define ELF64_R_SYM(i) ((i) >> 32) >X+#define ELF64_R_TYPE(i) ((i) & 0xffffffff) >X+#define ELF64_R_INFO(sym,type) ((((Elf64_Xword) (sym)) << 32) + (type)) >X+ >X+/* Program segment header. */ >X+ >X+typedef struct >X+{ >X+ Elf32_Word p_type; /* Segment type */ >X+ Elf32_Off p_offset; /* Segment file offset */ >X+ Elf32_Addr p_vaddr; /* Segment virtual address */ >X+ Elf32_Addr p_paddr; /* Segment physical address */ >X+ Elf32_Word p_filesz; /* Segment size in file */ >X+ Elf32_Word p_memsz; /* Segment size in memory */ >X+ Elf32_Word p_flags; /* Segment flags */ >X+ Elf32_Word p_align; /* Segment alignment */ >X+} Elf32_Phdr; >X+ >X+typedef struct >X+{ >X+ Elf64_Word p_type; /* Segment type */ >X+ Elf64_Word p_flags; /* Segment flags */ >X+ Elf64_Off p_offset; /* Segment file offset */ >X+ Elf64_Addr p_vaddr; /* Segment virtual address */ >X+ Elf64_Addr p_paddr; /* Segment physical address */ >X+ Elf64_Xword p_filesz; /* Segment size in file */ >X+ Elf64_Xword p_memsz; /* Segment size in memory */ >X+ Elf64_Xword p_align; /* Segment alignment */ >X+} Elf64_Phdr; >X+ >X+/* Special value for e_phnum. This indicates that the real number of >X+ program headers is too large to fit into e_phnum. Instead the real >X+ value is in the field sh_info of section 0. */ >X+ >X+#define PN_XNUM 0xffff >X+ >X+/* Legal values for p_type (segment type). */ >X+ >X+#define PT_NULL 0 /* Program header table entry unused */ >X+#define PT_LOAD 1 /* Loadable program segment */ >X+#define PT_DYNAMIC 2 /* Dynamic linking information */ >X+#define PT_INTERP 3 /* Program interpreter */ >X+#define PT_NOTE 4 /* Auxiliary information */ >X+#define PT_SHLIB 5 /* Reserved */ >X+#define PT_PHDR 6 /* Entry for header table itself */ >X+#define PT_TLS 7 /* Thread-local storage segment */ >X+#define PT_NUM 8 /* Number of defined types */ >X+#define PT_LOOS 0x60000000 /* Start of OS-specific */ >X+#define PT_GNU_EH_FRAME 0x6474e550 /* GCC .eh_frame_hdr segment */ >X+#define PT_GNU_STACK 0x6474e551 /* Indicates stack executability */ >X+#define PT_GNU_RELRO 0x6474e552 /* Read-only after relocation */ >X+#define PT_LOSUNW 0x6ffffffa >X+#define PT_SUNWBSS 0x6ffffffa /* Sun Specific segment */ >X+#define PT_SUNWSTACK 0x6ffffffb /* Stack segment */ >X+#define PT_HISUNW 0x6fffffff >X+#define PT_HIOS 0x6fffffff /* End of OS-specific */ >X+#define PT_LOPROC 0x70000000 /* Start of processor-specific */ >X+#define PT_HIPROC 0x7fffffff /* End of processor-specific */ >X+ >X+/* Legal values for p_flags (segment flags). */ >X+ >X+#define PF_X (1 << 0) /* Segment is executable */ >X+#define PF_W (1 << 1) /* Segment is writable */ >X+#define PF_R (1 << 2) /* Segment is readable */ >X+#define PF_MASKOS 0x0ff00000 /* OS-specific */ >X+#define PF_MASKPROC 0xf0000000 /* Processor-specific */ >X+ >X+/* Legal values for note segment descriptor types for core files. */ >X+ >X+#define NT_PRSTATUS 1 /* Contains copy of prstatus struct */ >X+#define NT_FPREGSET 2 /* Contains copy of fpregset struct */ >X+#define NT_PRPSINFO 3 /* Contains copy of prpsinfo struct */ >X+#define NT_PRXREG 4 /* Contains copy of prxregset struct */ >X+#define NT_TASKSTRUCT 4 /* Contains copy of task structure */ >X+#define NT_PLATFORM 5 /* String from sysinfo(SI_PLATFORM) */ >X+#define NT_AUXV 6 /* Contains copy of auxv array */ >X+#define NT_GWINDOWS 7 /* Contains copy of gwindows struct */ >X+#define NT_ASRS 8 /* Contains copy of asrset struct */ >X+#define NT_PSTATUS 10 /* Contains copy of pstatus struct */ >X+#define NT_PSINFO 13 /* Contains copy of psinfo struct */ >X+#define NT_PRCRED 14 /* Contains copy of prcred struct */ >X+#define NT_UTSNAME 15 /* Contains copy of utsname struct */ >X+#define NT_LWPSTATUS 16 /* Contains copy of lwpstatus struct */ >X+#define NT_LWPSINFO 17 /* Contains copy of lwpinfo struct */ >X+#define NT_PRFPXREG 20 /* Contains copy of fprxregset struct */ >X+#define NT_SIGINFO 0x53494749 /* Contains copy of siginfo_t, >X+ size might increase */ >X+#define NT_FILE 0x46494c45 /* Contains information about mapped >X+ files */ >X+#define NT_PRXFPREG 0x46e62b7f /* Contains copy of user_fxsr_struct */ >X+#define NT_PPC_VMX 0x100 /* PowerPC Altivec/VMX registers */ >X+#define NT_PPC_SPE 0x101 /* PowerPC SPE/EVR registers */ >X+#define NT_PPC_VSX 0x102 /* PowerPC VSX registers */ >X+#define NT_386_TLS 0x200 /* i386 TLS slots (struct user_desc) */ >X+#define NT_386_IOPERM 0x201 /* x86 io permission bitmap (1=deny) */ >X+#define NT_X86_XSTATE 0x202 /* x86 extended state using xsave */ >X+#define NT_S390_HIGH_GPRS 0x300 /* s390 upper register halves */ >X+#define NT_S390_TIMER 0x301 /* s390 timer register */ >X+#define NT_S390_TODCMP 0x302 /* s390 TOD clock comparator register */ >X+#define NT_S390_TODPREG 0x303 /* s390 TOD programmable register */ >X+#define NT_S390_CTRS 0x304 /* s390 control registers */ >X+#define NT_S390_PREFIX 0x305 /* s390 prefix register */ >X+#define NT_S390_LAST_BREAK 0x306 /* s390 breaking event address */ >X+#define NT_S390_SYSTEM_CALL 0x307 /* s390 system call restart data */ >X+#define NT_S390_TDB 0x308 /* s390 transaction diagnostic block */ >X+#define NT_ARM_VFP 0x400 /* ARM VFP/NEON registers */ >X+#define NT_ARM_TLS 0x401 /* ARM TLS register */ >X+#define NT_ARM_HW_BREAK 0x402 /* ARM hardware breakpoint registers */ >X+#define NT_ARM_HW_WATCH 0x403 /* ARM hardware watchpoint registers */ >X+ >X+/* Legal values for the note segment descriptor types for object files. */ >X+ >X+#define NT_VERSION 1 /* Contains a version string. */ >X+ >X+ >X+/* Dynamic section entry. */ >X+ >X+typedef struct >X+{ >X+ Elf32_Sword d_tag; /* Dynamic entry type */ >X+ union >X+ { >X+ Elf32_Word d_val; /* Integer value */ >X+ Elf32_Addr d_ptr; /* Address value */ >X+ } d_un; >X+} Elf32_Dyn; >X+ >X+typedef struct >X+{ >X+ Elf64_Sxword d_tag; /* Dynamic entry type */ >X+ union >X+ { >X+ Elf64_Xword d_val; /* Integer value */ >X+ Elf64_Addr d_ptr; /* Address value */ >X+ } d_un; >X+} Elf64_Dyn; >X+ >X+/* Legal values for d_tag (dynamic entry type). */ >X+ >X+#define DT_NULL 0 /* Marks end of dynamic section */ >X+#define DT_NEEDED 1 /* Name of needed library */ >X+#define DT_PLTRELSZ 2 /* Size in bytes of PLT relocs */ >X+#define DT_PLTGOT 3 /* Processor defined value */ >X+#define DT_HASH 4 /* Address of symbol hash table */ >X+#define DT_STRTAB 5 /* Address of string table */ >X+#define DT_SYMTAB 6 /* Address of symbol table */ >X+#define DT_RELA 7 /* Address of Rela relocs */ >X+#define DT_RELASZ 8 /* Total size of Rela relocs */ >X+#define DT_RELAENT 9 /* Size of one Rela reloc */ >X+#define DT_STRSZ 10 /* Size of string table */ >X+#define DT_SYMENT 11 /* Size of one symbol table entry */ >X+#define DT_INIT 12 /* Address of init function */ >X+#define DT_FINI 13 /* Address of termination function */ >X+#define DT_SONAME 14 /* Name of shared object */ >X+#define DT_RPATH 15 /* Library search path (deprecated) */ >X+#define DT_SYMBOLIC 16 /* Start symbol search here */ >X+#define DT_REL 17 /* Address of Rel relocs */ >X+#define DT_RELSZ 18 /* Total size of Rel relocs */ >X+#define DT_RELENT 19 /* Size of one Rel reloc */ >X+#define DT_PLTREL 20 /* Type of reloc in PLT */ >X+#define DT_DEBUG 21 /* For debugging; unspecified */ >X+#define DT_TEXTREL 22 /* Reloc might modify .text */ >X+#define DT_JMPREL 23 /* Address of PLT relocs */ >X+#define DT_BIND_NOW 24 /* Process relocations of object */ >X+#define DT_INIT_ARRAY 25 /* Array with addresses of init fct */ >X+#define DT_FINI_ARRAY 26 /* Array with addresses of fini fct */ >X+#define DT_INIT_ARRAYSZ 27 /* Size in bytes of DT_INIT_ARRAY */ >X+#define DT_FINI_ARRAYSZ 28 /* Size in bytes of DT_FINI_ARRAY */ >X+#define DT_RUNPATH 29 /* Library search path */ >X+#define DT_FLAGS 30 /* Flags for the object being loaded */ >X+#define DT_ENCODING 32 /* Start of encoded range */ >X+#define DT_PREINIT_ARRAY 32 /* Array with addresses of preinit fct*/ >X+#define DT_PREINIT_ARRAYSZ 33 /* size in bytes of DT_PREINIT_ARRAY */ >X+#define DT_NUM 34 /* Number used */ >X+#define DT_LOOS 0x6000000d /* Start of OS-specific */ >X+#define DT_HIOS 0x6ffff000 /* End of OS-specific */ >X+#define DT_LOPROC 0x70000000 /* Start of processor-specific */ >X+#define DT_HIPROC 0x7fffffff /* End of processor-specific */ >X+#define DT_PROCNUM DT_MIPS_NUM /* Most used by any processor */ >X+ >X+/* DT_* entries which fall between DT_VALRNGHI & DT_VALRNGLO use the >X+ Dyn.d_un.d_val field of the Elf*_Dyn structure. This follows Sun's >X+ approach. */ >X+#define DT_VALRNGLO 0x6ffffd00 >X+#define DT_GNU_PRELINKED 0x6ffffdf5 /* Prelinking timestamp */ >X+#define DT_GNU_CONFLICTSZ 0x6ffffdf6 /* Size of conflict section */ >X+#define DT_GNU_LIBLISTSZ 0x6ffffdf7 /* Size of library list */ >X+#define DT_CHECKSUM 0x6ffffdf8 >X+#define DT_PLTPADSZ 0x6ffffdf9 >X+#define DT_MOVEENT 0x6ffffdfa >X+#define DT_MOVESZ 0x6ffffdfb >X+#define DT_FEATURE_1 0x6ffffdfc /* Feature selection (DTF_*). */ >X+#define DT_POSFLAG_1 0x6ffffdfd /* Flags for DT_* entries, effecting >X+ the following DT_* entry. */ >X+#define DT_SYMINSZ 0x6ffffdfe /* Size of syminfo table (in bytes) */ >X+#define DT_SYMINENT 0x6ffffdff /* Entry size of syminfo */ >X+#define DT_VALRNGHI 0x6ffffdff >X+#define DT_VALTAGIDX(tag) (DT_VALRNGHI - (tag)) /* Reverse order! */ >X+#define DT_VALNUM 12 >X+ >X+/* DT_* entries which fall between DT_ADDRRNGHI & DT_ADDRRNGLO use the >X+ Dyn.d_un.d_ptr field of the Elf*_Dyn structure. >X+ >X+ If any adjustment is made to the ELF object after it has been >X+ built these entries will need to be adjusted. */ >X+#define DT_ADDRRNGLO 0x6ffffe00 >X+#define DT_GNU_HASH 0x6ffffef5 /* GNU-style hash table. */ >X+#define DT_TLSDESC_PLT 0x6ffffef6 >X+#define DT_TLSDESC_GOT 0x6ffffef7 >X+#define DT_GNU_CONFLICT 0x6ffffef8 /* Start of conflict section */ >X+#define DT_GNU_LIBLIST 0x6ffffef9 /* Library list */ >X+#define DT_CONFIG 0x6ffffefa /* Configuration information. */ >X+#define DT_DEPAUDIT 0x6ffffefb /* Dependency auditing. */ >X+#define DT_AUDIT 0x6ffffefc /* Object auditing. */ >X+#define DT_PLTPAD 0x6ffffefd /* PLT padding. */ >X+#define DT_MOVETAB 0x6ffffefe /* Move table. */ >X+#define DT_SYMINFO 0x6ffffeff /* Syminfo table. */ >X+#define DT_ADDRRNGHI 0x6ffffeff >X+#define DT_ADDRTAGIDX(tag) (DT_ADDRRNGHI - (tag)) /* Reverse order! */ >X+#define DT_ADDRNUM 11 >X+ >X+/* The versioning entry types. The next are defined as part of the >X+ GNU extension. */ >X+#define DT_VERSYM 0x6ffffff0 >X+ >X+#define DT_RELACOUNT 0x6ffffff9 >X+#define DT_RELCOUNT 0x6ffffffa >X+ >X+/* These were chosen by Sun. */ >X+#define DT_FLAGS_1 0x6ffffffb /* State flags, see DF_1_* below. */ >X+#define DT_VERDEF 0x6ffffffc /* Address of version definition >X+ table */ >X+#define DT_VERDEFNUM 0x6ffffffd /* Number of version definitions */ >X+#define DT_VERNEED 0x6ffffffe /* Address of table with needed >X+ versions */ >X+#define DT_VERNEEDNUM 0x6fffffff /* Number of needed versions */ >X+#define DT_VERSIONTAGIDX(tag) (DT_VERNEEDNUM - (tag)) /* Reverse order! */ >X+#define DT_VERSIONTAGNUM 16 >X+ >X+/* Sun added these machine-independent extensions in the "processor-specific" >X+ range. Be compatible. */ >X+#define DT_AUXILIARY 0x7ffffffd /* Shared object to load before self */ >X+#define DT_FILTER 0x7fffffff /* Shared object to get values from */ >X+#define DT_EXTRATAGIDX(tag) ((Elf32_Word)-((Elf32_Sword) (tag) <<1>>1)-1) >X+#define DT_EXTRANUM 3 >X+ >X+/* Values of `d_un.d_val' in the DT_FLAGS entry. */ >X+#define DF_ORIGIN 0x00000001 /* Object may use DF_ORIGIN */ >X+#define DF_SYMBOLIC 0x00000002 /* Symbol resolutions starts here */ >X+#define DF_TEXTREL 0x00000004 /* Object contains text relocations */ >X+#define DF_BIND_NOW 0x00000008 /* No lazy binding for this object */ >X+#define DF_STATIC_TLS 0x00000010 /* Module uses the static TLS model */ >X+ >X+/* State flags selectable in the `d_un.d_val' element of the DT_FLAGS_1 >X+ entry in the dynamic section. */ >X+#define DF_1_NOW 0x00000001 /* Set RTLD_NOW for this object. */ >X+#define DF_1_GLOBAL 0x00000002 /* Set RTLD_GLOBAL for this object. */ >X+#define DF_1_GROUP 0x00000004 /* Set RTLD_GROUP for this object. */ >X+#define DF_1_NODELETE 0x00000008 /* Set RTLD_NODELETE for this object.*/ >X+#define DF_1_LOADFLTR 0x00000010 /* Trigger filtee loading at runtime.*/ >X+#define DF_1_INITFIRST 0x00000020 /* Set RTLD_INITFIRST for this object*/ >X+#define DF_1_NOOPEN 0x00000040 /* Set RTLD_NOOPEN for this object. */ >X+#define DF_1_ORIGIN 0x00000080 /* $ORIGIN must be handled. */ >X+#define DF_1_DIRECT 0x00000100 /* Direct binding enabled. */ >X+#define DF_1_TRANS 0x00000200 >X+#define DF_1_INTERPOSE 0x00000400 /* Object is used to interpose. */ >X+#define DF_1_NODEFLIB 0x00000800 /* Ignore default lib search path. */ >X+#define DF_1_NODUMP 0x00001000 /* Object can't be dldump'ed. */ >X+#define DF_1_CONFALT 0x00002000 /* Configuration alternative created.*/ >X+#define DF_1_ENDFILTEE 0x00004000 /* Filtee terminates filters search. */ >X+#define DF_1_DISPRELDNE 0x00008000 /* Disp reloc applied at build time. */ >X+#define DF_1_DISPRELPND 0x00010000 /* Disp reloc applied at run-time. */ >X+#define DF_1_NODIRECT 0x00020000 /* Object has no-direct binding. */ >X+#define DF_1_IGNMULDEF 0x00040000 >X+#define DF_1_NOKSYMS 0x00080000 >X+#define DF_1_NOHDR 0x00100000 >X+#define DF_1_EDITED 0x00200000 /* Object is modified after built. */ >X+#define DF_1_NORELOC 0x00400000 >X+#define DF_1_SYMINTPOSE 0x00800000 /* Object has individual interposers. */ >X+#define DF_1_GLOBAUDIT 0x01000000 /* Global auditing required. */ >X+#define DF_1_SINGLETON 0x02000000 /* Singleton symbols are used. */ >X+ >X+/* Flags for the feature selection in DT_FEATURE_1. */ >X+#define DTF_1_PARINIT 0x00000001 >X+#define DTF_1_CONFEXP 0x00000002 >X+ >X+/* Flags in the DT_POSFLAG_1 entry effecting only the next DT_* entry. */ >X+#define DF_P1_LAZYLOAD 0x00000001 /* Lazyload following object. */ >X+#define DF_P1_GROUPPERM 0x00000002 /* Symbols from next object are not >X+ generally available. */ >X+ >X+/* Version definition sections. */ >X+ >X+typedef struct >X+{ >X+ Elf32_Half vd_version; /* Version revision */ >X+ Elf32_Half vd_flags; /* Version information */ >X+ Elf32_Half vd_ndx; /* Version Index */ >X+ Elf32_Half vd_cnt; /* Number of associated aux entries */ >X+ Elf32_Word vd_hash; /* Version name hash value */ >X+ Elf32_Word vd_aux; /* Offset in bytes to verdaux array */ >X+ Elf32_Word vd_next; /* Offset in bytes to next verdef >X+ entry */ >X+} Elf32_Verdef; >X+ >X+typedef struct >X+{ >X+ Elf64_Half vd_version; /* Version revision */ >X+ Elf64_Half vd_flags; /* Version information */ >X+ Elf64_Half vd_ndx; /* Version Index */ >X+ Elf64_Half vd_cnt; /* Number of associated aux entries */ >X+ Elf64_Word vd_hash; /* Version name hash value */ >X+ Elf64_Word vd_aux; /* Offset in bytes to verdaux array */ >X+ Elf64_Word vd_next; /* Offset in bytes to next verdef >X+ entry */ >X+} Elf64_Verdef; >X+ >X+ >X+/* Legal values for vd_version (version revision). */ >X+#define VER_DEF_NONE 0 /* No version */ >X+#define VER_DEF_CURRENT 1 /* Current version */ >X+#define VER_DEF_NUM 2 /* Given version number */ >X+ >X+/* Legal values for vd_flags (version information flags). */ >X+#define VER_FLG_BASE 0x1 /* Version definition of file itself */ >X+#define VER_FLG_WEAK 0x2 /* Weak version identifier */ >X+ >X+/* Versym symbol index values. */ >X+#define VER_NDX_LOCAL 0 /* Symbol is local. */ >X+#define VER_NDX_GLOBAL 1 /* Symbol is global. */ >X+#define VER_NDX_LORESERVE 0xff00 /* Beginning of reserved entries. */ >X+#define VER_NDX_ELIMINATE 0xff01 /* Symbol is to be eliminated. */ >X+ >X+/* Auxialiary version information. */ >X+ >X+typedef struct >X+{ >X+ Elf32_Word vda_name; /* Version or dependency names */ >X+ Elf32_Word vda_next; /* Offset in bytes to next verdaux >X+ entry */ >X+} Elf32_Verdaux; >X+ >X+typedef struct >X+{ >X+ Elf64_Word vda_name; /* Version or dependency names */ >X+ Elf64_Word vda_next; /* Offset in bytes to next verdaux >X+ entry */ >X+} Elf64_Verdaux; >X+ >X+ >X+/* Version dependency section. */ >X+ >X+typedef struct >X+{ >X+ Elf32_Half vn_version; /* Version of structure */ >X+ Elf32_Half vn_cnt; /* Number of associated aux entries */ >X+ Elf32_Word vn_file; /* Offset of filename for this >X+ dependency */ >X+ Elf32_Word vn_aux; /* Offset in bytes to vernaux array */ >X+ Elf32_Word vn_next; /* Offset in bytes to next verneed >X+ entry */ >X+} Elf32_Verneed; >X+ >X+typedef struct >X+{ >X+ Elf64_Half vn_version; /* Version of structure */ >X+ Elf64_Half vn_cnt; /* Number of associated aux entries */ >X+ Elf64_Word vn_file; /* Offset of filename for this >X+ dependency */ >X+ Elf64_Word vn_aux; /* Offset in bytes to vernaux array */ >X+ Elf64_Word vn_next; /* Offset in bytes to next verneed >X+ entry */ >X+} Elf64_Verneed; >X+ >X+ >X+/* Legal values for vn_version (version revision). */ >X+#define VER_NEED_NONE 0 /* No version */ >X+#define VER_NEED_CURRENT 1 /* Current version */ >X+#define VER_NEED_NUM 2 /* Given version number */ >X+ >X+/* Auxiliary needed version information. */ >X+ >X+typedef struct >X+{ >X+ Elf32_Word vna_hash; /* Hash value of dependency name */ >X+ Elf32_Half vna_flags; /* Dependency specific information */ >X+ Elf32_Half vna_other; /* Unused */ >X+ Elf32_Word vna_name; /* Dependency name string offset */ >X+ Elf32_Word vna_next; /* Offset in bytes to next vernaux >X+ entry */ >X+} Elf32_Vernaux; >X+ >X+typedef struct >X+{ >X+ Elf64_Word vna_hash; /* Hash value of dependency name */ >X+ Elf64_Half vna_flags; /* Dependency specific information */ >X+ Elf64_Half vna_other; /* Unused */ >X+ Elf64_Word vna_name; /* Dependency name string offset */ >X+ Elf64_Word vna_next; /* Offset in bytes to next vernaux >X+ entry */ >X+} Elf64_Vernaux; >X+ >X+ >X+/* Legal values for vna_flags. */ >X+#define VER_FLG_WEAK 0x2 /* Weak version identifier */ >X+ >X+ >X+/* Auxiliary vector. */ >X+ >X+/* This vector is normally only used by the program interpreter. The >X+ usual definition in an ABI supplement uses the name auxv_t. The >X+ vector is not usually defined in a standard <elf.h> file, but it >X+ can't hurt. We rename it to avoid conflicts. The sizes of these >X+ types are an arrangement between the exec server and the program >X+ interpreter, so we don't fully specify them here. */ >X+ >X+typedef struct >X+{ >X+ uint32_t a_type; /* Entry type */ >X+ union >X+ { >X+ uint32_t a_val; /* Integer value */ >X+ /* We use to have pointer elements added here. We cannot do that, >X+ though, since it does not work when using 32-bit definitions >X+ on 64-bit platforms and vice versa. */ >X+ } a_un; >X+} Elf32_auxv_t; >X+ >X+typedef struct >X+{ >X+ uint64_t a_type; /* Entry type */ >X+ union >X+ { >X+ uint64_t a_val; /* Integer value */ >X+ /* We use to have pointer elements added here. We cannot do that, >X+ though, since it does not work when using 32-bit definitions >X+ on 64-bit platforms and vice versa. */ >X+ } a_un; >X+} Elf64_auxv_t; >X+ >X+#include <bits/auxv.h> >X+/* Note section contents. Each entry in the note section begins with >X+ a header of a fixed form. */ >X+ >X+typedef struct >X+{ >X+ Elf32_Word n_namesz; /* Length of the note's name. */ >X+ Elf32_Word n_descsz; /* Length of the note's descriptor. */ >X+ Elf32_Word n_type; /* Type of the note. */ >X+} Elf32_Nhdr; >X+ >X+typedef struct >X+{ >X+ Elf64_Word n_namesz; /* Length of the note's name. */ >X+ Elf64_Word n_descsz; /* Length of the note's descriptor. */ >X+ Elf64_Word n_type; /* Type of the note. */ >X+} Elf64_Nhdr; >X+ >X+/* Known names of notes. */ >X+ >X+/* Solaris entries in the note section have this name. */ >X+#define ELF_NOTE_SOLARIS "SUNW Solaris" >X+ >X+/* Note entries for GNU systems have this name. */ >X+#define ELF_NOTE_GNU "GNU" >X+ >X+ >X+/* Defined types of notes for Solaris. */ >X+ >X+/* Value of descriptor (one word) is desired pagesize for the binary. */ >X+#define ELF_NOTE_PAGESIZE_HINT 1 >X+ >X+ >X+/* Defined note types for GNU systems. */ >X+ >X+/* ABI information. The descriptor consists of words: >X+ word 0: OS descriptor >X+ word 1: major version of the ABI >X+ word 2: minor version of the ABI >X+ word 3: subminor version of the ABI >X+*/ >X+#define NT_GNU_ABI_TAG 1 >X+#define ELF_NOTE_ABI NT_GNU_ABI_TAG /* Old name. */ >X+ >X+/* Known OSes. These values can appear in word 0 of an >X+ NT_GNU_ABI_TAG note section entry. */ >X+#define ELF_NOTE_OS_LINUX 0 >X+#define ELF_NOTE_OS_GNU 1 >X+#define ELF_NOTE_OS_SOLARIS2 2 >X+#define ELF_NOTE_OS_FREEBSD 3 >X+ >X+/* Synthetic hwcap information. The descriptor begins with two words: >X+ word 0: number of entries >X+ word 1: bitmask of enabled entries >X+ Then follow variable-length entries, one byte followed by a >X+ '\0'-terminated hwcap name string. The byte gives the bit >X+ number to test if enabled, (1U << bit) & bitmask. */ >X+#define NT_GNU_HWCAP 2 >X+ >X+/* Build ID bits as generated by ld --build-id. >X+ The descriptor consists of any nonzero number of bytes. */ >X+#define NT_GNU_BUILD_ID 3 >X+ >X+/* Version note generated by GNU gold containing a version string. */ >X+#define NT_GNU_GOLD_VERSION 4 >X+ >X+ >X+/* Move records. */ >X+typedef struct >X+{ >X+ Elf32_Xword m_value; /* Symbol value. */ >X+ Elf32_Word m_info; /* Size and index. */ >X+ Elf32_Word m_poffset; /* Symbol offset. */ >X+ Elf32_Half m_repeat; /* Repeat count. */ >X+ Elf32_Half m_stride; /* Stride info. */ >X+} Elf32_Move; >X+ >X+typedef struct >X+{ >X+ Elf64_Xword m_value; /* Symbol value. */ >X+ Elf64_Xword m_info; /* Size and index. */ >X+ Elf64_Xword m_poffset; /* Symbol offset. */ >X+ Elf64_Half m_repeat; /* Repeat count. */ >X+ Elf64_Half m_stride; /* Stride info. */ >X+} Elf64_Move; >X+ >X+/* Macro to construct move records. */ >X+#define ELF32_M_SYM(info) ((info) >> 8) >X+#define ELF32_M_SIZE(info) ((unsigned char) (info)) >X+#define ELF32_M_INFO(sym, size) (((sym) << 8) + (unsigned char) (size)) >X+ >X+#define ELF64_M_SYM(info) ELF32_M_SYM (info) >X+#define ELF64_M_SIZE(info) ELF32_M_SIZE (info) >X+#define ELF64_M_INFO(sym, size) ELF32_M_INFO (sym, size) >X+ >X+ >X+/* Motorola 68k specific definitions. */ >X+ >X+/* Values for Elf32_Ehdr.e_flags. */ >X+#define EF_CPU32 0x00810000 >X+ >X+/* m68k relocs. */ >X+ >X+#define R_68K_NONE 0 /* No reloc */ >X+#define R_68K_32 1 /* Direct 32 bit */ >X+#define R_68K_16 2 /* Direct 16 bit */ >X+#define R_68K_8 3 /* Direct 8 bit */ >X+#define R_68K_PC32 4 /* PC relative 32 bit */ >X+#define R_68K_PC16 5 /* PC relative 16 bit */ >X+#define R_68K_PC8 6 /* PC relative 8 bit */ >X+#define R_68K_GOT32 7 /* 32 bit PC relative GOT entry */ >X+#define R_68K_GOT16 8 /* 16 bit PC relative GOT entry */ >X+#define R_68K_GOT8 9 /* 8 bit PC relative GOT entry */ >X+#define R_68K_GOT32O 10 /* 32 bit GOT offset */ >X+#define R_68K_GOT16O 11 /* 16 bit GOT offset */ >X+#define R_68K_GOT8O 12 /* 8 bit GOT offset */ >X+#define R_68K_PLT32 13 /* 32 bit PC relative PLT address */ >X+#define R_68K_PLT16 14 /* 16 bit PC relative PLT address */ >X+#define R_68K_PLT8 15 /* 8 bit PC relative PLT address */ >X+#define R_68K_PLT32O 16 /* 32 bit PLT offset */ >X+#define R_68K_PLT16O 17 /* 16 bit PLT offset */ >X+#define R_68K_PLT8O 18 /* 8 bit PLT offset */ >X+#define R_68K_COPY 19 /* Copy symbol at runtime */ >X+#define R_68K_GLOB_DAT 20 /* Create GOT entry */ >X+#define R_68K_JMP_SLOT 21 /* Create PLT entry */ >X+#define R_68K_RELATIVE 22 /* Adjust by program base */ >X+#define R_68K_TLS_GD32 25 /* 32 bit GOT offset for GD */ >X+#define R_68K_TLS_GD16 26 /* 16 bit GOT offset for GD */ >X+#define R_68K_TLS_GD8 27 /* 8 bit GOT offset for GD */ >X+#define R_68K_TLS_LDM32 28 /* 32 bit GOT offset for LDM */ >X+#define R_68K_TLS_LDM16 29 /* 16 bit GOT offset for LDM */ >X+#define R_68K_TLS_LDM8 30 /* 8 bit GOT offset for LDM */ >X+#define R_68K_TLS_LDO32 31 /* 32 bit module-relative offset */ >X+#define R_68K_TLS_LDO16 32 /* 16 bit module-relative offset */ >X+#define R_68K_TLS_LDO8 33 /* 8 bit module-relative offset */ >X+#define R_68K_TLS_IE32 34 /* 32 bit GOT offset for IE */ >X+#define R_68K_TLS_IE16 35 /* 16 bit GOT offset for IE */ >X+#define R_68K_TLS_IE8 36 /* 8 bit GOT offset for IE */ >X+#define R_68K_TLS_LE32 37 /* 32 bit offset relative to >X+ static TLS block */ >X+#define R_68K_TLS_LE16 38 /* 16 bit offset relative to >X+ static TLS block */ >X+#define R_68K_TLS_LE8 39 /* 8 bit offset relative to >X+ static TLS block */ >X+#define R_68K_TLS_DTPMOD32 40 /* 32 bit module number */ >X+#define R_68K_TLS_DTPREL32 41 /* 32 bit module-relative offset */ >X+#define R_68K_TLS_TPREL32 42 /* 32 bit TP-relative offset */ >X+/* Keep this the last entry. */ >X+#define R_68K_NUM 43 >X+ >X+/* Intel 80386 specific definitions. */ >X+ >X+/* i386 relocs. */ >X+ >X+#define R_386_NONE 0 /* No reloc */ >X+#define R_386_32 1 /* Direct 32 bit */ >X+#define R_386_PC32 2 /* PC relative 32 bit */ >X+#define R_386_GOT32 3 /* 32 bit GOT entry */ >X+#define R_386_PLT32 4 /* 32 bit PLT address */ >X+#define R_386_COPY 5 /* Copy symbol at runtime */ >X+#define R_386_GLOB_DAT 6 /* Create GOT entry */ >X+#define R_386_JMP_SLOT 7 /* Create PLT entry */ >X+#define R_386_RELATIVE 8 /* Adjust by program base */ >X+#define R_386_GOTOFF 9 /* 32 bit offset to GOT */ >X+#define R_386_GOTPC 10 /* 32 bit PC relative offset to GOT */ >X+#define R_386_32PLT 11 >X+#define R_386_TLS_TPOFF 14 /* Offset in static TLS block */ >X+#define R_386_TLS_IE 15 /* Address of GOT entry for static TLS >X+ block offset */ >X+#define R_386_TLS_GOTIE 16 /* GOT entry for static TLS block >X+ offset */ >X+#define R_386_TLS_LE 17 /* Offset relative to static TLS >X+ block */ >X+#define R_386_TLS_GD 18 /* Direct 32 bit for GNU version of >X+ general dynamic thread local data */ >X+#define R_386_TLS_LDM 19 /* Direct 32 bit for GNU version of >X+ local dynamic thread local data >X+ in LE code */ >X+#define R_386_16 20 >X+#define R_386_PC16 21 >X+#define R_386_8 22 >X+#define R_386_PC8 23 >X+#define R_386_TLS_GD_32 24 /* Direct 32 bit for general dynamic >X+ thread local data */ >X+#define R_386_TLS_GD_PUSH 25 /* Tag for pushl in GD TLS code */ >X+#define R_386_TLS_GD_CALL 26 /* Relocation for call to >X+ __tls_get_addr() */ >X+#define R_386_TLS_GD_POP 27 /* Tag for popl in GD TLS code */ >X+#define R_386_TLS_LDM_32 28 /* Direct 32 bit for local dynamic >X+ thread local data in LE code */ >X+#define R_386_TLS_LDM_PUSH 29 /* Tag for pushl in LDM TLS code */ >X+#define R_386_TLS_LDM_CALL 30 /* Relocation for call to >X+ __tls_get_addr() in LDM code */ >X+#define R_386_TLS_LDM_POP 31 /* Tag for popl in LDM TLS code */ >X+#define R_386_TLS_LDO_32 32 /* Offset relative to TLS block */ >X+#define R_386_TLS_IE_32 33 /* GOT entry for negated static TLS >X+ block offset */ >X+#define R_386_TLS_LE_32 34 /* Negated offset relative to static >X+ TLS block */ >X+#define R_386_TLS_DTPMOD32 35 /* ID of module containing symbol */ >X+#define R_386_TLS_DTPOFF32 36 /* Offset in TLS block */ >X+#define R_386_TLS_TPOFF32 37 /* Negated offset in static TLS block */ >X+#define R_386_SIZE32 38 /* 32-bit symbol size */ >X+#define R_386_TLS_GOTDESC 39 /* GOT offset for TLS descriptor. */ >X+#define R_386_TLS_DESC_CALL 40 /* Marker of call through TLS >X+ descriptor for >X+ relaxation. */ >X+#define R_386_TLS_DESC 41 /* TLS descriptor containing >X+ pointer to code and to >X+ argument, returning the TLS >X+ offset for the symbol. */ >X+#define R_386_IRELATIVE 42 /* Adjust indirectly by program base */ >X+/* Keep this the last entry. */ >X+#define R_386_NUM 43 >X+ >X+/* SUN SPARC specific definitions. */ >X+ >X+/* Legal values for ST_TYPE subfield of st_info (symbol type). */ >X+ >X+#define STT_SPARC_REGISTER 13 /* Global register reserved to app. */ >X+ >X+/* Values for Elf64_Ehdr.e_flags. */ >X+ >X+#define EF_SPARCV9_MM 3 >X+#define EF_SPARCV9_TSO 0 >X+#define EF_SPARCV9_PSO 1 >X+#define EF_SPARCV9_RMO 2 >X+#define EF_SPARC_LEDATA 0x800000 /* little endian data */ >X+#define EF_SPARC_EXT_MASK 0xFFFF00 >X+#define EF_SPARC_32PLUS 0x000100 /* generic V8+ features */ >X+#define EF_SPARC_SUN_US1 0x000200 /* Sun UltraSPARC1 extensions */ >X+#define EF_SPARC_HAL_R1 0x000400 /* HAL R1 extensions */ >X+#define EF_SPARC_SUN_US3 0x000800 /* Sun UltraSPARCIII extensions */ >X+ >X+/* SPARC relocs. */ >X+ >X+#define R_SPARC_NONE 0 /* No reloc */ >X+#define R_SPARC_8 1 /* Direct 8 bit */ >X+#define R_SPARC_16 2 /* Direct 16 bit */ >X+#define R_SPARC_32 3 /* Direct 32 bit */ >X+#define R_SPARC_DISP8 4 /* PC relative 8 bit */ >X+#define R_SPARC_DISP16 5 /* PC relative 16 bit */ >X+#define R_SPARC_DISP32 6 /* PC relative 32 bit */ >X+#define R_SPARC_WDISP30 7 /* PC relative 30 bit shifted */ >X+#define R_SPARC_WDISP22 8 /* PC relative 22 bit shifted */ >X+#define R_SPARC_HI22 9 /* High 22 bit */ >X+#define R_SPARC_22 10 /* Direct 22 bit */ >X+#define R_SPARC_13 11 /* Direct 13 bit */ >X+#define R_SPARC_LO10 12 /* Truncated 10 bit */ >X+#define R_SPARC_GOT10 13 /* Truncated 10 bit GOT entry */ >X+#define R_SPARC_GOT13 14 /* 13 bit GOT entry */ >X+#define R_SPARC_GOT22 15 /* 22 bit GOT entry shifted */ >X+#define R_SPARC_PC10 16 /* PC relative 10 bit truncated */ >X+#define R_SPARC_PC22 17 /* PC relative 22 bit shifted */ >X+#define R_SPARC_WPLT30 18 /* 30 bit PC relative PLT address */ >X+#define R_SPARC_COPY 19 /* Copy symbol at runtime */ >X+#define R_SPARC_GLOB_DAT 20 /* Create GOT entry */ >X+#define R_SPARC_JMP_SLOT 21 /* Create PLT entry */ >X+#define R_SPARC_RELATIVE 22 /* Adjust by program base */ >X+#define R_SPARC_UA32 23 /* Direct 32 bit unaligned */ >X+ >X+/* Additional Sparc64 relocs. */ >X+ >X+#define R_SPARC_PLT32 24 /* Direct 32 bit ref to PLT entry */ >X+#define R_SPARC_HIPLT22 25 /* High 22 bit PLT entry */ >X+#define R_SPARC_LOPLT10 26 /* Truncated 10 bit PLT entry */ >X+#define R_SPARC_PCPLT32 27 /* PC rel 32 bit ref to PLT entry */ >X+#define R_SPARC_PCPLT22 28 /* PC rel high 22 bit PLT entry */ >X+#define R_SPARC_PCPLT10 29 /* PC rel trunc 10 bit PLT entry */ >X+#define R_SPARC_10 30 /* Direct 10 bit */ >X+#define R_SPARC_11 31 /* Direct 11 bit */ >X+#define R_SPARC_64 32 /* Direct 64 bit */ >X+#define R_SPARC_OLO10 33 /* 10bit with secondary 13bit addend */ >X+#define R_SPARC_HH22 34 /* Top 22 bits of direct 64 bit */ >X+#define R_SPARC_HM10 35 /* High middle 10 bits of ... */ >X+#define R_SPARC_LM22 36 /* Low middle 22 bits of ... */ >X+#define R_SPARC_PC_HH22 37 /* Top 22 bits of pc rel 64 bit */ >X+#define R_SPARC_PC_HM10 38 /* High middle 10 bit of ... */ >X+#define R_SPARC_PC_LM22 39 /* Low miggle 22 bits of ... */ >X+#define R_SPARC_WDISP16 40 /* PC relative 16 bit shifted */ >X+#define R_SPARC_WDISP19 41 /* PC relative 19 bit shifted */ >X+#define R_SPARC_GLOB_JMP 42 /* was part of v9 ABI but was removed */ >X+#define R_SPARC_7 43 /* Direct 7 bit */ >X+#define R_SPARC_5 44 /* Direct 5 bit */ >X+#define R_SPARC_6 45 /* Direct 6 bit */ >X+#define R_SPARC_DISP64 46 /* PC relative 64 bit */ >X+#define R_SPARC_PLT64 47 /* Direct 64 bit ref to PLT entry */ >X+#define R_SPARC_HIX22 48 /* High 22 bit complemented */ >X+#define R_SPARC_LOX10 49 /* Truncated 11 bit complemented */ >X+#define R_SPARC_H44 50 /* Direct high 12 of 44 bit */ >X+#define R_SPARC_M44 51 /* Direct mid 22 of 44 bit */ >X+#define R_SPARC_L44 52 /* Direct low 10 of 44 bit */ >X+#define R_SPARC_REGISTER 53 /* Global register usage */ >X+#define R_SPARC_UA64 54 /* Direct 64 bit unaligned */ >X+#define R_SPARC_UA16 55 /* Direct 16 bit unaligned */ >X+#define R_SPARC_TLS_GD_HI22 56 >X+#define R_SPARC_TLS_GD_LO10 57 >X+#define R_SPARC_TLS_GD_ADD 58 >X+#define R_SPARC_TLS_GD_CALL 59 >X+#define R_SPARC_TLS_LDM_HI22 60 >X+#define R_SPARC_TLS_LDM_LO10 61 >X+#define R_SPARC_TLS_LDM_ADD 62 >X+#define R_SPARC_TLS_LDM_CALL 63 >X+#define R_SPARC_TLS_LDO_HIX22 64 >X+#define R_SPARC_TLS_LDO_LOX10 65 >X+#define R_SPARC_TLS_LDO_ADD 66 >X+#define R_SPARC_TLS_IE_HI22 67 >X+#define R_SPARC_TLS_IE_LO10 68 >X+#define R_SPARC_TLS_IE_LD 69 >X+#define R_SPARC_TLS_IE_LDX 70 >X+#define R_SPARC_TLS_IE_ADD 71 >X+#define R_SPARC_TLS_LE_HIX22 72 >X+#define R_SPARC_TLS_LE_LOX10 73 >X+#define R_SPARC_TLS_DTPMOD32 74 >X+#define R_SPARC_TLS_DTPMOD64 75 >X+#define R_SPARC_TLS_DTPOFF32 76 >X+#define R_SPARC_TLS_DTPOFF64 77 >X+#define R_SPARC_TLS_TPOFF32 78 >X+#define R_SPARC_TLS_TPOFF64 79 >X+#define R_SPARC_GOTDATA_HIX22 80 >X+#define R_SPARC_GOTDATA_LOX10 81 >X+#define R_SPARC_GOTDATA_OP_HIX22 82 >X+#define R_SPARC_GOTDATA_OP_LOX10 83 >X+#define R_SPARC_GOTDATA_OP 84 >X+#define R_SPARC_H34 85 >X+#define R_SPARC_SIZE32 86 >X+#define R_SPARC_SIZE64 87 >X+#define R_SPARC_WDISP10 88 >X+#define R_SPARC_JMP_IREL 248 >X+#define R_SPARC_IRELATIVE 249 >X+#define R_SPARC_GNU_VTINHERIT 250 >X+#define R_SPARC_GNU_VTENTRY 251 >X+#define R_SPARC_REV32 252 >X+/* Keep this the last entry. */ >X+#define R_SPARC_NUM 253 >X+ >X+/* For Sparc64, legal values for d_tag of Elf64_Dyn. */ >X+ >X+#define DT_SPARC_REGISTER 0x70000001 >X+#define DT_SPARC_NUM 2 >X+ >X+/* MIPS R3000 specific definitions. */ >X+ >X+/* Legal values for e_flags field of Elf32_Ehdr. */ >X+ >X+#define EF_MIPS_NOREORDER 1 /* A .noreorder directive was used. */ >X+#define EF_MIPS_PIC 2 /* Contains PIC code. */ >X+#define EF_MIPS_CPIC 4 /* Uses PIC calling sequence. */ >X+#define EF_MIPS_XGOT 8 >X+#define EF_MIPS_64BIT_WHIRL 16 >X+#define EF_MIPS_ABI2 32 >X+#define EF_MIPS_ABI_ON32 64 >X+#define EF_MIPS_NAN2008 1024 /* Uses IEEE 754-2008 NaN encoding. */ >X+#define EF_MIPS_ARCH 0xf0000000 /* MIPS architecture level. */ >X+ >X+/* Legal values for MIPS architecture level. */ >X+ >X+#define EF_MIPS_ARCH_1 0x00000000 /* -mips1 code. */ >X+#define EF_MIPS_ARCH_2 0x10000000 /* -mips2 code. */ >X+#define EF_MIPS_ARCH_3 0x20000000 /* -mips3 code. */ >X+#define EF_MIPS_ARCH_4 0x30000000 /* -mips4 code. */ >X+#define EF_MIPS_ARCH_5 0x40000000 /* -mips5 code. */ >X+#define EF_MIPS_ARCH_32 0x50000000 /* MIPS32 code. */ >X+#define EF_MIPS_ARCH_64 0x60000000 /* MIPS64 code. */ >X+#define EF_MIPS_ARCH_32R2 0x70000000 /* MIPS32r2 code. */ >X+#define EF_MIPS_ARCH_64R2 0x80000000 /* MIPS64r2 code. */ >X+ >X+/* The following are unofficial names and should not be used. */ >X+ >X+#define E_MIPS_ARCH_1 EF_MIPS_ARCH_1 >X+#define E_MIPS_ARCH_2 EF_MIPS_ARCH_2 >X+#define E_MIPS_ARCH_3 EF_MIPS_ARCH_3 >X+#define E_MIPS_ARCH_4 EF_MIPS_ARCH_4 >X+#define E_MIPS_ARCH_5 EF_MIPS_ARCH_5 >X+#define E_MIPS_ARCH_32 EF_MIPS_ARCH_32 >X+#define E_MIPS_ARCH_64 EF_MIPS_ARCH_64 >X+ >X+/* Special section indices. */ >X+ >X+#define SHN_MIPS_ACOMMON 0xff00 /* Allocated common symbols. */ >X+#define SHN_MIPS_TEXT 0xff01 /* Allocated test symbols. */ >X+#define SHN_MIPS_DATA 0xff02 /* Allocated data symbols. */ >X+#define SHN_MIPS_SCOMMON 0xff03 /* Small common symbols. */ >X+#define SHN_MIPS_SUNDEFINED 0xff04 /* Small undefined symbols. */ >X+ >X+/* Legal values for sh_type field of Elf32_Shdr. */ >X+ >X+#define SHT_MIPS_LIBLIST 0x70000000 /* Shared objects used in link. */ >X+#define SHT_MIPS_MSYM 0x70000001 >X+#define SHT_MIPS_CONFLICT 0x70000002 /* Conflicting symbols. */ >X+#define SHT_MIPS_GPTAB 0x70000003 /* Global data area sizes. */ >X+#define SHT_MIPS_UCODE 0x70000004 /* Reserved for SGI/MIPS compilers */ >X+#define SHT_MIPS_DEBUG 0x70000005 /* MIPS ECOFF debugging info. */ >X+#define SHT_MIPS_REGINFO 0x70000006 /* Register usage information. */ >X+#define SHT_MIPS_PACKAGE 0x70000007 >X+#define SHT_MIPS_PACKSYM 0x70000008 >X+#define SHT_MIPS_RELD 0x70000009 >X+#define SHT_MIPS_IFACE 0x7000000b >X+#define SHT_MIPS_CONTENT 0x7000000c >X+#define SHT_MIPS_OPTIONS 0x7000000d /* Miscellaneous options. */ >X+#define SHT_MIPS_SHDR 0x70000010 >X+#define SHT_MIPS_FDESC 0x70000011 >X+#define SHT_MIPS_EXTSYM 0x70000012 >X+#define SHT_MIPS_DENSE 0x70000013 >X+#define SHT_MIPS_PDESC 0x70000014 >X+#define SHT_MIPS_LOCSYM 0x70000015 >X+#define SHT_MIPS_AUXSYM 0x70000016 >X+#define SHT_MIPS_OPTSYM 0x70000017 >X+#define SHT_MIPS_LOCSTR 0x70000018 >X+#define SHT_MIPS_LINE 0x70000019 >X+#define SHT_MIPS_RFDESC 0x7000001a >X+#define SHT_MIPS_DELTASYM 0x7000001b >X+#define SHT_MIPS_DELTAINST 0x7000001c >X+#define SHT_MIPS_DELTACLASS 0x7000001d >X+#define SHT_MIPS_DWARF 0x7000001e /* DWARF debugging information. */ >X+#define SHT_MIPS_DELTADECL 0x7000001f >X+#define SHT_MIPS_SYMBOL_LIB 0x70000020 >X+#define SHT_MIPS_EVENTS 0x70000021 /* Event section. */ >X+#define SHT_MIPS_TRANSLATE 0x70000022 >X+#define SHT_MIPS_PIXIE 0x70000023 >X+#define SHT_MIPS_XLATE 0x70000024 >X+#define SHT_MIPS_XLATE_DEBUG 0x70000025 >X+#define SHT_MIPS_WHIRL 0x70000026 >X+#define SHT_MIPS_EH_REGION 0x70000027 >X+#define SHT_MIPS_XLATE_OLD 0x70000028 >X+#define SHT_MIPS_PDR_EXCEPTION 0x70000029 >X+ >X+/* Legal values for sh_flags field of Elf32_Shdr. */ >X+ >X+#define SHF_MIPS_GPREL 0x10000000 /* Must be in global data area. */ >X+#define SHF_MIPS_MERGE 0x20000000 >X+#define SHF_MIPS_ADDR 0x40000000 >X+#define SHF_MIPS_STRINGS 0x80000000 >X+#define SHF_MIPS_NOSTRIP 0x08000000 >X+#define SHF_MIPS_LOCAL 0x04000000 >X+#define SHF_MIPS_NAMES 0x02000000 >X+#define SHF_MIPS_NODUPE 0x01000000 >X+ >X+ >X+/* Symbol tables. */ >X+ >X+/* MIPS specific values for `st_other'. */ >X+#define STO_MIPS_DEFAULT 0x0 >X+#define STO_MIPS_INTERNAL 0x1 >X+#define STO_MIPS_HIDDEN 0x2 >X+#define STO_MIPS_PROTECTED 0x3 >X+#define STO_MIPS_PLT 0x8 >X+#define STO_MIPS_SC_ALIGN_UNUSED 0xff >X+ >X+/* MIPS specific values for `st_info'. */ >X+#define STB_MIPS_SPLIT_COMMON 13 >X+ >X+/* Entries found in sections of type SHT_MIPS_GPTAB. */ >X+ >X+typedef union >X+{ >X+ struct >X+ { >X+ Elf32_Word gt_current_g_value; /* -G value used for compilation. */ >X+ Elf32_Word gt_unused; /* Not used. */ >X+ } gt_header; /* First entry in section. */ >X+ struct >X+ { >X+ Elf32_Word gt_g_value; /* If this value were used for -G. */ >X+ Elf32_Word gt_bytes; /* This many bytes would be used. */ >X+ } gt_entry; /* Subsequent entries in section. */ >X+} Elf32_gptab; >X+ >X+/* Entry found in sections of type SHT_MIPS_REGINFO. */ >X+ >X+typedef struct >X+{ >X+ Elf32_Word ri_gprmask; /* General registers used. */ >X+ Elf32_Word ri_cprmask[4]; /* Coprocessor registers used. */ >X+ Elf32_Sword ri_gp_value; /* $gp register value. */ >X+} Elf32_RegInfo; >X+ >X+/* Entries found in sections of type SHT_MIPS_OPTIONS. */ >X+ >X+typedef struct >X+{ >X+ unsigned char kind; /* Determines interpretation of the >X+ variable part of descriptor. */ >X+ unsigned char size; /* Size of descriptor, including header. */ >X+ Elf32_Section section; /* Section header index of section affected, >X+ 0 for global options. */ >X+ Elf32_Word info; /* Kind-specific information. */ >X+} Elf_Options; >X+ >X+/* Values for `kind' field in Elf_Options. */ >X+ >X+#define ODK_NULL 0 /* Undefined. */ >X+#define ODK_REGINFO 1 /* Register usage information. */ >X+#define ODK_EXCEPTIONS 2 /* Exception processing options. */ >X+#define ODK_PAD 3 /* Section padding options. */ >X+#define ODK_HWPATCH 4 /* Hardware workarounds performed */ >X+#define ODK_FILL 5 /* record the fill value used by the linker. */ >X+#define ODK_TAGS 6 /* reserve space for desktop tools to write. */ >X+#define ODK_HWAND 7 /* HW workarounds. 'AND' bits when merging. */ >X+#define ODK_HWOR 8 /* HW workarounds. 'OR' bits when merging. */ >X+ >X+/* Values for `info' in Elf_Options for ODK_EXCEPTIONS entries. */ >X+ >X+#define OEX_FPU_MIN 0x1f /* FPE's which MUST be enabled. */ >X+#define OEX_FPU_MAX 0x1f00 /* FPE's which MAY be enabled. */ >X+#define OEX_PAGE0 0x10000 /* page zero must be mapped. */ >X+#define OEX_SMM 0x20000 /* Force sequential memory mode? */ >X+#define OEX_FPDBUG 0x40000 /* Force floating point debug mode? */ >X+#define OEX_PRECISEFP OEX_FPDBUG >X+#define OEX_DISMISS 0x80000 /* Dismiss invalid address faults? */ >X+ >X+#define OEX_FPU_INVAL 0x10 >X+#define OEX_FPU_DIV0 0x08 >X+#define OEX_FPU_OFLO 0x04 >X+#define OEX_FPU_UFLO 0x02 >X+#define OEX_FPU_INEX 0x01 >X+ >X+/* Masks for `info' in Elf_Options for an ODK_HWPATCH entry. */ >X+ >X+#define OHW_R4KEOP 0x1 /* R4000 end-of-page patch. */ >X+#define OHW_R8KPFETCH 0x2 /* may need R8000 prefetch patch. */ >X+#define OHW_R5KEOP 0x4 /* R5000 end-of-page patch. */ >X+#define OHW_R5KCVTL 0x8 /* R5000 cvt.[ds].l bug. clean=1. */ >X+ >X+#define OPAD_PREFIX 0x1 >X+#define OPAD_POSTFIX 0x2 >X+#define OPAD_SYMBOL 0x4 >X+ >X+/* Entry found in `.options' section. */ >X+ >X+typedef struct >X+{ >X+ Elf32_Word hwp_flags1; /* Extra flags. */ >X+ Elf32_Word hwp_flags2; /* Extra flags. */ >X+} Elf_Options_Hw; >X+ >X+/* Masks for `info' in ElfOptions for ODK_HWAND and ODK_HWOR entries. */ >X+ >X+#define OHWA0_R4KEOP_CHECKED 0x00000001 >X+#define OHWA1_R4KEOP_CLEAN 0x00000002 >X+ >X+/* MIPS relocs. */ >X+ >X+#define R_MIPS_NONE 0 /* No reloc */ >X+#define R_MIPS_16 1 /* Direct 16 bit */ >X+#define R_MIPS_32 2 /* Direct 32 bit */ >X+#define R_MIPS_REL32 3 /* PC relative 32 bit */ >X+#define R_MIPS_26 4 /* Direct 26 bit shifted */ >X+#define R_MIPS_HI16 5 /* High 16 bit */ >X+#define R_MIPS_LO16 6 /* Low 16 bit */ >X+#define R_MIPS_GPREL16 7 /* GP relative 16 bit */ >X+#define R_MIPS_LITERAL 8 /* 16 bit literal entry */ >X+#define R_MIPS_GOT16 9 /* 16 bit GOT entry */ >X+#define R_MIPS_PC16 10 /* PC relative 16 bit */ >X+#define R_MIPS_CALL16 11 /* 16 bit GOT entry for function */ >X+#define R_MIPS_GPREL32 12 /* GP relative 32 bit */ >X+ >X+#define R_MIPS_SHIFT5 16 >X+#define R_MIPS_SHIFT6 17 >X+#define R_MIPS_64 18 >X+#define R_MIPS_GOT_DISP 19 >X+#define R_MIPS_GOT_PAGE 20 >X+#define R_MIPS_GOT_OFST 21 >X+#define R_MIPS_GOT_HI16 22 >X+#define R_MIPS_GOT_LO16 23 >X+#define R_MIPS_SUB 24 >X+#define R_MIPS_INSERT_A 25 >X+#define R_MIPS_INSERT_B 26 >X+#define R_MIPS_DELETE 27 >X+#define R_MIPS_HIGHER 28 >X+#define R_MIPS_HIGHEST 29 >X+#define R_MIPS_CALL_HI16 30 >X+#define R_MIPS_CALL_LO16 31 >X+#define R_MIPS_SCN_DISP 32 >X+#define R_MIPS_REL16 33 >X+#define R_MIPS_ADD_IMMEDIATE 34 >X+#define R_MIPS_PJUMP 35 >X+#define R_MIPS_RELGOT 36 >X+#define R_MIPS_JALR 37 >X+#define R_MIPS_TLS_DTPMOD32 38 /* Module number 32 bit */ >X+#define R_MIPS_TLS_DTPREL32 39 /* Module-relative offset 32 bit */ >X+#define R_MIPS_TLS_DTPMOD64 40 /* Module number 64 bit */ >X+#define R_MIPS_TLS_DTPREL64 41 /* Module-relative offset 64 bit */ >X+#define R_MIPS_TLS_GD 42 /* 16 bit GOT offset for GD */ >X+#define R_MIPS_TLS_LDM 43 /* 16 bit GOT offset for LDM */ >X+#define R_MIPS_TLS_DTPREL_HI16 44 /* Module-relative offset, high 16 bits */ >X+#define R_MIPS_TLS_DTPREL_LO16 45 /* Module-relative offset, low 16 bits */ >X+#define R_MIPS_TLS_GOTTPREL 46 /* 16 bit GOT offset for IE */ >X+#define R_MIPS_TLS_TPREL32 47 /* TP-relative offset, 32 bit */ >X+#define R_MIPS_TLS_TPREL64 48 /* TP-relative offset, 64 bit */ >X+#define R_MIPS_TLS_TPREL_HI16 49 /* TP-relative offset, high 16 bits */ >X+#define R_MIPS_TLS_TPREL_LO16 50 /* TP-relative offset, low 16 bits */ >X+#define R_MIPS_GLOB_DAT 51 >X+#define R_MIPS_COPY 126 >X+#define R_MIPS_JUMP_SLOT 127 >X+/* Keep this the last entry. */ >X+#define R_MIPS_NUM 128 >X+ >X+/* Legal values for p_type field of Elf32_Phdr. */ >X+ >X+#define PT_MIPS_REGINFO 0x70000000 /* Register usage information */ >X+#define PT_MIPS_RTPROC 0x70000001 /* Runtime procedure table. */ >X+#define PT_MIPS_OPTIONS 0x70000002 >X+ >X+/* Special program header types. */ >X+ >X+#define PF_MIPS_LOCAL 0x10000000 >X+ >X+/* Legal values for d_tag field of Elf32_Dyn. */ >X+ >X+#define DT_MIPS_RLD_VERSION 0x70000001 /* Runtime linker interface version */ >X+#define DT_MIPS_TIME_STAMP 0x70000002 /* Timestamp */ >X+#define DT_MIPS_ICHECKSUM 0x70000003 /* Checksum */ >X+#define DT_MIPS_IVERSION 0x70000004 /* Version string (string tbl index) */ >X+#define DT_MIPS_FLAGS 0x70000005 /* Flags */ >X+#define DT_MIPS_BASE_ADDRESS 0x70000006 /* Base address */ >X+#define DT_MIPS_MSYM 0x70000007 >X+#define DT_MIPS_CONFLICT 0x70000008 /* Address of CONFLICT section */ >X+#define DT_MIPS_LIBLIST 0x70000009 /* Address of LIBLIST section */ >X+#define DT_MIPS_LOCAL_GOTNO 0x7000000a /* Number of local GOT entries */ >X+#define DT_MIPS_CONFLICTNO 0x7000000b /* Number of CONFLICT entries */ >X+#define DT_MIPS_LIBLISTNO 0x70000010 /* Number of LIBLIST entries */ >X+#define DT_MIPS_SYMTABNO 0x70000011 /* Number of DYNSYM entries */ >X+#define DT_MIPS_UNREFEXTNO 0x70000012 /* First external DYNSYM */ >X+#define DT_MIPS_GOTSYM 0x70000013 /* First GOT entry in DYNSYM */ >X+#define DT_MIPS_HIPAGENO 0x70000014 /* Number of GOT page table entries */ >X+#define DT_MIPS_RLD_MAP 0x70000016 /* Address of run time loader map. */ >X+#define DT_MIPS_DELTA_CLASS 0x70000017 /* Delta C++ class definition. */ >X+#define DT_MIPS_DELTA_CLASS_NO 0x70000018 /* Number of entries in >X+ DT_MIPS_DELTA_CLASS. */ >X+#define DT_MIPS_DELTA_INSTANCE 0x70000019 /* Delta C++ class instances. */ >X+#define DT_MIPS_DELTA_INSTANCE_NO 0x7000001a /* Number of entries in >X+ DT_MIPS_DELTA_INSTANCE. */ >X+#define DT_MIPS_DELTA_RELOC 0x7000001b /* Delta relocations. */ >X+#define DT_MIPS_DELTA_RELOC_NO 0x7000001c /* Number of entries in >X+ DT_MIPS_DELTA_RELOC. */ >X+#define DT_MIPS_DELTA_SYM 0x7000001d /* Delta symbols that Delta >X+ relocations refer to. */ >X+#define DT_MIPS_DELTA_SYM_NO 0x7000001e /* Number of entries in >X+ DT_MIPS_DELTA_SYM. */ >X+#define DT_MIPS_DELTA_CLASSSYM 0x70000020 /* Delta symbols that hold the >X+ class declaration. */ >X+#define DT_MIPS_DELTA_CLASSSYM_NO 0x70000021 /* Number of entries in >X+ DT_MIPS_DELTA_CLASSSYM. */ >X+#define DT_MIPS_CXX_FLAGS 0x70000022 /* Flags indicating for C++ flavor. */ >X+#define DT_MIPS_PIXIE_INIT 0x70000023 >X+#define DT_MIPS_SYMBOL_LIB 0x70000024 >X+#define DT_MIPS_LOCALPAGE_GOTIDX 0x70000025 >X+#define DT_MIPS_LOCAL_GOTIDX 0x70000026 >X+#define DT_MIPS_HIDDEN_GOTIDX 0x70000027 >X+#define DT_MIPS_PROTECTED_GOTIDX 0x70000028 >X+#define DT_MIPS_OPTIONS 0x70000029 /* Address of .options. */ >X+#define DT_MIPS_INTERFACE 0x7000002a /* Address of .interface. */ >X+#define DT_MIPS_DYNSTR_ALIGN 0x7000002b >X+#define DT_MIPS_INTERFACE_SIZE 0x7000002c /* Size of the .interface section. */ >X+#define DT_MIPS_RLD_TEXT_RESOLVE_ADDR 0x7000002d /* Address of rld_text_rsolve >X+ function stored in GOT. */ >X+#define DT_MIPS_PERF_SUFFIX 0x7000002e /* Default suffix of dso to be added >X+ by rld on dlopen() calls. */ >X+#define DT_MIPS_COMPACT_SIZE 0x7000002f /* (O32)Size of compact rel section. */ >X+#define DT_MIPS_GP_VALUE 0x70000030 /* GP value for aux GOTs. */ >X+#define DT_MIPS_AUX_DYNAMIC 0x70000031 /* Address of aux .dynamic. */ >X+/* The address of .got.plt in an executable using the new non-PIC ABI. */ >X+#define DT_MIPS_PLTGOT 0x70000032 >X+/* The base of the PLT in an executable using the new non-PIC ABI if that >X+ PLT is writable. For a non-writable PLT, this is omitted or has a zero >X+ value. */ >X+#define DT_MIPS_RWPLT 0x70000034 >X+#define DT_MIPS_NUM 0x35 >X+ >X+/* Legal values for DT_MIPS_FLAGS Elf32_Dyn entry. */ >X+ >X+#define RHF_NONE 0 /* No flags */ >X+#define RHF_QUICKSTART (1 << 0) /* Use quickstart */ >X+#define RHF_NOTPOT (1 << 1) /* Hash size not power of 2 */ >X+#define RHF_NO_LIBRARY_REPLACEMENT (1 << 2) /* Ignore LD_LIBRARY_PATH */ >X+#define RHF_NO_MOVE (1 << 3) >X+#define RHF_SGI_ONLY (1 << 4) >X+#define RHF_GUARANTEE_INIT (1 << 5) >X+#define RHF_DELTA_C_PLUS_PLUS (1 << 6) >X+#define RHF_GUARANTEE_START_INIT (1 << 7) >X+#define RHF_PIXIE (1 << 8) >X+#define RHF_DEFAULT_DELAY_LOAD (1 << 9) >X+#define RHF_REQUICKSTART (1 << 10) >X+#define RHF_REQUICKSTARTED (1 << 11) >X+#define RHF_CORD (1 << 12) >X+#define RHF_NO_UNRES_UNDEF (1 << 13) >X+#define RHF_RLD_ORDER_SAFE (1 << 14) >X+ >X+/* Entries found in sections of type SHT_MIPS_LIBLIST. */ >X+ >X+typedef struct >X+{ >X+ Elf32_Word l_name; /* Name (string table index) */ >X+ Elf32_Word l_time_stamp; /* Timestamp */ >X+ Elf32_Word l_checksum; /* Checksum */ >X+ Elf32_Word l_version; /* Interface version */ >X+ Elf32_Word l_flags; /* Flags */ >X+} Elf32_Lib; >X+ >X+typedef struct >X+{ >X+ Elf64_Word l_name; /* Name (string table index) */ >X+ Elf64_Word l_time_stamp; /* Timestamp */ >X+ Elf64_Word l_checksum; /* Checksum */ >X+ Elf64_Word l_version; /* Interface version */ >X+ Elf64_Word l_flags; /* Flags */ >X+} Elf64_Lib; >X+ >X+ >X+/* Legal values for l_flags. */ >X+ >X+#define LL_NONE 0 >X+#define LL_EXACT_MATCH (1 << 0) /* Require exact match */ >X+#define LL_IGNORE_INT_VER (1 << 1) /* Ignore interface version */ >X+#define LL_REQUIRE_MINOR (1 << 2) >X+#define LL_EXPORTS (1 << 3) >X+#define LL_DELAY_LOAD (1 << 4) >X+#define LL_DELTA (1 << 5) >X+ >X+/* Entries found in sections of type SHT_MIPS_CONFLICT. */ >X+ >X+typedef Elf32_Addr Elf32_Conflict; >X+ >X+ >X+/* HPPA specific definitions. */ >X+ >X+/* Legal values for e_flags field of Elf32_Ehdr. */ >X+ >X+#define EF_PARISC_TRAPNIL 0x00010000 /* Trap nil pointer dereference. */ >X+#define EF_PARISC_EXT 0x00020000 /* Program uses arch. extensions. */ >X+#define EF_PARISC_LSB 0x00040000 /* Program expects little endian. */ >X+#define EF_PARISC_WIDE 0x00080000 /* Program expects wide mode. */ >X+#define EF_PARISC_NO_KABP 0x00100000 /* No kernel assisted branch >X+ prediction. */ >X+#define EF_PARISC_LAZYSWAP 0x00400000 /* Allow lazy swapping. */ >X+#define EF_PARISC_ARCH 0x0000ffff /* Architecture version. */ >X+ >X+/* Defined values for `e_flags & EF_PARISC_ARCH' are: */ >X+ >X+#define EFA_PARISC_1_0 0x020b /* PA-RISC 1.0 big-endian. */ >X+#define EFA_PARISC_1_1 0x0210 /* PA-RISC 1.1 big-endian. */ >X+#define EFA_PARISC_2_0 0x0214 /* PA-RISC 2.0 big-endian. */ >X+ >X+/* Additional section indeces. */ >X+ >X+#define SHN_PARISC_ANSI_COMMON 0xff00 /* Section for tenatively declared >X+ symbols in ANSI C. */ >X+#define SHN_PARISC_HUGE_COMMON 0xff01 /* Common blocks in huge model. */ >X+ >X+/* Legal values for sh_type field of Elf32_Shdr. */ >X+ >X+#define SHT_PARISC_EXT 0x70000000 /* Contains product specific ext. */ >X+#define SHT_PARISC_UNWIND 0x70000001 /* Unwind information. */ >X+#define SHT_PARISC_DOC 0x70000002 /* Debug info for optimized code. */ >X+ >X+/* Legal values for sh_flags field of Elf32_Shdr. */ >X+ >X+#define SHF_PARISC_SHORT 0x20000000 /* Section with short addressing. */ >X+#define SHF_PARISC_HUGE 0x40000000 /* Section far from gp. */ >X+#define SHF_PARISC_SBP 0x80000000 /* Static branch prediction code. */ >X+ >X+/* Legal values for ST_TYPE subfield of st_info (symbol type). */ >X+ >X+#define STT_PARISC_MILLICODE 13 /* Millicode function entry point. */ >X+ >X+#define STT_HP_OPAQUE (STT_LOOS + 0x1) >X+#define STT_HP_STUB (STT_LOOS + 0x2) >X+ >X+/* HPPA relocs. */ >X+ >X+#define R_PARISC_NONE 0 /* No reloc. */ >X+#define R_PARISC_DIR32 1 /* Direct 32-bit reference. */ >X+#define R_PARISC_DIR21L 2 /* Left 21 bits of eff. address. */ >X+#define R_PARISC_DIR17R 3 /* Right 17 bits of eff. address. */ >X+#define R_PARISC_DIR17F 4 /* 17 bits of eff. address. */ >X+#define R_PARISC_DIR14R 6 /* Right 14 bits of eff. address. */ >X+#define R_PARISC_PCREL32 9 /* 32-bit rel. address. */ >X+#define R_PARISC_PCREL21L 10 /* Left 21 bits of rel. address. */ >X+#define R_PARISC_PCREL17R 11 /* Right 17 bits of rel. address. */ >X+#define R_PARISC_PCREL17F 12 /* 17 bits of rel. address. */ >X+#define R_PARISC_PCREL14R 14 /* Right 14 bits of rel. address. */ >X+#define R_PARISC_DPREL21L 18 /* Left 21 bits of rel. address. */ >X+#define R_PARISC_DPREL14R 22 /* Right 14 bits of rel. address. */ >X+#define R_PARISC_GPREL21L 26 /* GP-relative, left 21 bits. */ >X+#define R_PARISC_GPREL14R 30 /* GP-relative, right 14 bits. */ >X+#define R_PARISC_LTOFF21L 34 /* LT-relative, left 21 bits. */ >X+#define R_PARISC_LTOFF14R 38 /* LT-relative, right 14 bits. */ >X+#define R_PARISC_SECREL32 41 /* 32 bits section rel. address. */ >X+#define R_PARISC_SEGBASE 48 /* No relocation, set segment base. */ >X+#define R_PARISC_SEGREL32 49 /* 32 bits segment rel. address. */ >X+#define R_PARISC_PLTOFF21L 50 /* PLT rel. address, left 21 bits. */ >X+#define R_PARISC_PLTOFF14R 54 /* PLT rel. address, right 14 bits. */ >X+#define R_PARISC_LTOFF_FPTR32 57 /* 32 bits LT-rel. function pointer. */ >X+#define R_PARISC_LTOFF_FPTR21L 58 /* LT-rel. fct ptr, left 21 bits. */ >X+#define R_PARISC_LTOFF_FPTR14R 62 /* LT-rel. fct ptr, right 14 bits. */ >X+#define R_PARISC_FPTR64 64 /* 64 bits function address. */ >X+#define R_PARISC_PLABEL32 65 /* 32 bits function address. */ >X+#define R_PARISC_PLABEL21L 66 /* Left 21 bits of fdesc address. */ >X+#define R_PARISC_PLABEL14R 70 /* Right 14 bits of fdesc address. */ >X+#define R_PARISC_PCREL64 72 /* 64 bits PC-rel. address. */ >X+#define R_PARISC_PCREL22F 74 /* 22 bits PC-rel. address. */ >X+#define R_PARISC_PCREL14WR 75 /* PC-rel. address, right 14 bits. */ >X+#define R_PARISC_PCREL14DR 76 /* PC rel. address, right 14 bits. */ >X+#define R_PARISC_PCREL16F 77 /* 16 bits PC-rel. address. */ >X+#define R_PARISC_PCREL16WF 78 /* 16 bits PC-rel. address. */ >X+#define R_PARISC_PCREL16DF 79 /* 16 bits PC-rel. address. */ >X+#define R_PARISC_DIR64 80 /* 64 bits of eff. address. */ >X+#define R_PARISC_DIR14WR 83 /* 14 bits of eff. address. */ >X+#define R_PARISC_DIR14DR 84 /* 14 bits of eff. address. */ >X+#define R_PARISC_DIR16F 85 /* 16 bits of eff. address. */ >X+#define R_PARISC_DIR16WF 86 /* 16 bits of eff. address. */ >X+#define R_PARISC_DIR16DF 87 /* 16 bits of eff. address. */ >X+#define R_PARISC_GPREL64 88 /* 64 bits of GP-rel. address. */ >X+#define R_PARISC_GPREL14WR 91 /* GP-rel. address, right 14 bits. */ >X+#define R_PARISC_GPREL14DR 92 /* GP-rel. address, right 14 bits. */ >X+#define R_PARISC_GPREL16F 93 /* 16 bits GP-rel. address. */ >X+#define R_PARISC_GPREL16WF 94 /* 16 bits GP-rel. address. */ >X+#define R_PARISC_GPREL16DF 95 /* 16 bits GP-rel. address. */ >X+#define R_PARISC_LTOFF64 96 /* 64 bits LT-rel. address. */ >X+#define R_PARISC_LTOFF14WR 99 /* LT-rel. address, right 14 bits. */ >X+#define R_PARISC_LTOFF14DR 100 /* LT-rel. address, right 14 bits. */ >X+#define R_PARISC_LTOFF16F 101 /* 16 bits LT-rel. address. */ >X+#define R_PARISC_LTOFF16WF 102 /* 16 bits LT-rel. address. */ >X+#define R_PARISC_LTOFF16DF 103 /* 16 bits LT-rel. address. */ >X+#define R_PARISC_SECREL64 104 /* 64 bits section rel. address. */ >X+#define R_PARISC_SEGREL64 112 /* 64 bits segment rel. address. */ >X+#define R_PARISC_PLTOFF14WR 115 /* PLT-rel. address, right 14 bits. */ >X+#define R_PARISC_PLTOFF14DR 116 /* PLT-rel. address, right 14 bits. */ >X+#define R_PARISC_PLTOFF16F 117 /* 16 bits LT-rel. address. */ >X+#define R_PARISC_PLTOFF16WF 118 /* 16 bits PLT-rel. address. */ >X+#define R_PARISC_PLTOFF16DF 119 /* 16 bits PLT-rel. address. */ >X+#define R_PARISC_LTOFF_FPTR64 120 /* 64 bits LT-rel. function ptr. */ >X+#define R_PARISC_LTOFF_FPTR14WR 123 /* LT-rel. fct. ptr., right 14 bits. */ >X+#define R_PARISC_LTOFF_FPTR14DR 124 /* LT-rel. fct. ptr., right 14 bits. */ >X+#define R_PARISC_LTOFF_FPTR16F 125 /* 16 bits LT-rel. function ptr. */ >X+#define R_PARISC_LTOFF_FPTR16WF 126 /* 16 bits LT-rel. function ptr. */ >X+#define R_PARISC_LTOFF_FPTR16DF 127 /* 16 bits LT-rel. function ptr. */ >X+#define R_PARISC_LORESERVE 128 >X+#define R_PARISC_COPY 128 /* Copy relocation. */ >X+#define R_PARISC_IPLT 129 /* Dynamic reloc, imported PLT */ >X+#define R_PARISC_EPLT 130 /* Dynamic reloc, exported PLT */ >X+#define R_PARISC_TPREL32 153 /* 32 bits TP-rel. address. */ >X+#define R_PARISC_TPREL21L 154 /* TP-rel. address, left 21 bits. */ >X+#define R_PARISC_TPREL14R 158 /* TP-rel. address, right 14 bits. */ >X+#define R_PARISC_LTOFF_TP21L 162 /* LT-TP-rel. address, left 21 bits. */ >X+#define R_PARISC_LTOFF_TP14R 166 /* LT-TP-rel. address, right 14 bits.*/ >X+#define R_PARISC_LTOFF_TP14F 167 /* 14 bits LT-TP-rel. address. */ >X+#define R_PARISC_TPREL64 216 /* 64 bits TP-rel. address. */ >X+#define R_PARISC_TPREL14WR 219 /* TP-rel. address, right 14 bits. */ >X+#define R_PARISC_TPREL14DR 220 /* TP-rel. address, right 14 bits. */ >X+#define R_PARISC_TPREL16F 221 /* 16 bits TP-rel. address. */ >X+#define R_PARISC_TPREL16WF 222 /* 16 bits TP-rel. address. */ >X+#define R_PARISC_TPREL16DF 223 /* 16 bits TP-rel. address. */ >X+#define R_PARISC_LTOFF_TP64 224 /* 64 bits LT-TP-rel. address. */ >X+#define R_PARISC_LTOFF_TP14WR 227 /* LT-TP-rel. address, right 14 bits.*/ >X+#define R_PARISC_LTOFF_TP14DR 228 /* LT-TP-rel. address, right 14 bits.*/ >X+#define R_PARISC_LTOFF_TP16F 229 /* 16 bits LT-TP-rel. address. */ >X+#define R_PARISC_LTOFF_TP16WF 230 /* 16 bits LT-TP-rel. address. */ >X+#define R_PARISC_LTOFF_TP16DF 231 /* 16 bits LT-TP-rel. address. */ >X+#define R_PARISC_GNU_VTENTRY 232 >X+#define R_PARISC_GNU_VTINHERIT 233 >X+#define R_PARISC_TLS_GD21L 234 /* GD 21-bit left. */ >X+#define R_PARISC_TLS_GD14R 235 /* GD 14-bit right. */ >X+#define R_PARISC_TLS_GDCALL 236 /* GD call to __t_g_a. */ >X+#define R_PARISC_TLS_LDM21L 237 /* LD module 21-bit left. */ >X+#define R_PARISC_TLS_LDM14R 238 /* LD module 14-bit right. */ >X+#define R_PARISC_TLS_LDMCALL 239 /* LD module call to __t_g_a. */ >X+#define R_PARISC_TLS_LDO21L 240 /* LD offset 21-bit left. */ >X+#define R_PARISC_TLS_LDO14R 241 /* LD offset 14-bit right. */ >X+#define R_PARISC_TLS_DTPMOD32 242 /* DTP module 32-bit. */ >X+#define R_PARISC_TLS_DTPMOD64 243 /* DTP module 64-bit. */ >X+#define R_PARISC_TLS_DTPOFF32 244 /* DTP offset 32-bit. */ >X+#define R_PARISC_TLS_DTPOFF64 245 /* DTP offset 32-bit. */ >X+#define R_PARISC_TLS_LE21L R_PARISC_TPREL21L >X+#define R_PARISC_TLS_LE14R R_PARISC_TPREL14R >X+#define R_PARISC_TLS_IE21L R_PARISC_LTOFF_TP21L >X+#define R_PARISC_TLS_IE14R R_PARISC_LTOFF_TP14R >X+#define R_PARISC_TLS_TPREL32 R_PARISC_TPREL32 >X+#define R_PARISC_TLS_TPREL64 R_PARISC_TPREL64 >X+#define R_PARISC_HIRESERVE 255 >X+ >X+/* Legal values for p_type field of Elf32_Phdr/Elf64_Phdr. */ >X+ >X+#define PT_HP_TLS (PT_LOOS + 0x0) >X+#define PT_HP_CORE_NONE (PT_LOOS + 0x1) >X+#define PT_HP_CORE_VERSION (PT_LOOS + 0x2) >X+#define PT_HP_CORE_KERNEL (PT_LOOS + 0x3) >X+#define PT_HP_CORE_COMM (PT_LOOS + 0x4) >X+#define PT_HP_CORE_PROC (PT_LOOS + 0x5) >X+#define PT_HP_CORE_LOADABLE (PT_LOOS + 0x6) >X+#define PT_HP_CORE_STACK (PT_LOOS + 0x7) >X+#define PT_HP_CORE_SHM (PT_LOOS + 0x8) >X+#define PT_HP_CORE_MMF (PT_LOOS + 0x9) >X+#define PT_HP_PARALLEL (PT_LOOS + 0x10) >X+#define PT_HP_FASTBIND (PT_LOOS + 0x11) >X+#define PT_HP_OPT_ANNOT (PT_LOOS + 0x12) >X+#define PT_HP_HSL_ANNOT (PT_LOOS + 0x13) >X+#define PT_HP_STACK (PT_LOOS + 0x14) >X+ >X+#define PT_PARISC_ARCHEXT 0x70000000 >X+#define PT_PARISC_UNWIND 0x70000001 >X+ >X+/* Legal values for p_flags field of Elf32_Phdr/Elf64_Phdr. */ >X+ >X+#define PF_PARISC_SBP 0x08000000 >X+ >X+#define PF_HP_PAGE_SIZE 0x00100000 >X+#define PF_HP_FAR_SHARED 0x00200000 >X+#define PF_HP_NEAR_SHARED 0x00400000 >X+#define PF_HP_CODE 0x01000000 >X+#define PF_HP_MODIFY 0x02000000 >X+#define PF_HP_LAZYSWAP 0x04000000 >X+#define PF_HP_SBP 0x08000000 >X+ >X+ >X+/* Alpha specific definitions. */ >X+ >X+/* Legal values for e_flags field of Elf64_Ehdr. */ >X+ >X+#define EF_ALPHA_32BIT 1 /* All addresses must be < 2GB. */ >X+#define EF_ALPHA_CANRELAX 2 /* Relocations for relaxing exist. */ >X+ >X+/* Legal values for sh_type field of Elf64_Shdr. */ >X+ >X+/* These two are primerily concerned with ECOFF debugging info. */ >X+#define SHT_ALPHA_DEBUG 0x70000001 >X+#define SHT_ALPHA_REGINFO 0x70000002 >X+ >X+/* Legal values for sh_flags field of Elf64_Shdr. */ >X+ >X+#define SHF_ALPHA_GPREL 0x10000000 >X+ >X+/* Legal values for st_other field of Elf64_Sym. */ >X+#define STO_ALPHA_NOPV 0x80 /* No PV required. */ >X+#define STO_ALPHA_STD_GPLOAD 0x88 /* PV only used for initial ldgp. */ >X+ >X+/* Alpha relocs. */ >X+ >X+#define R_ALPHA_NONE 0 /* No reloc */ >X+#define R_ALPHA_REFLONG 1 /* Direct 32 bit */ >X+#define R_ALPHA_REFQUAD 2 /* Direct 64 bit */ >X+#define R_ALPHA_GPREL32 3 /* GP relative 32 bit */ >X+#define R_ALPHA_LITERAL 4 /* GP relative 16 bit w/optimization */ >X+#define R_ALPHA_LITUSE 5 /* Optimization hint for LITERAL */ >X+#define R_ALPHA_GPDISP 6 /* Add displacement to GP */ >X+#define R_ALPHA_BRADDR 7 /* PC+4 relative 23 bit shifted */ >X+#define R_ALPHA_HINT 8 /* PC+4 relative 16 bit shifted */ >X+#define R_ALPHA_SREL16 9 /* PC relative 16 bit */ >X+#define R_ALPHA_SREL32 10 /* PC relative 32 bit */ >X+#define R_ALPHA_SREL64 11 /* PC relative 64 bit */ >X+#define R_ALPHA_GPRELHIGH 17 /* GP relative 32 bit, high 16 bits */ >X+#define R_ALPHA_GPRELLOW 18 /* GP relative 32 bit, low 16 bits */ >X+#define R_ALPHA_GPREL16 19 /* GP relative 16 bit */ >X+#define R_ALPHA_COPY 24 /* Copy symbol at runtime */ >X+#define R_ALPHA_GLOB_DAT 25 /* Create GOT entry */ >X+#define R_ALPHA_JMP_SLOT 26 /* Create PLT entry */ >X+#define R_ALPHA_RELATIVE 27 /* Adjust by program base */ >X+#define R_ALPHA_TLS_GD_HI 28 >X+#define R_ALPHA_TLSGD 29 >X+#define R_ALPHA_TLS_LDM 30 >X+#define R_ALPHA_DTPMOD64 31 >X+#define R_ALPHA_GOTDTPREL 32 >X+#define R_ALPHA_DTPREL64 33 >X+#define R_ALPHA_DTPRELHI 34 >X+#define R_ALPHA_DTPRELLO 35 >X+#define R_ALPHA_DTPREL16 36 >X+#define R_ALPHA_GOTTPREL 37 >X+#define R_ALPHA_TPREL64 38 >X+#define R_ALPHA_TPRELHI 39 >X+#define R_ALPHA_TPRELLO 40 >X+#define R_ALPHA_TPREL16 41 >X+/* Keep this the last entry. */ >X+#define R_ALPHA_NUM 46 >X+ >X+/* Magic values of the LITUSE relocation addend. */ >X+#define LITUSE_ALPHA_ADDR 0 >X+#define LITUSE_ALPHA_BASE 1 >X+#define LITUSE_ALPHA_BYTOFF 2 >X+#define LITUSE_ALPHA_JSR 3 >X+#define LITUSE_ALPHA_TLS_GD 4 >X+#define LITUSE_ALPHA_TLS_LDM 5 >X+ >X+/* Legal values for d_tag of Elf64_Dyn. */ >X+#define DT_ALPHA_PLTRO (DT_LOPROC + 0) >X+#define DT_ALPHA_NUM 1 >X+ >X+/* PowerPC specific declarations */ >X+ >X+/* Values for Elf32/64_Ehdr.e_flags. */ >X+#define EF_PPC_EMB 0x80000000 /* PowerPC embedded flag */ >X+ >X+/* Cygnus local bits below */ >X+#define EF_PPC_RELOCATABLE 0x00010000 /* PowerPC -mrelocatable flag*/ >X+#define EF_PPC_RELOCATABLE_LIB 0x00008000 /* PowerPC -mrelocatable-lib >X+ flag */ >X+ >X+/* PowerPC relocations defined by the ABIs */ >X+#define R_PPC_NONE 0 >X+#define R_PPC_ADDR32 1 /* 32bit absolute address */ >X+#define R_PPC_ADDR24 2 /* 26bit address, 2 bits ignored. */ >X+#define R_PPC_ADDR16 3 /* 16bit absolute address */ >X+#define R_PPC_ADDR16_LO 4 /* lower 16bit of absolute address */ >X+#define R_PPC_ADDR16_HI 5 /* high 16bit of absolute address */ >X+#define R_PPC_ADDR16_HA 6 /* adjusted high 16bit */ >X+#define R_PPC_ADDR14 7 /* 16bit address, 2 bits ignored */ >X+#define R_PPC_ADDR14_BRTAKEN 8 >X+#define R_PPC_ADDR14_BRNTAKEN 9 >X+#define R_PPC_REL24 10 /* PC relative 26 bit */ >X+#define R_PPC_REL14 11 /* PC relative 16 bit */ >X+#define R_PPC_REL14_BRTAKEN 12 >X+#define R_PPC_REL14_BRNTAKEN 13 >X+#define R_PPC_GOT16 14 >X+#define R_PPC_GOT16_LO 15 >X+#define R_PPC_GOT16_HI 16 >X+#define R_PPC_GOT16_HA 17 >X+#define R_PPC_PLTREL24 18 >X+#define R_PPC_COPY 19 >X+#define R_PPC_GLOB_DAT 20 >X+#define R_PPC_JMP_SLOT 21 >X+#define R_PPC_RELATIVE 22 >X+#define R_PPC_LOCAL24PC 23 >X+#define R_PPC_UADDR32 24 >X+#define R_PPC_UADDR16 25 >X+#define R_PPC_REL32 26 >X+#define R_PPC_PLT32 27 >X+#define R_PPC_PLTREL32 28 >X+#define R_PPC_PLT16_LO 29 >X+#define R_PPC_PLT16_HI 30 >X+#define R_PPC_PLT16_HA 31 >X+#define R_PPC_SDAREL16 32 >X+#define R_PPC_SECTOFF 33 >X+#define R_PPC_SECTOFF_LO 34 >X+#define R_PPC_SECTOFF_HI 35 >X+#define R_PPC_SECTOFF_HA 36 >X+ >X+/* PowerPC relocations defined for the TLS access ABI. */ >X+#define R_PPC_TLS 67 /* none (sym+add)@tls */ >X+#define R_PPC_DTPMOD32 68 /* word32 (sym+add)@dtpmod */ >X+#define R_PPC_TPREL16 69 /* half16* (sym+add)@tprel */ >X+#define R_PPC_TPREL16_LO 70 /* half16 (sym+add)@tprel@l */ >X+#define R_PPC_TPREL16_HI 71 /* half16 (sym+add)@tprel@h */ >X+#define R_PPC_TPREL16_HA 72 /* half16 (sym+add)@tprel@ha */ >X+#define R_PPC_TPREL32 73 /* word32 (sym+add)@tprel */ >X+#define R_PPC_DTPREL16 74 /* half16* (sym+add)@dtprel */ >X+#define R_PPC_DTPREL16_LO 75 /* half16 (sym+add)@dtprel@l */ >X+#define R_PPC_DTPREL16_HI 76 /* half16 (sym+add)@dtprel@h */ >X+#define R_PPC_DTPREL16_HA 77 /* half16 (sym+add)@dtprel@ha */ >X+#define R_PPC_DTPREL32 78 /* word32 (sym+add)@dtprel */ >X+#define R_PPC_GOT_TLSGD16 79 /* half16* (sym+add)@got@tlsgd */ >X+#define R_PPC_GOT_TLSGD16_LO 80 /* half16 (sym+add)@got@tlsgd@l */ >X+#define R_PPC_GOT_TLSGD16_HI 81 /* half16 (sym+add)@got@tlsgd@h */ >X+#define R_PPC_GOT_TLSGD16_HA 82 /* half16 (sym+add)@got@tlsgd@ha */ >X+#define R_PPC_GOT_TLSLD16 83 /* half16* (sym+add)@got@tlsld */ >X+#define R_PPC_GOT_TLSLD16_LO 84 /* half16 (sym+add)@got@tlsld@l */ >X+#define R_PPC_GOT_TLSLD16_HI 85 /* half16 (sym+add)@got@tlsld@h */ >X+#define R_PPC_GOT_TLSLD16_HA 86 /* half16 (sym+add)@got@tlsld@ha */ >X+#define R_PPC_GOT_TPREL16 87 /* half16* (sym+add)@got@tprel */ >X+#define R_PPC_GOT_TPREL16_LO 88 /* half16 (sym+add)@got@tprel@l */ >X+#define R_PPC_GOT_TPREL16_HI 89 /* half16 (sym+add)@got@tprel@h */ >X+#define R_PPC_GOT_TPREL16_HA 90 /* half16 (sym+add)@got@tprel@ha */ >X+#define R_PPC_GOT_DTPREL16 91 /* half16* (sym+add)@got@dtprel */ >X+#define R_PPC_GOT_DTPREL16_LO 92 /* half16* (sym+add)@got@dtprel@l */ >X+#define R_PPC_GOT_DTPREL16_HI 93 /* half16* (sym+add)@got@dtprel@h */ >X+#define R_PPC_GOT_DTPREL16_HA 94 /* half16* (sym+add)@got@dtprel@ha */ >X+ >X+/* The remaining relocs are from the Embedded ELF ABI, and are not >X+ in the SVR4 ELF ABI. */ >X+#define R_PPC_EMB_NADDR32 101 >X+#define R_PPC_EMB_NADDR16 102 >X+#define R_PPC_EMB_NADDR16_LO 103 >X+#define R_PPC_EMB_NADDR16_HI 104 >X+#define R_PPC_EMB_NADDR16_HA 105 >X+#define R_PPC_EMB_SDAI16 106 >X+#define R_PPC_EMB_SDA2I16 107 >X+#define R_PPC_EMB_SDA2REL 108 >X+#define R_PPC_EMB_SDA21 109 /* 16 bit offset in SDA */ >X+#define R_PPC_EMB_MRKREF 110 >X+#define R_PPC_EMB_RELSEC16 111 >X+#define R_PPC_EMB_RELST_LO 112 >X+#define R_PPC_EMB_RELST_HI 113 >X+#define R_PPC_EMB_RELST_HA 114 >X+#define R_PPC_EMB_BIT_FLD 115 >X+#define R_PPC_EMB_RELSDA 116 /* 16 bit relative offset in SDA */ >X+ >X+/* Diab tool relocations. */ >X+#define R_PPC_DIAB_SDA21_LO 180 /* like EMB_SDA21, but lower 16 bit */ >X+#define R_PPC_DIAB_SDA21_HI 181 /* like EMB_SDA21, but high 16 bit */ >X+#define R_PPC_DIAB_SDA21_HA 182 /* like EMB_SDA21, adjusted high 16 */ >X+#define R_PPC_DIAB_RELSDA_LO 183 /* like EMB_RELSDA, but lower 16 bit */ >X+#define R_PPC_DIAB_RELSDA_HI 184 /* like EMB_RELSDA, but high 16 bit */ >X+#define R_PPC_DIAB_RELSDA_HA 185 /* like EMB_RELSDA, adjusted high 16 */ >X+ >X+/* GNU extension to support local ifunc. */ >X+#define R_PPC_IRELATIVE 248 >X+ >X+/* GNU relocs used in PIC code sequences. */ >X+#define R_PPC_REL16 249 /* half16 (sym+add-.) */ >X+#define R_PPC_REL16_LO 250 /* half16 (sym+add-.)@l */ >X+#define R_PPC_REL16_HI 251 /* half16 (sym+add-.)@h */ >X+#define R_PPC_REL16_HA 252 /* half16 (sym+add-.)@ha */ >X+ >X+/* This is a phony reloc to handle any old fashioned TOC16 references >X+ that may still be in object files. */ >X+#define R_PPC_TOC16 255 >X+ >X+/* PowerPC specific values for the Dyn d_tag field. */ >X+#define DT_PPC_GOT (DT_LOPROC + 0) >X+#define DT_PPC_NUM 1 >X+ >X+/* PowerPC64 relocations defined by the ABIs */ >X+#define R_PPC64_NONE R_PPC_NONE >X+#define R_PPC64_ADDR32 R_PPC_ADDR32 /* 32bit absolute address */ >X+#define R_PPC64_ADDR24 R_PPC_ADDR24 /* 26bit address, word aligned */ >X+#define R_PPC64_ADDR16 R_PPC_ADDR16 /* 16bit absolute address */ >X+#define R_PPC64_ADDR16_LO R_PPC_ADDR16_LO /* lower 16bits of address */ >X+#define R_PPC64_ADDR16_HI R_PPC_ADDR16_HI /* high 16bits of address. */ >X+#define R_PPC64_ADDR16_HA R_PPC_ADDR16_HA /* adjusted high 16bits. */ >X+#define R_PPC64_ADDR14 R_PPC_ADDR14 /* 16bit address, word aligned */ >X+#define R_PPC64_ADDR14_BRTAKEN R_PPC_ADDR14_BRTAKEN >X+#define R_PPC64_ADDR14_BRNTAKEN R_PPC_ADDR14_BRNTAKEN >X+#define R_PPC64_REL24 R_PPC_REL24 /* PC-rel. 26 bit, word aligned */ >X+#define R_PPC64_REL14 R_PPC_REL14 /* PC relative 16 bit */ >X+#define R_PPC64_REL14_BRTAKEN R_PPC_REL14_BRTAKEN >X+#define R_PPC64_REL14_BRNTAKEN R_PPC_REL14_BRNTAKEN >X+#define R_PPC64_GOT16 R_PPC_GOT16 >X+#define R_PPC64_GOT16_LO R_PPC_GOT16_LO >X+#define R_PPC64_GOT16_HI R_PPC_GOT16_HI >X+#define R_PPC64_GOT16_HA R_PPC_GOT16_HA >X+ >X+#define R_PPC64_COPY R_PPC_COPY >X+#define R_PPC64_GLOB_DAT R_PPC_GLOB_DAT >X+#define R_PPC64_JMP_SLOT R_PPC_JMP_SLOT >X+#define R_PPC64_RELATIVE R_PPC_RELATIVE >X+ >X+#define R_PPC64_UADDR32 R_PPC_UADDR32 >X+#define R_PPC64_UADDR16 R_PPC_UADDR16 >X+#define R_PPC64_REL32 R_PPC_REL32 >X+#define R_PPC64_PLT32 R_PPC_PLT32 >X+#define R_PPC64_PLTREL32 R_PPC_PLTREL32 >X+#define R_PPC64_PLT16_LO R_PPC_PLT16_LO >X+#define R_PPC64_PLT16_HI R_PPC_PLT16_HI >X+#define R_PPC64_PLT16_HA R_PPC_PLT16_HA >X+ >X+#define R_PPC64_SECTOFF R_PPC_SECTOFF >X+#define R_PPC64_SECTOFF_LO R_PPC_SECTOFF_LO >X+#define R_PPC64_SECTOFF_HI R_PPC_SECTOFF_HI >X+#define R_PPC64_SECTOFF_HA R_PPC_SECTOFF_HA >X+#define R_PPC64_ADDR30 37 /* word30 (S + A - P) >> 2 */ >X+#define R_PPC64_ADDR64 38 /* doubleword64 S + A */ >X+#define R_PPC64_ADDR16_HIGHER 39 /* half16 #higher(S + A) */ >X+#define R_PPC64_ADDR16_HIGHERA 40 /* half16 #highera(S + A) */ >X+#define R_PPC64_ADDR16_HIGHEST 41 /* half16 #highest(S + A) */ >X+#define R_PPC64_ADDR16_HIGHESTA 42 /* half16 #highesta(S + A) */ >X+#define R_PPC64_UADDR64 43 /* doubleword64 S + A */ >X+#define R_PPC64_REL64 44 /* doubleword64 S + A - P */ >X+#define R_PPC64_PLT64 45 /* doubleword64 L + A */ >X+#define R_PPC64_PLTREL64 46 /* doubleword64 L + A - P */ >X+#define R_PPC64_TOC16 47 /* half16* S + A - .TOC */ >X+#define R_PPC64_TOC16_LO 48 /* half16 #lo(S + A - .TOC.) */ >X+#define R_PPC64_TOC16_HI 49 /* half16 #hi(S + A - .TOC.) */ >X+#define R_PPC64_TOC16_HA 50 /* half16 #ha(S + A - .TOC.) */ >X+#define R_PPC64_TOC 51 /* doubleword64 .TOC */ >X+#define R_PPC64_PLTGOT16 52 /* half16* M + A */ >X+#define R_PPC64_PLTGOT16_LO 53 /* half16 #lo(M + A) */ >X+#define R_PPC64_PLTGOT16_HI 54 /* half16 #hi(M + A) */ >X+#define R_PPC64_PLTGOT16_HA 55 /* half16 #ha(M + A) */ >X+ >X+#define R_PPC64_ADDR16_DS 56 /* half16ds* (S + A) >> 2 */ >X+#define R_PPC64_ADDR16_LO_DS 57 /* half16ds #lo(S + A) >> 2 */ >X+#define R_PPC64_GOT16_DS 58 /* half16ds* (G + A) >> 2 */ >X+#define R_PPC64_GOT16_LO_DS 59 /* half16ds #lo(G + A) >> 2 */ >X+#define R_PPC64_PLT16_LO_DS 60 /* half16ds #lo(L + A) >> 2 */ >X+#define R_PPC64_SECTOFF_DS 61 /* half16ds* (R + A) >> 2 */ >X+#define R_PPC64_SECTOFF_LO_DS 62 /* half16ds #lo(R + A) >> 2 */ >X+#define R_PPC64_TOC16_DS 63 /* half16ds* (S + A - .TOC.) >> 2 */ >X+#define R_PPC64_TOC16_LO_DS 64 /* half16ds #lo(S + A - .TOC.) >> 2 */ >X+#define R_PPC64_PLTGOT16_DS 65 /* half16ds* (M + A) >> 2 */ >X+#define R_PPC64_PLTGOT16_LO_DS 66 /* half16ds #lo(M + A) >> 2 */ >X+ >X+/* PowerPC64 relocations defined for the TLS access ABI. */ >X+#define R_PPC64_TLS 67 /* none (sym+add)@tls */ >X+#define R_PPC64_DTPMOD64 68 /* doubleword64 (sym+add)@dtpmod */ >X+#define R_PPC64_TPREL16 69 /* half16* (sym+add)@tprel */ >X+#define R_PPC64_TPREL16_LO 70 /* half16 (sym+add)@tprel@l */ >X+#define R_PPC64_TPREL16_HI 71 /* half16 (sym+add)@tprel@h */ >X+#define R_PPC64_TPREL16_HA 72 /* half16 (sym+add)@tprel@ha */ >X+#define R_PPC64_TPREL64 73 /* doubleword64 (sym+add)@tprel */ >X+#define R_PPC64_DTPREL16 74 /* half16* (sym+add)@dtprel */ >X+#define R_PPC64_DTPREL16_LO 75 /* half16 (sym+add)@dtprel@l */ >X+#define R_PPC64_DTPREL16_HI 76 /* half16 (sym+add)@dtprel@h */ >X+#define R_PPC64_DTPREL16_HA 77 /* half16 (sym+add)@dtprel@ha */ >X+#define R_PPC64_DTPREL64 78 /* doubleword64 (sym+add)@dtprel */ >X+#define R_PPC64_GOT_TLSGD16 79 /* half16* (sym+add)@got@tlsgd */ >X+#define R_PPC64_GOT_TLSGD16_LO 80 /* half16 (sym+add)@got@tlsgd@l */ >X+#define R_PPC64_GOT_TLSGD16_HI 81 /* half16 (sym+add)@got@tlsgd@h */ >X+#define R_PPC64_GOT_TLSGD16_HA 82 /* half16 (sym+add)@got@tlsgd@ha */ >X+#define R_PPC64_GOT_TLSLD16 83 /* half16* (sym+add)@got@tlsld */ >X+#define R_PPC64_GOT_TLSLD16_LO 84 /* half16 (sym+add)@got@tlsld@l */ >X+#define R_PPC64_GOT_TLSLD16_HI 85 /* half16 (sym+add)@got@tlsld@h */ >X+#define R_PPC64_GOT_TLSLD16_HA 86 /* half16 (sym+add)@got@tlsld@ha */ >X+#define R_PPC64_GOT_TPREL16_DS 87 /* half16ds* (sym+add)@got@tprel */ >X+#define R_PPC64_GOT_TPREL16_LO_DS 88 /* half16ds (sym+add)@got@tprel@l */ >X+#define R_PPC64_GOT_TPREL16_HI 89 /* half16 (sym+add)@got@tprel@h */ >X+#define R_PPC64_GOT_TPREL16_HA 90 /* half16 (sym+add)@got@tprel@ha */ >X+#define R_PPC64_GOT_DTPREL16_DS 91 /* half16ds* (sym+add)@got@dtprel */ >X+#define R_PPC64_GOT_DTPREL16_LO_DS 92 /* half16ds (sym+add)@got@dtprel@l */ >X+#define R_PPC64_GOT_DTPREL16_HI 93 /* half16 (sym+add)@got@dtprel@h */ >X+#define R_PPC64_GOT_DTPREL16_HA 94 /* half16 (sym+add)@got@dtprel@ha */ >X+#define R_PPC64_TPREL16_DS 95 /* half16ds* (sym+add)@tprel */ >X+#define R_PPC64_TPREL16_LO_DS 96 /* half16ds (sym+add)@tprel@l */ >X+#define R_PPC64_TPREL16_HIGHER 97 /* half16 (sym+add)@tprel@higher */ >X+#define R_PPC64_TPREL16_HIGHERA 98 /* half16 (sym+add)@tprel@highera */ >X+#define R_PPC64_TPREL16_HIGHEST 99 /* half16 (sym+add)@tprel@highest */ >X+#define R_PPC64_TPREL16_HIGHESTA 100 /* half16 (sym+add)@tprel@highesta */ >X+#define R_PPC64_DTPREL16_DS 101 /* half16ds* (sym+add)@dtprel */ >X+#define R_PPC64_DTPREL16_LO_DS 102 /* half16ds (sym+add)@dtprel@l */ >X+#define R_PPC64_DTPREL16_HIGHER 103 /* half16 (sym+add)@dtprel@higher */ >X+#define R_PPC64_DTPREL16_HIGHERA 104 /* half16 (sym+add)@dtprel@highera */ >X+#define R_PPC64_DTPREL16_HIGHEST 105 /* half16 (sym+add)@dtprel@highest */ >X+#define R_PPC64_DTPREL16_HIGHESTA 106 /* half16 (sym+add)@dtprel@highesta */ >X+#define R_PPC64_TLSGD 107 /* none (sym+add)@tlsgd */ >X+#define R_PPC64_TLSLD 108 /* none (sym+add)@tlsld */ >X+#define R_PPC64_TOCSAVE 109 /* none */ >X+ >X+/* Added when HA and HI relocs were changed to report overflows. */ >X+#define R_PPC64_ADDR16_HIGH 110 >X+#define R_PPC64_ADDR16_HIGHA 111 >X+#define R_PPC64_TPREL16_HIGH 112 >X+#define R_PPC64_TPREL16_HIGHA 113 >X+#define R_PPC64_DTPREL16_HIGH 114 >X+#define R_PPC64_DTPREL16_HIGHA 115 >X+ >X+/* GNU extension to support local ifunc. */ >X+#define R_PPC64_JMP_IREL 247 >X+#define R_PPC64_IRELATIVE 248 >X+#define R_PPC64_REL16 249 /* half16 (sym+add-.) */ >X+#define R_PPC64_REL16_LO 250 /* half16 (sym+add-.)@l */ >X+#define R_PPC64_REL16_HI 251 /* half16 (sym+add-.)@h */ >X+#define R_PPC64_REL16_HA 252 /* half16 (sym+add-.)@ha */ >X+ >X+/* e_flags bits specifying ABI. >X+ 1 for original function descriptor using ABI, >X+ 2 for revised ABI without function descriptors, >X+ 0 for unspecified or not using any features affected by the differences. */ >X+#define EF_PPC64_ABI 3 >X+ >X+/* PowerPC64 specific values for the Dyn d_tag field. */ >X+#define DT_PPC64_GLINK (DT_LOPROC + 0) >X+#define DT_PPC64_OPD (DT_LOPROC + 1) >X+#define DT_PPC64_OPDSZ (DT_LOPROC + 2) >X+#define DT_PPC64_OPT (DT_LOPROC + 3) >X+#define DT_PPC64_NUM 3 >X+ >X+/* PowerPC64 specific values for the DT_PPC64_OPT Dyn entry. */ >X+#define PPC64_OPT_TLS 1 >X+#define PPC64_OPT_MULTI_TOC 2 >X+ >X+/* PowerPC64 specific values for the Elf64_Sym st_other field. */ >X+#define STO_PPC64_LOCAL_BIT 5 >X+#define STO_PPC64_LOCAL_MASK (7 << STO_PPC64_LOCAL_BIT) >X+#define PPC64_LOCAL_ENTRY_OFFSET(other) \ >X+ (((1 << (((other) & STO_PPC64_LOCAL_MASK) >> STO_PPC64_LOCAL_BIT)) >> 2) << 2) >X+ >X+ >X+/* ARM specific declarations */ >X+ >X+/* Processor specific flags for the ELF header e_flags field. */ >X+#define EF_ARM_RELEXEC 0x01 >X+#define EF_ARM_HASENTRY 0x02 >X+#define EF_ARM_INTERWORK 0x04 >X+#define EF_ARM_APCS_26 0x08 >X+#define EF_ARM_APCS_FLOAT 0x10 >X+#define EF_ARM_PIC 0x20 >X+#define EF_ARM_ALIGN8 0x40 /* 8-bit structure alignment is in use */ >X+#define EF_ARM_NEW_ABI 0x80 >X+#define EF_ARM_OLD_ABI 0x100 >X+#define EF_ARM_SOFT_FLOAT 0x200 >X+#define EF_ARM_VFP_FLOAT 0x400 >X+#define EF_ARM_MAVERICK_FLOAT 0x800 >X+ >X+#define EF_ARM_ABI_FLOAT_SOFT 0x200 /* NB conflicts with EF_ARM_SOFT_FLOAT */ >X+#define EF_ARM_ABI_FLOAT_HARD 0x400 /* NB conflicts with EF_ARM_VFP_FLOAT */ >X+ >X+ >X+/* Other constants defined in the ARM ELF spec. version B-01. */ >X+/* NB. These conflict with values defined above. */ >X+#define EF_ARM_SYMSARESORTED 0x04 >X+#define EF_ARM_DYNSYMSUSESEGIDX 0x08 >X+#define EF_ARM_MAPSYMSFIRST 0x10 >X+#define EF_ARM_EABIMASK 0XFF000000 >X+ >X+/* Constants defined in AAELF. */ >X+#define EF_ARM_BE8 0x00800000 >X+#define EF_ARM_LE8 0x00400000 >X+ >X+#define EF_ARM_EABI_VERSION(flags) ((flags) & EF_ARM_EABIMASK) >X+#define EF_ARM_EABI_UNKNOWN 0x00000000 >X+#define EF_ARM_EABI_VER1 0x01000000 >X+#define EF_ARM_EABI_VER2 0x02000000 >X+#define EF_ARM_EABI_VER3 0x03000000 >X+#define EF_ARM_EABI_VER4 0x04000000 >X+#define EF_ARM_EABI_VER5 0x05000000 >X+ >X+/* Additional symbol types for Thumb. */ >X+#define STT_ARM_TFUNC STT_LOPROC /* A Thumb function. */ >X+#define STT_ARM_16BIT STT_HIPROC /* A Thumb label. */ >X+ >X+/* ARM-specific values for sh_flags */ >X+#define SHF_ARM_ENTRYSECT 0x10000000 /* Section contains an entry point */ >X+#define SHF_ARM_COMDEF 0x80000000 /* Section may be multiply defined >X+ in the input to a link step. */ >X+ >X+/* ARM-specific program header flags */ >X+#define PF_ARM_SB 0x10000000 /* Segment contains the location >X+ addressed by the static base. */ >X+#define PF_ARM_PI 0x20000000 /* Position-independent segment. */ >X+#define PF_ARM_ABS 0x40000000 /* Absolute segment. */ >X+ >X+/* Processor specific values for the Phdr p_type field. */ >X+#define PT_ARM_EXIDX (PT_LOPROC + 1) /* ARM unwind segment. */ >X+ >X+/* Processor specific values for the Shdr sh_type field. */ >X+#define SHT_ARM_EXIDX (SHT_LOPROC + 1) /* ARM unwind section. */ >X+#define SHT_ARM_PREEMPTMAP (SHT_LOPROC + 2) /* Preemption details. */ >X+#define SHT_ARM_ATTRIBUTES (SHT_LOPROC + 3) /* ARM attributes section. */ >X+ >X+ >X+/* AArch64 relocs. */ >X+ >X+#define R_AARCH64_NONE 0 /* No relocation. */ >X+#define R_AARCH64_ABS64 257 /* Direct 64 bit. */ >X+#define R_AARCH64_ABS32 258 /* Direct 32 bit. */ >X+#define R_AARCH64_ABS16 259 /* Direct 16-bit. */ >X+#define R_AARCH64_PREL64 260 /* PC-relative 64-bit. */ >X+#define R_AARCH64_PREL32 261 /* PC-relative 32-bit. */ >X+#define R_AARCH64_PREL16 262 /* PC-relative 16-bit. */ >X+#define R_AARCH64_MOVW_UABS_G0 263 /* Dir. MOVZ imm. from bits 15:0. */ >X+#define R_AARCH64_MOVW_UABS_G0_NC 264 /* Likewise for MOVK; no check. */ >X+#define R_AARCH64_MOVW_UABS_G1 265 /* Dir. MOVZ imm. from bits 31:16. */ >X+#define R_AARCH64_MOVW_UABS_G1_NC 266 /* Likewise for MOVK; no check. */ >X+#define R_AARCH64_MOVW_UABS_G2 267 /* Dir. MOVZ imm. from bits 47:32. */ >X+#define R_AARCH64_MOVW_UABS_G2_NC 268 /* Likewise for MOVK; no check. */ >X+#define R_AARCH64_MOVW_UABS_G3 269 /* Dir. MOV{K,Z} imm. from 63:48. */ >X+#define R_AARCH64_MOVW_SABS_G0 270 /* Dir. MOV{N,Z} imm. from 15:0. */ >X+#define R_AARCH64_MOVW_SABS_G1 271 /* Dir. MOV{N,Z} imm. from 31:16. */ >X+#define R_AARCH64_MOVW_SABS_G2 272 /* Dir. MOV{N,Z} imm. from 47:32. */ >X+#define R_AARCH64_LD_PREL_LO19 273 /* PC-rel. LD imm. from bits 20:2. */ >X+#define R_AARCH64_ADR_PREL_LO21 274 /* PC-rel. ADR imm. from bits 20:0. */ >X+#define R_AARCH64_ADR_PREL_PG_HI21 275 /* Page-rel. ADRP imm. from 32:12. */ >X+#define R_AARCH64_ADR_PREL_PG_HI21_NC 276 /* Likewise; no overflow check. */ >X+#define R_AARCH64_ADD_ABS_LO12_NC 277 /* Dir. ADD imm. from bits 11:0. */ >X+#define R_AARCH64_LDST8_ABS_LO12_NC 278 /* Likewise for LD/ST; no check. */ >X+#define R_AARCH64_TSTBR14 279 /* PC-rel. TBZ/TBNZ imm. from 15:2. */ >X+#define R_AARCH64_CONDBR19 280 /* PC-rel. cond. br. imm. from 20:2. */ >X+#define R_AARCH64_JUMP26 282 /* PC-rel. B imm. from bits 27:2. */ >X+#define R_AARCH64_CALL26 283 /* Likewise for CALL. */ >X+#define R_AARCH64_LDST16_ABS_LO12_NC 284 /* Dir. ADD imm. from bits 11:1. */ >X+#define R_AARCH64_LDST32_ABS_LO12_NC 285 /* Likewise for bits 11:2. */ >X+#define R_AARCH64_LDST64_ABS_LO12_NC 286 /* Likewise for bits 11:3. */ >X+#define R_AARCH64_MOVW_PREL_G0 287 /* PC-rel. MOV{N,Z} imm. from 15:0. */ >X+#define R_AARCH64_MOVW_PREL_G0_NC 288 /* Likewise for MOVK; no check. */ >X+#define R_AARCH64_MOVW_PREL_G1 289 /* PC-rel. MOV{N,Z} imm. from 31:16. */ >X+#define R_AARCH64_MOVW_PREL_G1_NC 290 /* Likewise for MOVK; no check. */ >X+#define R_AARCH64_MOVW_PREL_G2 291 /* PC-rel. MOV{N,Z} imm. from 47:32. */ >X+#define R_AARCH64_MOVW_PREL_G2_NC 292 /* Likewise for MOVK; no check. */ >X+#define R_AARCH64_MOVW_PREL_G3 293 /* PC-rel. MOV{N,Z} imm. from 63:48. */ >X+#define R_AARCH64_LDST128_ABS_LO12_NC 299 /* Dir. ADD imm. from bits 11:4. */ >X+#define R_AARCH64_MOVW_GOTOFF_G0 300 /* GOT-rel. off. MOV{N,Z} imm. 15:0. */ >X+#define R_AARCH64_MOVW_GOTOFF_G0_NC 301 /* Likewise for MOVK; no check. */ >X+#define R_AARCH64_MOVW_GOTOFF_G1 302 /* GOT-rel. o. MOV{N,Z} imm. 31:16. */ >X+#define R_AARCH64_MOVW_GOTOFF_G1_NC 303 /* Likewise for MOVK; no check. */ >X+#define R_AARCH64_MOVW_GOTOFF_G2 304 /* GOT-rel. o. MOV{N,Z} imm. 47:32. */ >X+#define R_AARCH64_MOVW_GOTOFF_G2_NC 305 /* Likewise for MOVK; no check. */ >X+#define R_AARCH64_MOVW_GOTOFF_G3 306 /* GOT-rel. o. MOV{N,Z} imm. 63:48. */ >X+#define R_AARCH64_GOTREL64 307 /* GOT-relative 64-bit. */ >X+#define R_AARCH64_GOTREL32 308 /* GOT-relative 32-bit. */ >X+#define R_AARCH64_GOT_LD_PREL19 309 /* PC-rel. GOT off. load imm. 20:2. */ >X+#define R_AARCH64_LD64_GOTOFF_LO15 310 /* GOT-rel. off. LD/ST imm. 14:3. */ >X+#define R_AARCH64_ADR_GOT_PAGE 311 /* P-page-rel. GOT off. ADRP 32:12. */ >X+#define R_AARCH64_LD64_GOT_LO12_NC 312 /* Dir. GOT off. LD/ST imm. 11:3. */ >X+#define R_AARCH64_LD64_GOTPAGE_LO15 313 /* GOT-page-rel. GOT off. LD/ST 14:3 */ >X+#define R_AARCH64_TLSGD_ADR_PREL21 512 /* PC-relative ADR imm. 20:0. */ >X+#define R_AARCH64_TLSGD_ADR_PAGE21 513 /* page-rel. ADRP imm. 32:12. */ >X+#define R_AARCH64_TLSGD_ADD_LO12_NC 514 /* direct ADD imm. from 11:0. */ >X+#define R_AARCH64_TLSGD_MOVW_G1 515 /* GOT-rel. MOV{N,Z} 31:16. */ >X+#define R_AARCH64_TLSGD_MOVW_G0_NC 516 /* GOT-rel. MOVK imm. 15:0. */ >X+#define R_AARCH64_TLSLD_ADR_PREL21 517 /* Like 512; local dynamic model. */ >X+#define R_AARCH64_TLSLD_ADR_PAGE21 518 /* Like 513; local dynamic model. */ >X+#define R_AARCH64_TLSLD_ADD_LO12_NC 519 /* Like 514; local dynamic model. */ >X+#define R_AARCH64_TLSLD_MOVW_G1 520 /* Like 515; local dynamic model. */ >X+#define R_AARCH64_TLSLD_MOVW_G0_NC 521 /* Like 516; local dynamic model. */ >X+#define R_AARCH64_TLSLD_LD_PREL19 522 /* TLS PC-rel. load imm. 20:2. */ >X+#define R_AARCH64_TLSLD_MOVW_DTPREL_G2 523 /* TLS DTP-rel. MOV{N,Z} 47:32. */ >X+#define R_AARCH64_TLSLD_MOVW_DTPREL_G1 524 /* TLS DTP-rel. MOV{N,Z} 31:16. */ >X+#define R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC 525 /* Likewise; MOVK; no check. */ >X+#define R_AARCH64_TLSLD_MOVW_DTPREL_G0 526 /* TLS DTP-rel. MOV{N,Z} 15:0. */ >X+#define R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC 527 /* Likewise; MOVK; no check. */ >X+#define R_AARCH64_TLSLD_ADD_DTPREL_HI12 528 /* DTP-rel. ADD imm. from 23:12. */ >X+#define R_AARCH64_TLSLD_ADD_DTPREL_LO12 529 /* DTP-rel. ADD imm. from 11:0. */ >X+#define R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC 530 /* Likewise; no ovfl. check. */ >X+#define R_AARCH64_TLSLD_LDST8_DTPREL_LO12 531 /* DTP-rel. LD/ST imm. 11:0. */ >X+#define R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC 532 /* Likewise; no check. */ >X+#define R_AARCH64_TLSLD_LDST16_DTPREL_LO12 533 /* DTP-rel. LD/ST imm. 11:1. */ >X+#define R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC 534 /* Likewise; no check. */ >X+#define R_AARCH64_TLSLD_LDST32_DTPREL_LO12 535 /* DTP-rel. LD/ST imm. 11:2. */ >X+#define R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC 536 /* Likewise; no check. */ >X+#define R_AARCH64_TLSLD_LDST64_DTPREL_LO12 537 /* DTP-rel. LD/ST imm. 11:3. */ >X+#define R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC 538 /* Likewise; no check. */ >X+#define R_AARCH64_TLSIE_MOVW_GOTTPREL_G1 539 /* GOT-rel. MOV{N,Z} 31:16. */ >X+#define R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC 540 /* GOT-rel. MOVK 15:0. */ >X+#define R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21 541 /* Page-rel. ADRP 32:12. */ >X+#define R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC 542 /* Direct LD off. 11:3. */ >X+#define R_AARCH64_TLSIE_LD_GOTTPREL_PREL19 543 /* PC-rel. load imm. 20:2. */ >X+#define R_AARCH64_TLSLE_MOVW_TPREL_G2 544 /* TLS TP-rel. MOV{N,Z} 47:32. */ >X+#define R_AARCH64_TLSLE_MOVW_TPREL_G1 545 /* TLS TP-rel. MOV{N,Z} 31:16. */ >X+#define R_AARCH64_TLSLE_MOVW_TPREL_G1_NC 546 /* Likewise; MOVK; no check. */ >X+#define R_AARCH64_TLSLE_MOVW_TPREL_G0 547 /* TLS TP-rel. MOV{N,Z} 15:0. */ >X+#define R_AARCH64_TLSLE_MOVW_TPREL_G0_NC 548 /* Likewise; MOVK; no check. */ >X+#define R_AARCH64_TLSLE_ADD_TPREL_HI12 549 /* TP-rel. ADD imm. 23:12. */ >X+#define R_AARCH64_TLSLE_ADD_TPREL_LO12 550 /* TP-rel. ADD imm. 11:0. */ >X+#define R_AARCH64_TLSLE_ADD_TPREL_LO12_NC 551 /* Likewise; no ovfl. check. */ >X+#define R_AARCH64_TLSLE_LDST8_TPREL_LO12 552 /* TP-rel. LD/ST off. 11:0. */ >X+#define R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC 553 /* Likewise; no ovfl. check. */ >X+#define R_AARCH64_TLSLE_LDST16_TPREL_LO12 554 /* TP-rel. LD/ST off. 11:1. */ >X+#define R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC 555 /* Likewise; no check. */ >X+#define R_AARCH64_TLSLE_LDST32_TPREL_LO12 556 /* TP-rel. LD/ST off. 11:2. */ >X+#define R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC 557 /* Likewise; no check. */ >X+#define R_AARCH64_TLSLE_LDST64_TPREL_LO12 558 /* TP-rel. LD/ST off. 11:3. */ >X+#define R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC 559 /* Likewise; no check. */ >X+#define R_AARCH64_TLSDESC_LD_PREL19 560 /* PC-rel. load immediate 20:2. */ >X+#define R_AARCH64_TLSDESC_ADR_PREL21 561 /* PC-rel. ADR immediate 20:0. */ >X+#define R_AARCH64_TLSDESC_ADR_PAGE21 562 /* Page-rel. ADRP imm. 32:12. */ >X+#define R_AARCH64_TLSDESC_LD64_LO12 563 /* Direct LD off. from 11:3. */ >X+#define R_AARCH64_TLSDESC_ADD_LO12 564 /* Direct ADD imm. from 11:0. */ >X+#define R_AARCH64_TLSDESC_OFF_G1 565 /* GOT-rel. MOV{N,Z} imm. 31:16. */ >X+#define R_AARCH64_TLSDESC_OFF_G0_NC 566 /* GOT-rel. MOVK imm. 15:0; no ck. */ >X+#define R_AARCH64_TLSDESC_LDR 567 /* Relax LDR. */ >X+#define R_AARCH64_TLSDESC_ADD 568 /* Relax ADD. */ >X+#define R_AARCH64_TLSDESC_CALL 569 /* Relax BLR. */ >X+#define R_AARCH64_TLSLE_LDST128_TPREL_LO12 570 /* TP-rel. LD/ST off. 11:4. */ >X+#define R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC 571 /* Likewise; no check. */ >X+#define R_AARCH64_TLSLD_LDST128_DTPREL_LO12 572 /* DTP-rel. LD/ST imm. 11:4. */ >X+#define R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC 573 /* Likewise; no check. */ >X+#define R_AARCH64_COPY 1024 /* Copy symbol at runtime. */ >X+#define R_AARCH64_GLOB_DAT 1025 /* Create GOT entry. */ >X+#define R_AARCH64_JUMP_SLOT 1026 /* Create PLT entry. */ >X+#define R_AARCH64_RELATIVE 1027 /* Adjust by program base. */ >X+#define R_AARCH64_TLS_DTPMOD64 1028 /* Module number, 64 bit. */ >X+#define R_AARCH64_TLS_DTPREL64 1029 /* Module-relative offset, 64 bit. */ >X+#define R_AARCH64_TLS_TPREL64 1030 /* TP-relative offset, 64 bit. */ >X+#define R_AARCH64_TLSDESC 1031 /* TLS Descriptor. */ >X+#define R_AARCH64_IRELATIVE 1032 /* STT_GNU_IFUNC relocation. */ >X+ >X+/* ARM relocs. */ >X+ >X+#define R_ARM_NONE 0 /* No reloc */ >X+#define R_ARM_PC24 1 /* Deprecated PC relative 26 >X+ bit branch. */ >X+#define R_ARM_ABS32 2 /* Direct 32 bit */ >X+#define R_ARM_REL32 3 /* PC relative 32 bit */ >X+#define R_ARM_PC13 4 >X+#define R_ARM_ABS16 5 /* Direct 16 bit */ >X+#define R_ARM_ABS12 6 /* Direct 12 bit */ >X+#define R_ARM_THM_ABS5 7 /* Direct & 0x7C (LDR, STR). */ >X+#define R_ARM_ABS8 8 /* Direct 8 bit */ >X+#define R_ARM_SBREL32 9 >X+#define R_ARM_THM_PC22 10 /* PC relative 24 bit (Thumb32 BL). */ >X+#define R_ARM_THM_PC8 11 /* PC relative & 0x3FC >X+ (Thumb16 LDR, ADD, ADR). */ >X+#define R_ARM_AMP_VCALL9 12 >X+#define R_ARM_SWI24 13 /* Obsolete static relocation. */ >X+#define R_ARM_TLS_DESC 13 /* Dynamic relocation. */ >X+#define R_ARM_THM_SWI8 14 /* Reserved. */ >X+#define R_ARM_XPC25 15 /* Reserved. */ >X+#define R_ARM_THM_XPC22 16 /* Reserved. */ >X+#define R_ARM_TLS_DTPMOD32 17 /* ID of module containing symbol */ >X+#define R_ARM_TLS_DTPOFF32 18 /* Offset in TLS block */ >X+#define R_ARM_TLS_TPOFF32 19 /* Offset in static TLS block */ >X+#define R_ARM_COPY 20 /* Copy symbol at runtime */ >X+#define R_ARM_GLOB_DAT 21 /* Create GOT entry */ >X+#define R_ARM_JUMP_SLOT 22 /* Create PLT entry */ >X+#define R_ARM_RELATIVE 23 /* Adjust by program base */ >X+#define R_ARM_GOTOFF 24 /* 32 bit offset to GOT */ >X+#define R_ARM_GOTPC 25 /* 32 bit PC relative offset to GOT */ >X+#define R_ARM_GOT32 26 /* 32 bit GOT entry */ >X+#define R_ARM_PLT32 27 /* Deprecated, 32 bit PLT address. */ >X+#define R_ARM_CALL 28 /* PC relative 24 bit (BL, BLX). */ >X+#define R_ARM_JUMP24 29 /* PC relative 24 bit >X+ (B, BL<cond>). */ >X+#define R_ARM_THM_JUMP24 30 /* PC relative 24 bit (Thumb32 B.W). */ >X+#define R_ARM_BASE_ABS 31 /* Adjust by program base. */ >X+#define R_ARM_ALU_PCREL_7_0 32 /* Obsolete. */ >X+#define R_ARM_ALU_PCREL_15_8 33 /* Obsolete. */ >X+#define R_ARM_ALU_PCREL_23_15 34 /* Obsolete. */ >X+#define R_ARM_LDR_SBREL_11_0 35 /* Deprecated, prog. base relative. */ >X+#define R_ARM_ALU_SBREL_19_12 36 /* Deprecated, prog. base relative. */ >X+#define R_ARM_ALU_SBREL_27_20 37 /* Deprecated, prog. base relative. */ >X+#define R_ARM_TARGET1 38 >X+#define R_ARM_SBREL31 39 /* Program base relative. */ >X+#define R_ARM_V4BX 40 >X+#define R_ARM_TARGET2 41 >X+#define R_ARM_PREL31 42 /* 32 bit PC relative. */ >X+#define R_ARM_MOVW_ABS_NC 43 /* Direct 16-bit (MOVW). */ >X+#define R_ARM_MOVT_ABS 44 /* Direct high 16-bit (MOVT). */ >X+#define R_ARM_MOVW_PREL_NC 45 /* PC relative 16-bit (MOVW). */ >X+#define R_ARM_MOVT_PREL 46 /* PC relative (MOVT). */ >X+#define R_ARM_THM_MOVW_ABS_NC 47 /* Direct 16 bit (Thumb32 MOVW). */ >X+#define R_ARM_THM_MOVT_ABS 48 /* Direct high 16 bit >X+ (Thumb32 MOVT). */ >X+#define R_ARM_THM_MOVW_PREL_NC 49 /* PC relative 16 bit >X+ (Thumb32 MOVW). */ >X+#define R_ARM_THM_MOVT_PREL 50 /* PC relative high 16 bit >X+ (Thumb32 MOVT). */ >X+#define R_ARM_THM_JUMP19 51 /* PC relative 20 bit >X+ (Thumb32 B<cond>.W). */ >X+#define R_ARM_THM_JUMP6 52 /* PC relative X & 0x7E >X+ (Thumb16 CBZ, CBNZ). */ >X+#define R_ARM_THM_ALU_PREL_11_0 53 /* PC relative 12 bit >X+ (Thumb32 ADR.W). */ >X+#define R_ARM_THM_PC12 54 /* PC relative 12 bit >X+ (Thumb32 LDR{D,SB,H,SH}). */ >X+#define R_ARM_ABS32_NOI 55 /* Direct 32-bit. */ >X+#define R_ARM_REL32_NOI 56 /* PC relative 32-bit. */ >X+#define R_ARM_ALU_PC_G0_NC 57 /* PC relative (ADD, SUB). */ >X+#define R_ARM_ALU_PC_G0 58 /* PC relative (ADD, SUB). */ >X+#define R_ARM_ALU_PC_G1_NC 59 /* PC relative (ADD, SUB). */ >X+#define R_ARM_ALU_PC_G1 60 /* PC relative (ADD, SUB). */ >X+#define R_ARM_ALU_PC_G2 61 /* PC relative (ADD, SUB). */ >X+#define R_ARM_LDR_PC_G1 62 /* PC relative (LDR,STR,LDRB,STRB). */ >X+#define R_ARM_LDR_PC_G2 63 /* PC relative (LDR,STR,LDRB,STRB). */ >X+#define R_ARM_LDRS_PC_G0 64 /* PC relative (STR{D,H}, >X+ LDR{D,SB,H,SH}). */ >X+#define R_ARM_LDRS_PC_G1 65 /* PC relative (STR{D,H}, >X+ LDR{D,SB,H,SH}). */ >X+#define R_ARM_LDRS_PC_G2 66 /* PC relative (STR{D,H}, >X+ LDR{D,SB,H,SH}). */ >X+#define R_ARM_LDC_PC_G0 67 /* PC relative (LDC, STC). */ >X+#define R_ARM_LDC_PC_G1 68 /* PC relative (LDC, STC). */ >X+#define R_ARM_LDC_PC_G2 69 /* PC relative (LDC, STC). */ >X+#define R_ARM_ALU_SB_G0_NC 70 /* Program base relative (ADD,SUB). */ >X+#define R_ARM_ALU_SB_G0 71 /* Program base relative (ADD,SUB). */ >X+#define R_ARM_ALU_SB_G1_NC 72 /* Program base relative (ADD,SUB). */ >X+#define R_ARM_ALU_SB_G1 73 /* Program base relative (ADD,SUB). */ >X+#define R_ARM_ALU_SB_G2 74 /* Program base relative (ADD,SUB). */ >X+#define R_ARM_LDR_SB_G0 75 /* Program base relative (LDR, >X+ STR, LDRB, STRB). */ >X+#define R_ARM_LDR_SB_G1 76 /* Program base relative >X+ (LDR, STR, LDRB, STRB). */ >X+#define R_ARM_LDR_SB_G2 77 /* Program base relative >X+ (LDR, STR, LDRB, STRB). */ >X+#define R_ARM_LDRS_SB_G0 78 /* Program base relative >X+ (LDR, STR, LDRB, STRB). */ >X+#define R_ARM_LDRS_SB_G1 79 /* Program base relative >X+ (LDR, STR, LDRB, STRB). */ >X+#define R_ARM_LDRS_SB_G2 80 /* Program base relative >X+ (LDR, STR, LDRB, STRB). */ >X+#define R_ARM_LDC_SB_G0 81 /* Program base relative (LDC,STC). */ >X+#define R_ARM_LDC_SB_G1 82 /* Program base relative (LDC,STC). */ >X+#define R_ARM_LDC_SB_G2 83 /* Program base relative (LDC,STC). */ >X+#define R_ARM_MOVW_BREL_NC 84 /* Program base relative 16 >X+ bit (MOVW). */ >X+#define R_ARM_MOVT_BREL 85 /* Program base relative high >X+ 16 bit (MOVT). */ >X+#define R_ARM_MOVW_BREL 86 /* Program base relative 16 >X+ bit (MOVW). */ >X+#define R_ARM_THM_MOVW_BREL_NC 87 /* Program base relative 16 >X+ bit (Thumb32 MOVW). */ >X+#define R_ARM_THM_MOVT_BREL 88 /* Program base relative high >X+ 16 bit (Thumb32 MOVT). */ >X+#define R_ARM_THM_MOVW_BREL 89 /* Program base relative 16 >X+ bit (Thumb32 MOVW). */ >X+#define R_ARM_TLS_GOTDESC 90 >X+#define R_ARM_TLS_CALL 91 >X+#define R_ARM_TLS_DESCSEQ 92 /* TLS relaxation. */ >X+#define R_ARM_THM_TLS_CALL 93 >X+#define R_ARM_PLT32_ABS 94 >X+#define R_ARM_GOT_ABS 95 /* GOT entry. */ >X+#define R_ARM_GOT_PREL 96 /* PC relative GOT entry. */ >X+#define R_ARM_GOT_BREL12 97 /* GOT entry relative to GOT >X+ origin (LDR). */ >X+#define R_ARM_GOTOFF12 98 /* 12 bit, GOT entry relative >X+ to GOT origin (LDR, STR). */ >X+#define R_ARM_GOTRELAX 99 >X+#define R_ARM_GNU_VTENTRY 100 >X+#define R_ARM_GNU_VTINHERIT 101 >X+#define R_ARM_THM_PC11 102 /* PC relative & 0xFFE (Thumb16 B). */ >X+#define R_ARM_THM_PC9 103 /* PC relative & 0x1FE >X+ (Thumb16 B/B<cond>). */ >X+#define R_ARM_TLS_GD32 104 /* PC-rel 32 bit for global dynamic >X+ thread local data */ >X+#define R_ARM_TLS_LDM32 105 /* PC-rel 32 bit for local dynamic >X+ thread local data */ >X+#define R_ARM_TLS_LDO32 106 /* 32 bit offset relative to TLS >X+ block */ >X+#define R_ARM_TLS_IE32 107 /* PC-rel 32 bit for GOT entry of >X+ static TLS block offset */ >X+#define R_ARM_TLS_LE32 108 /* 32 bit offset relative to static >X+ TLS block */ >X+#define R_ARM_TLS_LDO12 109 /* 12 bit relative to TLS >X+ block (LDR, STR). */ >X+#define R_ARM_TLS_LE12 110 /* 12 bit relative to static >X+ TLS block (LDR, STR). */ >X+#define R_ARM_TLS_IE12GP 111 /* 12 bit GOT entry relative >X+ to GOT origin (LDR). */ >X+#define R_ARM_ME_TOO 128 /* Obsolete. */ >X+#define R_ARM_THM_TLS_DESCSEQ 129 >X+#define R_ARM_THM_TLS_DESCSEQ16 129 >X+#define R_ARM_THM_TLS_DESCSEQ32 130 >X+#define R_ARM_THM_GOT_BREL12 131 /* GOT entry relative to GOT >X+ origin, 12 bit (Thumb32 LDR). */ >X+#define R_ARM_IRELATIVE 160 >X+#define R_ARM_RXPC25 249 >X+#define R_ARM_RSBREL32 250 >X+#define R_ARM_THM_RPC22 251 >X+#define R_ARM_RREL32 252 >X+#define R_ARM_RABS22 253 >X+#define R_ARM_RPC24 254 >X+#define R_ARM_RBASE 255 >X+/* Keep this the last entry. */ >X+#define R_ARM_NUM 256 >X+ >X+/* IA-64 specific declarations. */ >X+ >X+/* Processor specific flags for the Ehdr e_flags field. */ >X+#define EF_IA_64_MASKOS 0x0000000f /* os-specific flags */ >X+#define EF_IA_64_ABI64 0x00000010 /* 64-bit ABI */ >X+#define EF_IA_64_ARCH 0xff000000 /* arch. version mask */ >X+ >X+/* Processor specific values for the Phdr p_type field. */ >X+#define PT_IA_64_ARCHEXT (PT_LOPROC + 0) /* arch extension bits */ >X+#define PT_IA_64_UNWIND (PT_LOPROC + 1) /* ia64 unwind bits */ >X+#define PT_IA_64_HP_OPT_ANOT (PT_LOOS + 0x12) >X+#define PT_IA_64_HP_HSL_ANOT (PT_LOOS + 0x13) >X+#define PT_IA_64_HP_STACK (PT_LOOS + 0x14) >X+ >X+/* Processor specific flags for the Phdr p_flags field. */ >X+#define PF_IA_64_NORECOV 0x80000000 /* spec insns w/o recovery */ >X+ >X+/* Processor specific values for the Shdr sh_type field. */ >X+#define SHT_IA_64_EXT (SHT_LOPROC + 0) /* extension bits */ >X+#define SHT_IA_64_UNWIND (SHT_LOPROC + 1) /* unwind bits */ >X+ >X+/* Processor specific flags for the Shdr sh_flags field. */ >X+#define SHF_IA_64_SHORT 0x10000000 /* section near gp */ >X+#define SHF_IA_64_NORECOV 0x20000000 /* spec insns w/o recovery */ >X+ >X+/* Processor specific values for the Dyn d_tag field. */ >X+#define DT_IA_64_PLT_RESERVE (DT_LOPROC + 0) >X+#define DT_IA_64_NUM 1 >X+ >X+/* IA-64 relocations. */ >X+#define R_IA64_NONE 0x00 /* none */ >X+#define R_IA64_IMM14 0x21 /* symbol + addend, add imm14 */ >X+#define R_IA64_IMM22 0x22 /* symbol + addend, add imm22 */ >X+#define R_IA64_IMM64 0x23 /* symbol + addend, mov imm64 */ >X+#define R_IA64_DIR32MSB 0x24 /* symbol + addend, data4 MSB */ >X+#define R_IA64_DIR32LSB 0x25 /* symbol + addend, data4 LSB */ >X+#define R_IA64_DIR64MSB 0x26 /* symbol + addend, data8 MSB */ >X+#define R_IA64_DIR64LSB 0x27 /* symbol + addend, data8 LSB */ >X+#define R_IA64_GPREL22 0x2a /* @gprel(sym + add), add imm22 */ >X+#define R_IA64_GPREL64I 0x2b /* @gprel(sym + add), mov imm64 */ >X+#define R_IA64_GPREL32MSB 0x2c /* @gprel(sym + add), data4 MSB */ >X+#define R_IA64_GPREL32LSB 0x2d /* @gprel(sym + add), data4 LSB */ >X+#define R_IA64_GPREL64MSB 0x2e /* @gprel(sym + add), data8 MSB */ >X+#define R_IA64_GPREL64LSB 0x2f /* @gprel(sym + add), data8 LSB */ >X+#define R_IA64_LTOFF22 0x32 /* @ltoff(sym + add), add imm22 */ >X+#define R_IA64_LTOFF64I 0x33 /* @ltoff(sym + add), mov imm64 */ >X+#define R_IA64_PLTOFF22 0x3a /* @pltoff(sym + add), add imm22 */ >X+#define R_IA64_PLTOFF64I 0x3b /* @pltoff(sym + add), mov imm64 */ >X+#define R_IA64_PLTOFF64MSB 0x3e /* @pltoff(sym + add), data8 MSB */ >X+#define R_IA64_PLTOFF64LSB 0x3f /* @pltoff(sym + add), data8 LSB */ >X+#define R_IA64_FPTR64I 0x43 /* @fptr(sym + add), mov imm64 */ >X+#define R_IA64_FPTR32MSB 0x44 /* @fptr(sym + add), data4 MSB */ >X+#define R_IA64_FPTR32LSB 0x45 /* @fptr(sym + add), data4 LSB */ >X+#define R_IA64_FPTR64MSB 0x46 /* @fptr(sym + add), data8 MSB */ >X+#define R_IA64_FPTR64LSB 0x47 /* @fptr(sym + add), data8 LSB */ >X+#define R_IA64_PCREL60B 0x48 /* @pcrel(sym + add), brl */ >X+#define R_IA64_PCREL21B 0x49 /* @pcrel(sym + add), ptb, call */ >X+#define R_IA64_PCREL21M 0x4a /* @pcrel(sym + add), chk.s */ >X+#define R_IA64_PCREL21F 0x4b /* @pcrel(sym + add), fchkf */ >X+#define R_IA64_PCREL32MSB 0x4c /* @pcrel(sym + add), data4 MSB */ >X+#define R_IA64_PCREL32LSB 0x4d /* @pcrel(sym + add), data4 LSB */ >X+#define R_IA64_PCREL64MSB 0x4e /* @pcrel(sym + add), data8 MSB */ >X+#define R_IA64_PCREL64LSB 0x4f /* @pcrel(sym + add), data8 LSB */ >X+#define R_IA64_LTOFF_FPTR22 0x52 /* @ltoff(@fptr(s+a)), imm22 */ >X+#define R_IA64_LTOFF_FPTR64I 0x53 /* @ltoff(@fptr(s+a)), imm64 */ >X+#define R_IA64_LTOFF_FPTR32MSB 0x54 /* @ltoff(@fptr(s+a)), data4 MSB */ >X+#define R_IA64_LTOFF_FPTR32LSB 0x55 /* @ltoff(@fptr(s+a)), data4 LSB */ >X+#define R_IA64_LTOFF_FPTR64MSB 0x56 /* @ltoff(@fptr(s+a)), data8 MSB */ >X+#define R_IA64_LTOFF_FPTR64LSB 0x57 /* @ltoff(@fptr(s+a)), data8 LSB */ >X+#define R_IA64_SEGREL32MSB 0x5c /* @segrel(sym + add), data4 MSB */ >X+#define R_IA64_SEGREL32LSB 0x5d /* @segrel(sym + add), data4 LSB */ >X+#define R_IA64_SEGREL64MSB 0x5e /* @segrel(sym + add), data8 MSB */ >X+#define R_IA64_SEGREL64LSB 0x5f /* @segrel(sym + add), data8 LSB */ >X+#define R_IA64_SECREL32MSB 0x64 /* @secrel(sym + add), data4 MSB */ >X+#define R_IA64_SECREL32LSB 0x65 /* @secrel(sym + add), data4 LSB */ >X+#define R_IA64_SECREL64MSB 0x66 /* @secrel(sym + add), data8 MSB */ >X+#define R_IA64_SECREL64LSB 0x67 /* @secrel(sym + add), data8 LSB */ >X+#define R_IA64_REL32MSB 0x6c /* data 4 + REL */ >X+#define R_IA64_REL32LSB 0x6d /* data 4 + REL */ >X+#define R_IA64_REL64MSB 0x6e /* data 8 + REL */ >X+#define R_IA64_REL64LSB 0x6f /* data 8 + REL */ >X+#define R_IA64_LTV32MSB 0x74 /* symbol + addend, data4 MSB */ >X+#define R_IA64_LTV32LSB 0x75 /* symbol + addend, data4 LSB */ >X+#define R_IA64_LTV64MSB 0x76 /* symbol + addend, data8 MSB */ >X+#define R_IA64_LTV64LSB 0x77 /* symbol + addend, data8 LSB */ >X+#define R_IA64_PCREL21BI 0x79 /* @pcrel(sym + add), 21bit inst */ >X+#define R_IA64_PCREL22 0x7a /* @pcrel(sym + add), 22bit inst */ >X+#define R_IA64_PCREL64I 0x7b /* @pcrel(sym + add), 64bit inst */ >X+#define R_IA64_IPLTMSB 0x80 /* dynamic reloc, imported PLT, MSB */ >X+#define R_IA64_IPLTLSB 0x81 /* dynamic reloc, imported PLT, LSB */ >X+#define R_IA64_COPY 0x84 /* copy relocation */ >X+#define R_IA64_SUB 0x85 /* Addend and symbol difference */ >X+#define R_IA64_LTOFF22X 0x86 /* LTOFF22, relaxable. */ >X+#define R_IA64_LDXMOV 0x87 /* Use of LTOFF22X. */ >X+#define R_IA64_TPREL14 0x91 /* @tprel(sym + add), imm14 */ >X+#define R_IA64_TPREL22 0x92 /* @tprel(sym + add), imm22 */ >X+#define R_IA64_TPREL64I 0x93 /* @tprel(sym + add), imm64 */ >X+#define R_IA64_TPREL64MSB 0x96 /* @tprel(sym + add), data8 MSB */ >X+#define R_IA64_TPREL64LSB 0x97 /* @tprel(sym + add), data8 LSB */ >X+#define R_IA64_LTOFF_TPREL22 0x9a /* @ltoff(@tprel(s+a)), imm2 */ >X+#define R_IA64_DTPMOD64MSB 0xa6 /* @dtpmod(sym + add), data8 MSB */ >X+#define R_IA64_DTPMOD64LSB 0xa7 /* @dtpmod(sym + add), data8 LSB */ >X+#define R_IA64_LTOFF_DTPMOD22 0xaa /* @ltoff(@dtpmod(sym + add)), imm22 */ >X+#define R_IA64_DTPREL14 0xb1 /* @dtprel(sym + add), imm14 */ >X+#define R_IA64_DTPREL22 0xb2 /* @dtprel(sym + add), imm22 */ >X+#define R_IA64_DTPREL64I 0xb3 /* @dtprel(sym + add), imm64 */ >X+#define R_IA64_DTPREL32MSB 0xb4 /* @dtprel(sym + add), data4 MSB */ >X+#define R_IA64_DTPREL32LSB 0xb5 /* @dtprel(sym + add), data4 LSB */ >X+#define R_IA64_DTPREL64MSB 0xb6 /* @dtprel(sym + add), data8 MSB */ >X+#define R_IA64_DTPREL64LSB 0xb7 /* @dtprel(sym + add), data8 LSB */ >X+#define R_IA64_LTOFF_DTPREL22 0xba /* @ltoff(@dtprel(s+a)), imm22 */ >X+ >X+/* SH specific declarations */ >X+ >X+/* Processor specific flags for the ELF header e_flags field. */ >X+#define EF_SH_MACH_MASK 0x1f >X+#define EF_SH_UNKNOWN 0x0 >X+#define EF_SH1 0x1 >X+#define EF_SH2 0x2 >X+#define EF_SH3 0x3 >X+#define EF_SH_DSP 0x4 >X+#define EF_SH3_DSP 0x5 >X+#define EF_SH4AL_DSP 0x6 >X+#define EF_SH3E 0x8 >X+#define EF_SH4 0x9 >X+#define EF_SH2E 0xb >X+#define EF_SH4A 0xc >X+#define EF_SH2A 0xd >X+#define EF_SH4_NOFPU 0x10 >X+#define EF_SH4A_NOFPU 0x11 >X+#define EF_SH4_NOMMU_NOFPU 0x12 >X+#define EF_SH2A_NOFPU 0x13 >X+#define EF_SH3_NOMMU 0x14 >X+#define EF_SH2A_SH4_NOFPU 0x15 >X+#define EF_SH2A_SH3_NOFPU 0x16 >X+#define EF_SH2A_SH4 0x17 >X+#define EF_SH2A_SH3E 0x18 >X+ >X+/* SH relocs. */ >X+#define R_SH_NONE 0 >X+#define R_SH_DIR32 1 >X+#define R_SH_REL32 2 >X+#define R_SH_DIR8WPN 3 >X+#define R_SH_IND12W 4 >X+#define R_SH_DIR8WPL 5 >X+#define R_SH_DIR8WPZ 6 >X+#define R_SH_DIR8BP 7 >X+#define R_SH_DIR8W 8 >X+#define R_SH_DIR8L 9 >X+#define R_SH_SWITCH16 25 >X+#define R_SH_SWITCH32 26 >X+#define R_SH_USES 27 >X+#define R_SH_COUNT 28 >X+#define R_SH_ALIGN 29 >X+#define R_SH_CODE 30 >X+#define R_SH_DATA 31 >X+#define R_SH_LABEL 32 >X+#define R_SH_SWITCH8 33 >X+#define R_SH_GNU_VTINHERIT 34 >X+#define R_SH_GNU_VTENTRY 35 >X+#define R_SH_TLS_GD_32 144 >X+#define R_SH_TLS_LD_32 145 >X+#define R_SH_TLS_LDO_32 146 >X+#define R_SH_TLS_IE_32 147 >X+#define R_SH_TLS_LE_32 148 >X+#define R_SH_TLS_DTPMOD32 149 >X+#define R_SH_TLS_DTPOFF32 150 >X+#define R_SH_TLS_TPOFF32 151 >X+#define R_SH_GOT32 160 >X+#define R_SH_PLT32 161 >X+#define R_SH_COPY 162 >X+#define R_SH_GLOB_DAT 163 >X+#define R_SH_JMP_SLOT 164 >X+#define R_SH_RELATIVE 165 >X+#define R_SH_GOTOFF 166 >X+#define R_SH_GOTPC 167 >X+/* Keep this the last entry. */ >X+#define R_SH_NUM 256 >X+ >X+/* S/390 specific definitions. */ >X+ >X+/* Valid values for the e_flags field. */ >X+ >X+#define EF_S390_HIGH_GPRS 0x00000001 /* High GPRs kernel facility needed. */ >X+ >X+/* Additional s390 relocs */ >X+ >X+#define R_390_NONE 0 /* No reloc. */ >X+#define R_390_8 1 /* Direct 8 bit. */ >X+#define R_390_12 2 /* Direct 12 bit. */ >X+#define R_390_16 3 /* Direct 16 bit. */ >X+#define R_390_32 4 /* Direct 32 bit. */ >X+#define R_390_PC32 5 /* PC relative 32 bit. */ >X+#define R_390_GOT12 6 /* 12 bit GOT offset. */ >X+#define R_390_GOT32 7 /* 32 bit GOT offset. */ >X+#define R_390_PLT32 8 /* 32 bit PC relative PLT address. */ >X+#define R_390_COPY 9 /* Copy symbol at runtime. */ >X+#define R_390_GLOB_DAT 10 /* Create GOT entry. */ >X+#define R_390_JMP_SLOT 11 /* Create PLT entry. */ >X+#define R_390_RELATIVE 12 /* Adjust by program base. */ >X+#define R_390_GOTOFF32 13 /* 32 bit offset to GOT. */ >X+#define R_390_GOTPC 14 /* 32 bit PC relative offset to GOT. */ >X+#define R_390_GOT16 15 /* 16 bit GOT offset. */ >X+#define R_390_PC16 16 /* PC relative 16 bit. */ >X+#define R_390_PC16DBL 17 /* PC relative 16 bit shifted by 1. */ >X+#define R_390_PLT16DBL 18 /* 16 bit PC rel. PLT shifted by 1. */ >X+#define R_390_PC32DBL 19 /* PC relative 32 bit shifted by 1. */ >X+#define R_390_PLT32DBL 20 /* 32 bit PC rel. PLT shifted by 1. */ >X+#define R_390_GOTPCDBL 21 /* 32 bit PC rel. GOT shifted by 1. */ >X+#define R_390_64 22 /* Direct 64 bit. */ >X+#define R_390_PC64 23 /* PC relative 64 bit. */ >X+#define R_390_GOT64 24 /* 64 bit GOT offset. */ >X+#define R_390_PLT64 25 /* 64 bit PC relative PLT address. */ >X+#define R_390_GOTENT 26 /* 32 bit PC rel. to GOT entry >> 1. */ >X+#define R_390_GOTOFF16 27 /* 16 bit offset to GOT. */ >X+#define R_390_GOTOFF64 28 /* 64 bit offset to GOT. */ >X+#define R_390_GOTPLT12 29 /* 12 bit offset to jump slot. */ >X+#define R_390_GOTPLT16 30 /* 16 bit offset to jump slot. */ >X+#define R_390_GOTPLT32 31 /* 32 bit offset to jump slot. */ >X+#define R_390_GOTPLT64 32 /* 64 bit offset to jump slot. */ >X+#define R_390_GOTPLTENT 33 /* 32 bit rel. offset to jump slot. */ >X+#define R_390_PLTOFF16 34 /* 16 bit offset from GOT to PLT. */ >X+#define R_390_PLTOFF32 35 /* 32 bit offset from GOT to PLT. */ >X+#define R_390_PLTOFF64 36 /* 16 bit offset from GOT to PLT. */ >X+#define R_390_TLS_LOAD 37 /* Tag for load insn in TLS code. */ >X+#define R_390_TLS_GDCALL 38 /* Tag for function call in general >X+ dynamic TLS code. */ >X+#define R_390_TLS_LDCALL 39 /* Tag for function call in local >X+ dynamic TLS code. */ >X+#define R_390_TLS_GD32 40 /* Direct 32 bit for general dynamic >X+ thread local data. */ >X+#define R_390_TLS_GD64 41 /* Direct 64 bit for general dynamic >X+ thread local data. */ >X+#define R_390_TLS_GOTIE12 42 /* 12 bit GOT offset for static TLS >X+ block offset. */ >X+#define R_390_TLS_GOTIE32 43 /* 32 bit GOT offset for static TLS >X+ block offset. */ >X+#define R_390_TLS_GOTIE64 44 /* 64 bit GOT offset for static TLS >X+ block offset. */ >X+#define R_390_TLS_LDM32 45 /* Direct 32 bit for local dynamic >X+ thread local data in LE code. */ >X+#define R_390_TLS_LDM64 46 /* Direct 64 bit for local dynamic >X+ thread local data in LE code. */ >X+#define R_390_TLS_IE32 47 /* 32 bit address of GOT entry for >X+ negated static TLS block offset. */ >X+#define R_390_TLS_IE64 48 /* 64 bit address of GOT entry for >X+ negated static TLS block offset. */ >X+#define R_390_TLS_IEENT 49 /* 32 bit rel. offset to GOT entry for >X+ negated static TLS block offset. */ >X+#define R_390_TLS_LE32 50 /* 32 bit negated offset relative to >X+ static TLS block. */ >X+#define R_390_TLS_LE64 51 /* 64 bit negated offset relative to >X+ static TLS block. */ >X+#define R_390_TLS_LDO32 52 /* 32 bit offset relative to TLS >X+ block. */ >X+#define R_390_TLS_LDO64 53 /* 64 bit offset relative to TLS >X+ block. */ >X+#define R_390_TLS_DTPMOD 54 /* ID of module containing symbol. */ >X+#define R_390_TLS_DTPOFF 55 /* Offset in TLS block. */ >X+#define R_390_TLS_TPOFF 56 /* Negated offset in static TLS >X+ block. */ >X+#define R_390_20 57 /* Direct 20 bit. */ >X+#define R_390_GOT20 58 /* 20 bit GOT offset. */ >X+#define R_390_GOTPLT20 59 /* 20 bit offset to jump slot. */ >X+#define R_390_TLS_GOTIE20 60 /* 20 bit GOT offset for static TLS >X+ block offset. */ >X+#define R_390_IRELATIVE 61 /* STT_GNU_IFUNC relocation. */ >X+/* Keep this the last entry. */ >X+#define R_390_NUM 62 >X+ >X+ >X+/* CRIS relocations. */ >X+#define R_CRIS_NONE 0 >X+#define R_CRIS_8 1 >X+#define R_CRIS_16 2 >X+#define R_CRIS_32 3 >X+#define R_CRIS_8_PCREL 4 >X+#define R_CRIS_16_PCREL 5 >X+#define R_CRIS_32_PCREL 6 >X+#define R_CRIS_GNU_VTINHERIT 7 >X+#define R_CRIS_GNU_VTENTRY 8 >X+#define R_CRIS_COPY 9 >X+#define R_CRIS_GLOB_DAT 10 >X+#define R_CRIS_JUMP_SLOT 11 >X+#define R_CRIS_RELATIVE 12 >X+#define R_CRIS_16_GOT 13 >X+#define R_CRIS_32_GOT 14 >X+#define R_CRIS_16_GOTPLT 15 >X+#define R_CRIS_32_GOTPLT 16 >X+#define R_CRIS_32_GOTREL 17 >X+#define R_CRIS_32_PLT_GOTREL 18 >X+#define R_CRIS_32_PLT_PCREL 19 >X+ >X+#define R_CRIS_NUM 20 >X+ >X+ >X+/* AMD x86-64 relocations. */ >X+#define R_X86_64_NONE 0 /* No reloc */ >X+#define R_X86_64_64 1 /* Direct 64 bit */ >X+#define R_X86_64_PC32 2 /* PC relative 32 bit signed */ >X+#define R_X86_64_GOT32 3 /* 32 bit GOT entry */ >X+#define R_X86_64_PLT32 4 /* 32 bit PLT address */ >X+#define R_X86_64_COPY 5 /* Copy symbol at runtime */ >X+#define R_X86_64_GLOB_DAT 6 /* Create GOT entry */ >X+#define R_X86_64_JUMP_SLOT 7 /* Create PLT entry */ >X+#define R_X86_64_RELATIVE 8 /* Adjust by program base */ >X+#define R_X86_64_GOTPCREL 9 /* 32 bit signed PC relative >X+ offset to GOT */ >X+#define R_X86_64_32 10 /* Direct 32 bit zero extended */ >X+#define R_X86_64_32S 11 /* Direct 32 bit sign extended */ >X+#define R_X86_64_16 12 /* Direct 16 bit zero extended */ >X+#define R_X86_64_PC16 13 /* 16 bit sign extended pc relative */ >X+#define R_X86_64_8 14 /* Direct 8 bit sign extended */ >X+#define R_X86_64_PC8 15 /* 8 bit sign extended pc relative */ >X+#define R_X86_64_DTPMOD64 16 /* ID of module containing symbol */ >X+#define R_X86_64_DTPOFF64 17 /* Offset in module's TLS block */ >X+#define R_X86_64_TPOFF64 18 /* Offset in initial TLS block */ >X+#define R_X86_64_TLSGD 19 /* 32 bit signed PC relative offset >X+ to two GOT entries for GD symbol */ >X+#define R_X86_64_TLSLD 20 /* 32 bit signed PC relative offset >X+ to two GOT entries for LD symbol */ >X+#define R_X86_64_DTPOFF32 21 /* Offset in TLS block */ >X+#define R_X86_64_GOTTPOFF 22 /* 32 bit signed PC relative offset >X+ to GOT entry for IE symbol */ >X+#define R_X86_64_TPOFF32 23 /* Offset in initial TLS block */ >X+#define R_X86_64_PC64 24 /* PC relative 64 bit */ >X+#define R_X86_64_GOTOFF64 25 /* 64 bit offset to GOT */ >X+#define R_X86_64_GOTPC32 26 /* 32 bit signed pc relative >X+ offset to GOT */ >X+#define R_X86_64_GOT64 27 /* 64-bit GOT entry offset */ >X+#define R_X86_64_GOTPCREL64 28 /* 64-bit PC relative offset >X+ to GOT entry */ >X+#define R_X86_64_GOTPC64 29 /* 64-bit PC relative offset to GOT */ >X+#define R_X86_64_GOTPLT64 30 /* like GOT64, says PLT entry needed */ >X+#define R_X86_64_PLTOFF64 31 /* 64-bit GOT relative offset >X+ to PLT entry */ >X+#define R_X86_64_SIZE32 32 /* Size of symbol plus 32-bit addend */ >X+#define R_X86_64_SIZE64 33 /* Size of symbol plus 64-bit addend */ >X+#define R_X86_64_GOTPC32_TLSDESC 34 /* GOT offset for TLS descriptor. */ >X+#define R_X86_64_TLSDESC_CALL 35 /* Marker for call through TLS >X+ descriptor. */ >X+#define R_X86_64_TLSDESC 36 /* TLS descriptor. */ >X+#define R_X86_64_IRELATIVE 37 /* Adjust indirectly by program base */ >X+#define R_X86_64_RELATIVE64 38 /* 64-bit adjust by program base */ >X+ >X+#define R_X86_64_NUM 39 >X+ >X+ >X+/* AM33 relocations. */ >X+#define R_MN10300_NONE 0 /* No reloc. */ >X+#define R_MN10300_32 1 /* Direct 32 bit. */ >X+#define R_MN10300_16 2 /* Direct 16 bit. */ >X+#define R_MN10300_8 3 /* Direct 8 bit. */ >X+#define R_MN10300_PCREL32 4 /* PC-relative 32-bit. */ >X+#define R_MN10300_PCREL16 5 /* PC-relative 16-bit signed. */ >X+#define R_MN10300_PCREL8 6 /* PC-relative 8-bit signed. */ >X+#define R_MN10300_GNU_VTINHERIT 7 /* Ancient C++ vtable garbage... */ >X+#define R_MN10300_GNU_VTENTRY 8 /* ... collection annotation. */ >X+#define R_MN10300_24 9 /* Direct 24 bit. */ >X+#define R_MN10300_GOTPC32 10 /* 32-bit PCrel offset to GOT. */ >X+#define R_MN10300_GOTPC16 11 /* 16-bit PCrel offset to GOT. */ >X+#define R_MN10300_GOTOFF32 12 /* 32-bit offset from GOT. */ >X+#define R_MN10300_GOTOFF24 13 /* 24-bit offset from GOT. */ >X+#define R_MN10300_GOTOFF16 14 /* 16-bit offset from GOT. */ >X+#define R_MN10300_PLT32 15 /* 32-bit PCrel to PLT entry. */ >X+#define R_MN10300_PLT16 16 /* 16-bit PCrel to PLT entry. */ >X+#define R_MN10300_GOT32 17 /* 32-bit offset to GOT entry. */ >X+#define R_MN10300_GOT24 18 /* 24-bit offset to GOT entry. */ >X+#define R_MN10300_GOT16 19 /* 16-bit offset to GOT entry. */ >X+#define R_MN10300_COPY 20 /* Copy symbol at runtime. */ >X+#define R_MN10300_GLOB_DAT 21 /* Create GOT entry. */ >X+#define R_MN10300_JMP_SLOT 22 /* Create PLT entry. */ >X+#define R_MN10300_RELATIVE 23 /* Adjust by program base. */ >X+#define R_MN10300_TLS_GD 24 /* 32-bit offset for global dynamic. */ >X+#define R_MN10300_TLS_LD 25 /* 32-bit offset for local dynamic. */ >X+#define R_MN10300_TLS_LDO 26 /* Module-relative offset. */ >X+#define R_MN10300_TLS_GOTIE 27 /* GOT offset for static TLS block >X+ offset. */ >X+#define R_MN10300_TLS_IE 28 /* GOT address for static TLS block >X+ offset. */ >X+#define R_MN10300_TLS_LE 29 /* Offset relative to static TLS >X+ block. */ >X+#define R_MN10300_TLS_DTPMOD 30 /* ID of module containing symbol. */ >X+#define R_MN10300_TLS_DTPOFF 31 /* Offset in module TLS block. */ >X+#define R_MN10300_TLS_TPOFF 32 /* Offset in static TLS block. */ >X+#define R_MN10300_SYM_DIFF 33 /* Adjustment for next reloc as needed >X+ by linker relaxation. */ >X+#define R_MN10300_ALIGN 34 /* Alignment requirement for linker >X+ relaxation. */ >X+#define R_MN10300_NUM 35 >X+ >X+ >X+/* M32R relocs. */ >X+#define R_M32R_NONE 0 /* No reloc. */ >X+#define R_M32R_16 1 /* Direct 16 bit. */ >X+#define R_M32R_32 2 /* Direct 32 bit. */ >X+#define R_M32R_24 3 /* Direct 24 bit. */ >X+#define R_M32R_10_PCREL 4 /* PC relative 10 bit shifted. */ >X+#define R_M32R_18_PCREL 5 /* PC relative 18 bit shifted. */ >X+#define R_M32R_26_PCREL 6 /* PC relative 26 bit shifted. */ >X+#define R_M32R_HI16_ULO 7 /* High 16 bit with unsigned low. */ >X+#define R_M32R_HI16_SLO 8 /* High 16 bit with signed low. */ >X+#define R_M32R_LO16 9 /* Low 16 bit. */ >X+#define R_M32R_SDA16 10 /* 16 bit offset in SDA. */ >X+#define R_M32R_GNU_VTINHERIT 11 >X+#define R_M32R_GNU_VTENTRY 12 >X+/* M32R relocs use SHT_RELA. */ >X+#define R_M32R_16_RELA 33 /* Direct 16 bit. */ >X+#define R_M32R_32_RELA 34 /* Direct 32 bit. */ >X+#define R_M32R_24_RELA 35 /* Direct 24 bit. */ >X+#define R_M32R_10_PCREL_RELA 36 /* PC relative 10 bit shifted. */ >X+#define R_M32R_18_PCREL_RELA 37 /* PC relative 18 bit shifted. */ >X+#define R_M32R_26_PCREL_RELA 38 /* PC relative 26 bit shifted. */ >X+#define R_M32R_HI16_ULO_RELA 39 /* High 16 bit with unsigned low */ >X+#define R_M32R_HI16_SLO_RELA 40 /* High 16 bit with signed low */ >X+#define R_M32R_LO16_RELA 41 /* Low 16 bit */ >X+#define R_M32R_SDA16_RELA 42 /* 16 bit offset in SDA */ >X+#define R_M32R_RELA_GNU_VTINHERIT 43 >X+#define R_M32R_RELA_GNU_VTENTRY 44 >X+#define R_M32R_REL32 45 /* PC relative 32 bit. */ >X+ >X+#define R_M32R_GOT24 48 /* 24 bit GOT entry */ >X+#define R_M32R_26_PLTREL 49 /* 26 bit PC relative to PLT shifted */ >X+#define R_M32R_COPY 50 /* Copy symbol at runtime */ >X+#define R_M32R_GLOB_DAT 51 /* Create GOT entry */ >X+#define R_M32R_JMP_SLOT 52 /* Create PLT entry */ >X+#define R_M32R_RELATIVE 53 /* Adjust by program base */ >X+#define R_M32R_GOTOFF 54 /* 24 bit offset to GOT */ >X+#define R_M32R_GOTPC24 55 /* 24 bit PC relative offset to GOT */ >X+#define R_M32R_GOT16_HI_ULO 56 /* High 16 bit GOT entry with unsigned >X+ low */ >X+#define R_M32R_GOT16_HI_SLO 57 /* High 16 bit GOT entry with signed >X+ low */ >X+#define R_M32R_GOT16_LO 58 /* Low 16 bit GOT entry */ >X+#define R_M32R_GOTPC_HI_ULO 59 /* High 16 bit PC relative offset to >X+ GOT with unsigned low */ >X+#define R_M32R_GOTPC_HI_SLO 60 /* High 16 bit PC relative offset to >X+ GOT with signed low */ >X+#define R_M32R_GOTPC_LO 61 /* Low 16 bit PC relative offset to >X+ GOT */ >X+#define R_M32R_GOTOFF_HI_ULO 62 /* High 16 bit offset to GOT >X+ with unsigned low */ >X+#define R_M32R_GOTOFF_HI_SLO 63 /* High 16 bit offset to GOT >X+ with signed low */ >X+#define R_M32R_GOTOFF_LO 64 /* Low 16 bit offset to GOT */ >X+#define R_M32R_NUM 256 /* Keep this the last entry. */ >X+ >X+/* MicroBlaze relocations */ >X+#define R_MICROBLAZE_NONE 0 /* No reloc. */ >X+#define R_MICROBLAZE_32 1 /* Direct 32 bit. */ >X+#define R_MICROBLAZE_32_PCREL 2 /* PC relative 32 bit. */ >X+#define R_MICROBLAZE_64_PCREL 3 /* PC relative 64 bit. */ >X+#define R_MICROBLAZE_32_PCREL_LO 4 /* Low 16 bits of PCREL32. */ >X+#define R_MICROBLAZE_64 5 /* Direct 64 bit. */ >X+#define R_MICROBLAZE_32_LO 6 /* Low 16 bit. */ >X+#define R_MICROBLAZE_SRO32 7 /* Read-only small data area. */ >X+#define R_MICROBLAZE_SRW32 8 /* Read-write small data area. */ >X+#define R_MICROBLAZE_64_NONE 9 /* No reloc. */ >X+#define R_MICROBLAZE_32_SYM_OP_SYM 10 /* Symbol Op Symbol relocation. */ >X+#define R_MICROBLAZE_GNU_VTINHERIT 11 /* GNU C++ vtable hierarchy. */ >X+#define R_MICROBLAZE_GNU_VTENTRY 12 /* GNU C++ vtable member usage. */ >X+#define R_MICROBLAZE_GOTPC_64 13 /* PC-relative GOT offset. */ >X+#define R_MICROBLAZE_GOT_64 14 /* GOT entry offset. */ >X+#define R_MICROBLAZE_PLT_64 15 /* PLT offset (PC-relative). */ >X+#define R_MICROBLAZE_REL 16 /* Adjust by program base. */ >X+#define R_MICROBLAZE_JUMP_SLOT 17 /* Create PLT entry. */ >X+#define R_MICROBLAZE_GLOB_DAT 18 /* Create GOT entry. */ >X+#define R_MICROBLAZE_GOTOFF_64 19 /* 64 bit offset to GOT. */ >X+#define R_MICROBLAZE_GOTOFF_32 20 /* 32 bit offset to GOT. */ >X+#define R_MICROBLAZE_COPY 21 /* Runtime copy. */ >X+#define R_MICROBLAZE_TLS 22 /* TLS Reloc. */ >X+#define R_MICROBLAZE_TLSGD 23 /* TLS General Dynamic. */ >X+#define R_MICROBLAZE_TLSLD 24 /* TLS Local Dynamic. */ >X+#define R_MICROBLAZE_TLSDTPMOD32 25 /* TLS Module ID. */ >X+#define R_MICROBLAZE_TLSDTPREL32 26 /* TLS Offset Within TLS Block. */ >X+#define R_MICROBLAZE_TLSDTPREL64 27 /* TLS Offset Within TLS Block. */ >X+#define R_MICROBLAZE_TLSGOTTPREL32 28 /* TLS Offset From Thread Pointer. */ >X+#define R_MICROBLAZE_TLSTPREL32 29 /* TLS Offset From Thread Pointer. */ >X+ >X+/* TILEPro relocations. */ >X+#define R_TILEPRO_NONE 0 /* No reloc */ >X+#define R_TILEPRO_32 1 /* Direct 32 bit */ >X+#define R_TILEPRO_16 2 /* Direct 16 bit */ >X+#define R_TILEPRO_8 3 /* Direct 8 bit */ >X+#define R_TILEPRO_32_PCREL 4 /* PC relative 32 bit */ >X+#define R_TILEPRO_16_PCREL 5 /* PC relative 16 bit */ >X+#define R_TILEPRO_8_PCREL 6 /* PC relative 8 bit */ >X+#define R_TILEPRO_LO16 7 /* Low 16 bit */ >X+#define R_TILEPRO_HI16 8 /* High 16 bit */ >X+#define R_TILEPRO_HA16 9 /* High 16 bit, adjusted */ >X+#define R_TILEPRO_COPY 10 /* Copy relocation */ >X+#define R_TILEPRO_GLOB_DAT 11 /* Create GOT entry */ >X+#define R_TILEPRO_JMP_SLOT 12 /* Create PLT entry */ >X+#define R_TILEPRO_RELATIVE 13 /* Adjust by program base */ >X+#define R_TILEPRO_BROFF_X1 14 /* X1 pipe branch offset */ >X+#define R_TILEPRO_JOFFLONG_X1 15 /* X1 pipe jump offset */ >X+#define R_TILEPRO_JOFFLONG_X1_PLT 16 /* X1 pipe jump offset to PLT */ >X+#define R_TILEPRO_IMM8_X0 17 /* X0 pipe 8-bit */ >X+#define R_TILEPRO_IMM8_Y0 18 /* Y0 pipe 8-bit */ >X+#define R_TILEPRO_IMM8_X1 19 /* X1 pipe 8-bit */ >X+#define R_TILEPRO_IMM8_Y1 20 /* Y1 pipe 8-bit */ >X+#define R_TILEPRO_MT_IMM15_X1 21 /* X1 pipe mtspr */ >X+#define R_TILEPRO_MF_IMM15_X1 22 /* X1 pipe mfspr */ >X+#define R_TILEPRO_IMM16_X0 23 /* X0 pipe 16-bit */ >X+#define R_TILEPRO_IMM16_X1 24 /* X1 pipe 16-bit */ >X+#define R_TILEPRO_IMM16_X0_LO 25 /* X0 pipe low 16-bit */ >X+#define R_TILEPRO_IMM16_X1_LO 26 /* X1 pipe low 16-bit */ >X+#define R_TILEPRO_IMM16_X0_HI 27 /* X0 pipe high 16-bit */ >X+#define R_TILEPRO_IMM16_X1_HI 28 /* X1 pipe high 16-bit */ >X+#define R_TILEPRO_IMM16_X0_HA 29 /* X0 pipe high 16-bit, adjusted */ >X+#define R_TILEPRO_IMM16_X1_HA 30 /* X1 pipe high 16-bit, adjusted */ >X+#define R_TILEPRO_IMM16_X0_PCREL 31 /* X0 pipe PC relative 16 bit */ >X+#define R_TILEPRO_IMM16_X1_PCREL 32 /* X1 pipe PC relative 16 bit */ >X+#define R_TILEPRO_IMM16_X0_LO_PCREL 33 /* X0 pipe PC relative low 16 bit */ >X+#define R_TILEPRO_IMM16_X1_LO_PCREL 34 /* X1 pipe PC relative low 16 bit */ >X+#define R_TILEPRO_IMM16_X0_HI_PCREL 35 /* X0 pipe PC relative high 16 bit */ >X+#define R_TILEPRO_IMM16_X1_HI_PCREL 36 /* X1 pipe PC relative high 16 bit */ >X+#define R_TILEPRO_IMM16_X0_HA_PCREL 37 /* X0 pipe PC relative ha() 16 bit */ >X+#define R_TILEPRO_IMM16_X1_HA_PCREL 38 /* X1 pipe PC relative ha() 16 bit */ >X+#define R_TILEPRO_IMM16_X0_GOT 39 /* X0 pipe 16-bit GOT offset */ >X+#define R_TILEPRO_IMM16_X1_GOT 40 /* X1 pipe 16-bit GOT offset */ >X+#define R_TILEPRO_IMM16_X0_GOT_LO 41 /* X0 pipe low 16-bit GOT offset */ >X+#define R_TILEPRO_IMM16_X1_GOT_LO 42 /* X1 pipe low 16-bit GOT offset */ >X+#define R_TILEPRO_IMM16_X0_GOT_HI 43 /* X0 pipe high 16-bit GOT offset */ >X+#define R_TILEPRO_IMM16_X1_GOT_HI 44 /* X1 pipe high 16-bit GOT offset */ >X+#define R_TILEPRO_IMM16_X0_GOT_HA 45 /* X0 pipe ha() 16-bit GOT offset */ >X+#define R_TILEPRO_IMM16_X1_GOT_HA 46 /* X1 pipe ha() 16-bit GOT offset */ >X+#define R_TILEPRO_MMSTART_X0 47 /* X0 pipe mm "start" */ >X+#define R_TILEPRO_MMEND_X0 48 /* X0 pipe mm "end" */ >X+#define R_TILEPRO_MMSTART_X1 49 /* X1 pipe mm "start" */ >X+#define R_TILEPRO_MMEND_X1 50 /* X1 pipe mm "end" */ >X+#define R_TILEPRO_SHAMT_X0 51 /* X0 pipe shift amount */ >X+#define R_TILEPRO_SHAMT_X1 52 /* X1 pipe shift amount */ >X+#define R_TILEPRO_SHAMT_Y0 53 /* Y0 pipe shift amount */ >X+#define R_TILEPRO_SHAMT_Y1 54 /* Y1 pipe shift amount */ >X+#define R_TILEPRO_DEST_IMM8_X1 55 /* X1 pipe destination 8-bit */ >X+/* Relocs 56-59 are currently not defined. */ >X+#define R_TILEPRO_TLS_GD_CALL 60 /* "jal" for TLS GD */ >X+#define R_TILEPRO_IMM8_X0_TLS_GD_ADD 61 /* X0 pipe "addi" for TLS GD */ >X+#define R_TILEPRO_IMM8_X1_TLS_GD_ADD 62 /* X1 pipe "addi" for TLS GD */ >X+#define R_TILEPRO_IMM8_Y0_TLS_GD_ADD 63 /* Y0 pipe "addi" for TLS GD */ >X+#define R_TILEPRO_IMM8_Y1_TLS_GD_ADD 64 /* Y1 pipe "addi" for TLS GD */ >X+#define R_TILEPRO_TLS_IE_LOAD 65 /* "lw_tls" for TLS IE */ >X+#define R_TILEPRO_IMM16_X0_TLS_GD 66 /* X0 pipe 16-bit TLS GD offset */ >X+#define R_TILEPRO_IMM16_X1_TLS_GD 67 /* X1 pipe 16-bit TLS GD offset */ >X+#define R_TILEPRO_IMM16_X0_TLS_GD_LO 68 /* X0 pipe low 16-bit TLS GD offset */ >X+#define R_TILEPRO_IMM16_X1_TLS_GD_LO 69 /* X1 pipe low 16-bit TLS GD offset */ >X+#define R_TILEPRO_IMM16_X0_TLS_GD_HI 70 /* X0 pipe high 16-bit TLS GD offset */ >X+#define R_TILEPRO_IMM16_X1_TLS_GD_HI 71 /* X1 pipe high 16-bit TLS GD offset */ >X+#define R_TILEPRO_IMM16_X0_TLS_GD_HA 72 /* X0 pipe ha() 16-bit TLS GD offset */ >X+#define R_TILEPRO_IMM16_X1_TLS_GD_HA 73 /* X1 pipe ha() 16-bit TLS GD offset */ >X+#define R_TILEPRO_IMM16_X0_TLS_IE 74 /* X0 pipe 16-bit TLS IE offset */ >X+#define R_TILEPRO_IMM16_X1_TLS_IE 75 /* X1 pipe 16-bit TLS IE offset */ >X+#define R_TILEPRO_IMM16_X0_TLS_IE_LO 76 /* X0 pipe low 16-bit TLS IE offset */ >X+#define R_TILEPRO_IMM16_X1_TLS_IE_LO 77 /* X1 pipe low 16-bit TLS IE offset */ >X+#define R_TILEPRO_IMM16_X0_TLS_IE_HI 78 /* X0 pipe high 16-bit TLS IE offset */ >X+#define R_TILEPRO_IMM16_X1_TLS_IE_HI 79 /* X1 pipe high 16-bit TLS IE offset */ >X+#define R_TILEPRO_IMM16_X0_TLS_IE_HA 80 /* X0 pipe ha() 16-bit TLS IE offset */ >X+#define R_TILEPRO_IMM16_X1_TLS_IE_HA 81 /* X1 pipe ha() 16-bit TLS IE offset */ >X+#define R_TILEPRO_TLS_DTPMOD32 82 /* ID of module containing symbol */ >X+#define R_TILEPRO_TLS_DTPOFF32 83 /* Offset in TLS block */ >X+#define R_TILEPRO_TLS_TPOFF32 84 /* Offset in static TLS block */ >X+#define R_TILEPRO_IMM16_X0_TLS_LE 85 /* X0 pipe 16-bit TLS LE offset */ >X+#define R_TILEPRO_IMM16_X1_TLS_LE 86 /* X1 pipe 16-bit TLS LE offset */ >X+#define R_TILEPRO_IMM16_X0_TLS_LE_LO 87 /* X0 pipe low 16-bit TLS LE offset */ >X+#define R_TILEPRO_IMM16_X1_TLS_LE_LO 88 /* X1 pipe low 16-bit TLS LE offset */ >X+#define R_TILEPRO_IMM16_X0_TLS_LE_HI 89 /* X0 pipe high 16-bit TLS LE offset */ >X+#define R_TILEPRO_IMM16_X1_TLS_LE_HI 90 /* X1 pipe high 16-bit TLS LE offset */ >X+#define R_TILEPRO_IMM16_X0_TLS_LE_HA 91 /* X0 pipe ha() 16-bit TLS LE offset */ >X+#define R_TILEPRO_IMM16_X1_TLS_LE_HA 92 /* X1 pipe ha() 16-bit TLS LE offset */ >X+ >X+#define R_TILEPRO_GNU_VTINHERIT 128 /* GNU C++ vtable hierarchy */ >X+#define R_TILEPRO_GNU_VTENTRY 129 /* GNU C++ vtable member usage */ >X+ >X+#define R_TILEPRO_NUM 130 >X+ >X+ >X+/* TILE-Gx relocations. */ >X+#define R_TILEGX_NONE 0 /* No reloc */ >X+#define R_TILEGX_64 1 /* Direct 64 bit */ >X+#define R_TILEGX_32 2 /* Direct 32 bit */ >X+#define R_TILEGX_16 3 /* Direct 16 bit */ >X+#define R_TILEGX_8 4 /* Direct 8 bit */ >X+#define R_TILEGX_64_PCREL 5 /* PC relative 64 bit */ >X+#define R_TILEGX_32_PCREL 6 /* PC relative 32 bit */ >X+#define R_TILEGX_16_PCREL 7 /* PC relative 16 bit */ >X+#define R_TILEGX_8_PCREL 8 /* PC relative 8 bit */ >X+#define R_TILEGX_HW0 9 /* hword 0 16-bit */ >X+#define R_TILEGX_HW1 10 /* hword 1 16-bit */ >X+#define R_TILEGX_HW2 11 /* hword 2 16-bit */ >X+#define R_TILEGX_HW3 12 /* hword 3 16-bit */ >X+#define R_TILEGX_HW0_LAST 13 /* last hword 0 16-bit */ >X+#define R_TILEGX_HW1_LAST 14 /* last hword 1 16-bit */ >X+#define R_TILEGX_HW2_LAST 15 /* last hword 2 16-bit */ >X+#define R_TILEGX_COPY 16 /* Copy relocation */ >X+#define R_TILEGX_GLOB_DAT 17 /* Create GOT entry */ >X+#define R_TILEGX_JMP_SLOT 18 /* Create PLT entry */ >X+#define R_TILEGX_RELATIVE 19 /* Adjust by program base */ >X+#define R_TILEGX_BROFF_X1 20 /* X1 pipe branch offset */ >X+#define R_TILEGX_JUMPOFF_X1 21 /* X1 pipe jump offset */ >X+#define R_TILEGX_JUMPOFF_X1_PLT 22 /* X1 pipe jump offset to PLT */ >X+#define R_TILEGX_IMM8_X0 23 /* X0 pipe 8-bit */ >X+#define R_TILEGX_IMM8_Y0 24 /* Y0 pipe 8-bit */ >X+#define R_TILEGX_IMM8_X1 25 /* X1 pipe 8-bit */ >X+#define R_TILEGX_IMM8_Y1 26 /* Y1 pipe 8-bit */ >X+#define R_TILEGX_DEST_IMM8_X1 27 /* X1 pipe destination 8-bit */ >X+#define R_TILEGX_MT_IMM14_X1 28 /* X1 pipe mtspr */ >X+#define R_TILEGX_MF_IMM14_X1 29 /* X1 pipe mfspr */ >X+#define R_TILEGX_MMSTART_X0 30 /* X0 pipe mm "start" */ >X+#define R_TILEGX_MMEND_X0 31 /* X0 pipe mm "end" */ >X+#define R_TILEGX_SHAMT_X0 32 /* X0 pipe shift amount */ >X+#define R_TILEGX_SHAMT_X1 33 /* X1 pipe shift amount */ >X+#define R_TILEGX_SHAMT_Y0 34 /* Y0 pipe shift amount */ >X+#define R_TILEGX_SHAMT_Y1 35 /* Y1 pipe shift amount */ >X+#define R_TILEGX_IMM16_X0_HW0 36 /* X0 pipe hword 0 */ >X+#define R_TILEGX_IMM16_X1_HW0 37 /* X1 pipe hword 0 */ >X+#define R_TILEGX_IMM16_X0_HW1 38 /* X0 pipe hword 1 */ >X+#define R_TILEGX_IMM16_X1_HW1 39 /* X1 pipe hword 1 */ >X+#define R_TILEGX_IMM16_X0_HW2 40 /* X0 pipe hword 2 */ >X+#define R_TILEGX_IMM16_X1_HW2 41 /* X1 pipe hword 2 */ >X+#define R_TILEGX_IMM16_X0_HW3 42 /* X0 pipe hword 3 */ >X+#define R_TILEGX_IMM16_X1_HW3 43 /* X1 pipe hword 3 */ >X+#define R_TILEGX_IMM16_X0_HW0_LAST 44 /* X0 pipe last hword 0 */ >X+#define R_TILEGX_IMM16_X1_HW0_LAST 45 /* X1 pipe last hword 0 */ >X+#define R_TILEGX_IMM16_X0_HW1_LAST 46 /* X0 pipe last hword 1 */ >X+#define R_TILEGX_IMM16_X1_HW1_LAST 47 /* X1 pipe last hword 1 */ >X+#define R_TILEGX_IMM16_X0_HW2_LAST 48 /* X0 pipe last hword 2 */ >X+#define R_TILEGX_IMM16_X1_HW2_LAST 49 /* X1 pipe last hword 2 */ >X+#define R_TILEGX_IMM16_X0_HW0_PCREL 50 /* X0 pipe PC relative hword 0 */ >X+#define R_TILEGX_IMM16_X1_HW0_PCREL 51 /* X1 pipe PC relative hword 0 */ >X+#define R_TILEGX_IMM16_X0_HW1_PCREL 52 /* X0 pipe PC relative hword 1 */ >X+#define R_TILEGX_IMM16_X1_HW1_PCREL 53 /* X1 pipe PC relative hword 1 */ >X+#define R_TILEGX_IMM16_X0_HW2_PCREL 54 /* X0 pipe PC relative hword 2 */ >X+#define R_TILEGX_IMM16_X1_HW2_PCREL 55 /* X1 pipe PC relative hword 2 */ >X+#define R_TILEGX_IMM16_X0_HW3_PCREL 56 /* X0 pipe PC relative hword 3 */ >X+#define R_TILEGX_IMM16_X1_HW3_PCREL 57 /* X1 pipe PC relative hword 3 */ >X+#define R_TILEGX_IMM16_X0_HW0_LAST_PCREL 58 /* X0 pipe PC-rel last hword 0 */ >X+#define R_TILEGX_IMM16_X1_HW0_LAST_PCREL 59 /* X1 pipe PC-rel last hword 0 */ >X+#define R_TILEGX_IMM16_X0_HW1_LAST_PCREL 60 /* X0 pipe PC-rel last hword 1 */ >X+#define R_TILEGX_IMM16_X1_HW1_LAST_PCREL 61 /* X1 pipe PC-rel last hword 1 */ >X+#define R_TILEGX_IMM16_X0_HW2_LAST_PCREL 62 /* X0 pipe PC-rel last hword 2 */ >X+#define R_TILEGX_IMM16_X1_HW2_LAST_PCREL 63 /* X1 pipe PC-rel last hword 2 */ >X+#define R_TILEGX_IMM16_X0_HW0_GOT 64 /* X0 pipe hword 0 GOT offset */ >X+#define R_TILEGX_IMM16_X1_HW0_GOT 65 /* X1 pipe hword 0 GOT offset */ >X+#define R_TILEGX_IMM16_X0_HW0_PLT_PCREL 66 /* X0 pipe PC-rel PLT hword 0 */ >X+#define R_TILEGX_IMM16_X1_HW0_PLT_PCREL 67 /* X1 pipe PC-rel PLT hword 0 */ >X+#define R_TILEGX_IMM16_X0_HW1_PLT_PCREL 68 /* X0 pipe PC-rel PLT hword 1 */ >X+#define R_TILEGX_IMM16_X1_HW1_PLT_PCREL 69 /* X1 pipe PC-rel PLT hword 1 */ >X+#define R_TILEGX_IMM16_X0_HW2_PLT_PCREL 70 /* X0 pipe PC-rel PLT hword 2 */ >X+#define R_TILEGX_IMM16_X1_HW2_PLT_PCREL 71 /* X1 pipe PC-rel PLT hword 2 */ >X+#define R_TILEGX_IMM16_X0_HW0_LAST_GOT 72 /* X0 pipe last hword 0 GOT offset */ >X+#define R_TILEGX_IMM16_X1_HW0_LAST_GOT 73 /* X1 pipe last hword 0 GOT offset */ >X+#define R_TILEGX_IMM16_X0_HW1_LAST_GOT 74 /* X0 pipe last hword 1 GOT offset */ >X+#define R_TILEGX_IMM16_X1_HW1_LAST_GOT 75 /* X1 pipe last hword 1 GOT offset */ >X+#define R_TILEGX_IMM16_X0_HW3_PLT_PCREL 76 /* X0 pipe PC-rel PLT hword 3 */ >X+#define R_TILEGX_IMM16_X1_HW3_PLT_PCREL 77 /* X1 pipe PC-rel PLT hword 3 */ >X+#define R_TILEGX_IMM16_X0_HW0_TLS_GD 78 /* X0 pipe hword 0 TLS GD offset */ >X+#define R_TILEGX_IMM16_X1_HW0_TLS_GD 79 /* X1 pipe hword 0 TLS GD offset */ >X+#define R_TILEGX_IMM16_X0_HW0_TLS_LE 80 /* X0 pipe hword 0 TLS LE offset */ >X+#define R_TILEGX_IMM16_X1_HW0_TLS_LE 81 /* X1 pipe hword 0 TLS LE offset */ >X+#define R_TILEGX_IMM16_X0_HW0_LAST_TLS_LE 82 /* X0 pipe last hword 0 LE off */ >X+#define R_TILEGX_IMM16_X1_HW0_LAST_TLS_LE 83 /* X1 pipe last hword 0 LE off */ >X+#define R_TILEGX_IMM16_X0_HW1_LAST_TLS_LE 84 /* X0 pipe last hword 1 LE off */ >X+#define R_TILEGX_IMM16_X1_HW1_LAST_TLS_LE 85 /* X1 pipe last hword 1 LE off */ >X+#define R_TILEGX_IMM16_X0_HW0_LAST_TLS_GD 86 /* X0 pipe last hword 0 GD off */ >X+#define R_TILEGX_IMM16_X1_HW0_LAST_TLS_GD 87 /* X1 pipe last hword 0 GD off */ >X+#define R_TILEGX_IMM16_X0_HW1_LAST_TLS_GD 88 /* X0 pipe last hword 1 GD off */ >X+#define R_TILEGX_IMM16_X1_HW1_LAST_TLS_GD 89 /* X1 pipe last hword 1 GD off */ >X+/* Relocs 90-91 are currently not defined. */ >X+#define R_TILEGX_IMM16_X0_HW0_TLS_IE 92 /* X0 pipe hword 0 TLS IE offset */ >X+#define R_TILEGX_IMM16_X1_HW0_TLS_IE 93 /* X1 pipe hword 0 TLS IE offset */ >X+#define R_TILEGX_IMM16_X0_HW0_LAST_PLT_PCREL 94 /* X0 pipe PC-rel PLT last hword 0 */ >X+#define R_TILEGX_IMM16_X1_HW0_LAST_PLT_PCREL 95 /* X1 pipe PC-rel PLT last hword 0 */ >X+#define R_TILEGX_IMM16_X0_HW1_LAST_PLT_PCREL 96 /* X0 pipe PC-rel PLT last hword 1 */ >X+#define R_TILEGX_IMM16_X1_HW1_LAST_PLT_PCREL 97 /* X1 pipe PC-rel PLT last hword 1 */ >X+#define R_TILEGX_IMM16_X0_HW2_LAST_PLT_PCREL 98 /* X0 pipe PC-rel PLT last hword 2 */ >X+#define R_TILEGX_IMM16_X1_HW2_LAST_PLT_PCREL 99 /* X1 pipe PC-rel PLT last hword 2 */ >X+#define R_TILEGX_IMM16_X0_HW0_LAST_TLS_IE 100 /* X0 pipe last hword 0 IE off */ >X+#define R_TILEGX_IMM16_X1_HW0_LAST_TLS_IE 101 /* X1 pipe last hword 0 IE off */ >X+#define R_TILEGX_IMM16_X0_HW1_LAST_TLS_IE 102 /* X0 pipe last hword 1 IE off */ >X+#define R_TILEGX_IMM16_X1_HW1_LAST_TLS_IE 103 /* X1 pipe last hword 1 IE off */ >X+/* Relocs 104-105 are currently not defined. */ >X+#define R_TILEGX_TLS_DTPMOD64 106 /* 64-bit ID of symbol's module */ >X+#define R_TILEGX_TLS_DTPOFF64 107 /* 64-bit offset in TLS block */ >X+#define R_TILEGX_TLS_TPOFF64 108 /* 64-bit offset in static TLS block */ >X+#define R_TILEGX_TLS_DTPMOD32 109 /* 32-bit ID of symbol's module */ >X+#define R_TILEGX_TLS_DTPOFF32 110 /* 32-bit offset in TLS block */ >X+#define R_TILEGX_TLS_TPOFF32 111 /* 32-bit offset in static TLS block */ >X+#define R_TILEGX_TLS_GD_CALL 112 /* "jal" for TLS GD */ >X+#define R_TILEGX_IMM8_X0_TLS_GD_ADD 113 /* X0 pipe "addi" for TLS GD */ >X+#define R_TILEGX_IMM8_X1_TLS_GD_ADD 114 /* X1 pipe "addi" for TLS GD */ >X+#define R_TILEGX_IMM8_Y0_TLS_GD_ADD 115 /* Y0 pipe "addi" for TLS GD */ >X+#define R_TILEGX_IMM8_Y1_TLS_GD_ADD 116 /* Y1 pipe "addi" for TLS GD */ >X+#define R_TILEGX_TLS_IE_LOAD 117 /* "ld_tls" for TLS IE */ >X+#define R_TILEGX_IMM8_X0_TLS_ADD 118 /* X0 pipe "addi" for TLS GD/IE */ >X+#define R_TILEGX_IMM8_X1_TLS_ADD 119 /* X1 pipe "addi" for TLS GD/IE */ >X+#define R_TILEGX_IMM8_Y0_TLS_ADD 120 /* Y0 pipe "addi" for TLS GD/IE */ >X+#define R_TILEGX_IMM8_Y1_TLS_ADD 121 /* Y1 pipe "addi" for TLS GD/IE */ >X+ >X+#define R_TILEGX_GNU_VTINHERIT 128 /* GNU C++ vtable hierarchy */ >X+#define R_TILEGX_GNU_VTENTRY 129 /* GNU C++ vtable member usage */ >X+ >X+#define R_TILEGX_NUM 130 >X+ >X+ >X+__END_DECLS >X+ >X+#endif /* elf.h */ >1c67fabe67213eca9cf1281b7c023330 >echo x - linux-kernel/files/patch-scripts_package_buildtar >sed 's/^X//' >linux-kernel/files/patch-scripts_package_buildtar << '124a849d7f1943eb7639d5476d5f6219' >X--- scripts/package/buildtar.orig 2015-06-12 22:52:53 UTC >X+++ scripts/package/buildtar >X@@ -57,7 +57,7 @@ mkdir -p -- "${tmpdir}/boot" >X # Try to install modules >X # >X if grep -q '^CONFIG_MODULES=y' "${objtree}/.config"; then >X- make ARCH="${ARCH}" O="${objtree}" KBUILD_SRC= INSTALL_MOD_PATH="${tmpdir}" modules_install >X+ gmake ARCH="${ARCH}" O="${objtree}" KBUILD_SRC= INSTALL_MOD_PATH="${tmpdir}" modules_install >X fi >X >X >124a849d7f1943eb7639d5476d5f6219 >echo x - linux-kernel/files/patch-Documentation_DocBook_media_Makefile >sed 's/^X//' >linux-kernel/files/patch-Documentation_DocBook_media_Makefile << '4b612fee438c6568ea851489a77a6324' >X--- Documentation/DocBook/media/Makefile.orig 2015-06-13 12:19:48 UTC >X+++ Documentation/DocBook/media/Makefile >X@@ -2,7 +2,7 @@ >X # Media build rules - Auto-generates media contents/indexes and *.h xml's >X # >X >X-SHELL=/bin/bash >X+SHELL!=which bash >X >X MEDIA_OBJ_DIR=$(objtree)/Documentation/DocBook/ >X MEDIA_SRC_DIR=$(srctree)/Documentation/DocBook/media >4b612fee438c6568ea851489a77a6324 >echo x - linux-kernel/files/patch-freebsd-build-support_include_bits_auxv.h >sed 's/^X//' >linux-kernel/files/patch-freebsd-build-support_include_bits_auxv.h << '0e33ff6d7298d8ade337b0b6acab6526' >X--- freebsd-build-support/include/bits/auxv.h.orig 2015-06-12 22:04:41 UTC >X+++ freebsd-build-support/include/bits/auxv.h >X@@ -0,0 +1,76 @@ >X+/* Copyright (C) 1995-2013 Free Software Foundation, Inc. >X+ This file is part of the GNU C Library. >X+ >X+ The GNU C Library is free software; you can redistribute it and/or >X+ modify it under the terms of the GNU Lesser General Public >X+ License as published by the Free Software Foundation; either >X+ version 2.1 of the License, or (at your option) any later version. >X+ >X+ The GNU C Library is distributed in the hope that it will be useful, >X+ but WITHOUT ANY WARRANTY; without even the implied warranty of >X+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU >X+ Lesser General Public License for more details. >X+ >X+ You should have received a copy of the GNU Lesser General Public >X+ License along with the GNU C Library; if not, see >X+ <http://www.gnu.org/licenses/>. */ >X+ >X+/* Legal values for a_type (entry type). */ >X+ >X+#define AT_NULL 0 /* End of vector */ >X+#define AT_IGNORE 1 /* Entry should be ignored */ >X+#define AT_EXECFD 2 /* File descriptor of program */ >X+#define AT_PHDR 3 /* Program headers for program */ >X+#define AT_PHENT 4 /* Size of program header entry */ >X+#define AT_PHNUM 5 /* Number of program headers */ >X+#define AT_PAGESZ 6 /* System page size */ >X+#define AT_BASE 7 /* Base address of interpreter */ >X+#define AT_FLAGS 8 /* Flags */ >X+#define AT_ENTRY 9 /* Entry point of program */ >X+#define AT_NOTELF 10 /* Program is not ELF */ >X+#define AT_UID 11 /* Real uid */ >X+#define AT_EUID 12 /* Effective uid */ >X+#define AT_GID 13 /* Real gid */ >X+#define AT_EGID 14 /* Effective gid */ >X+#define AT_CLKTCK 17 /* Frequency of times() */ >X+ >X+/* Some more special a_type values describing the hardware. */ >X+#define AT_PLATFORM 15 /* String identifying platform. */ >X+#define AT_HWCAP 16 /* Machine-dependent hints about >X+ processor capabilities. */ >X+ >X+/* This entry gives some information about the FPU initialization >X+ performed by the kernel. */ >X+#define AT_FPUCW 18 /* Used FPU control word. */ >X+ >X+/* Cache block sizes. */ >X+#define AT_DCACHEBSIZE 19 /* Data cache block size. */ >X+#define AT_ICACHEBSIZE 20 /* Instruction cache block size. */ >X+#define AT_UCACHEBSIZE 21 /* Unified cache block size. */ >X+ >X+/* A special ignored value for PPC, used by the kernel to control the >X+ interpretation of the AUXV. Must be > 16. */ >X+#define AT_IGNOREPPC 22 /* Entry should be ignored. */ >X+ >X+#define AT_SECURE 23 /* Boolean, was exec setuid-like? */ >X+ >X+#define AT_BASE_PLATFORM 24 /* String identifying real platforms.*/ >X+ >X+#define AT_RANDOM 25 /* Address of 16 random bytes. */ >X+ >X+#define AT_HWCAP2 26 /* More machine-dependent hints about >X+ processor capabilities. */ >X+ >X+#define AT_EXECFN 31 /* Filename of executable. */ >X+ >X+/* Pointer to the global system page used for system calls and other >X+ nice things. */ >X+#define AT_SYSINFO 32 >X+#define AT_SYSINFO_EHDR 33 >X+ >X+/* Shapes of the caches. Bits 0-3 contains associativity; bits 4-7 contains >X+ log2 of line size; mask those to get cache size. */ >X+#define AT_L1I_CACHESHAPE 34 >X+#define AT_L1D_CACHESHAPE 35 >X+#define AT_L2_CACHESHAPE 36 >X+#define AT_L3_CACHESHAPE 37 >0e33ff6d7298d8ade337b0b6acab6526 >echo x - linux-kernel/Makefile >sed 's/^X//' >linux-kernel/Makefile << '121bd86212db55def6ca32a085faadcd' >X# Created by: Tobias Kortkamp <t@tobik.me> >X# $FreeBSD$ >X >X# To configure the Linux kernel yourself run >X# >X# make _menuconfig >X# >X# first, afterwards proceed with the normal port installation. This >X# is optional. >X# >X# By default the Linux config file is saved in work/linux-config. You >X# can override it by setting LINUX_KCONFIG. If you need it later copy >X# it somewhere else before running make clean, or it's gone! >X# >X# To use an existing Linux config file pass the absolute path with >X# LINUX_KCONFIG=/path/to/linux/config to the port (on the command line >X# or via /etc/make.conf). Enabling either the XEN or KVM option will >X# merge the KVM/XEN-specific default config with your own. >X# >X# You can run any Makefile targets of Linux by prefixing it with an >X# underscore (_). This setups a build environment for you so has >X# benefits over going to ${WRKSRC} yourself. >X >XPORTNAME= linux-kernel >XPORTVERSION= 4.6.5 >XCATEGORIES= misc >XMASTER_SITES= KERNEL_ORG/linux/kernel/v4.x >XDISTNAME= linux-${DISTVERSION} >X >XMAINTAINER= t@tobik.me >XCOMMENT= Linux kernel >X >XLICENSE= GPLv2 >XLICENSE_FILE= ${WRKSRC}/COPYING >X >XBUILD_DEPENDS= bash:shells/bash \ >X gcp:sysutils/coreutils \ >X gsed:textproc/gsed \ >X gnubc>0:math/gnubc >X >X# USE_GCC adds a run dependency on gcc, which is nonsense for this >X# port so we add a binutils and gcc build dependency ourselves. Using >X# 'gcc>0' to always install gcc even on FreeBSD 9.3, where base's gcc >X# is too old. >XBUILD_DEPENDS+= gcc>0:lang/gcc \ >X binutils>0:devel/binutils >X >XUSES= tar:xz gmake ncurses perl5 shebangfix >X >XSHEBANG_FILES= scripts/check_extable.sh \ >X scripts/coccicheck \ >X scripts/config \ >X scripts/decode_stacktrace.sh \ >X scripts/gfp-translate \ >X scripts/kernel-doc \ >X scripts/mkuboot.sh \ >X scripts/objdiff >X >XONLY_FOR_ARCHS= amd64 >X >X# Override LINUX_KCONFIG to set the Linux configuration file to use >XLINUX_KCONFIG?= ${WRKDIR}/linux-config >X.if !exists(${LINUX_KCONFIG}) >XALL_TARGET= defconfig >X.endif >X >XOPTIONS_DEFINE= KVM XEN >XOPTIONS_DEFAULT= KVM XEN >X >XKVM_DESC= KVM guest kernel support >XXEN_DESC= Xen dom0 and guest kernel support >X >X.include <bsd.port.options.mk> >X >X# Unfortunately options helpers can't be used here. KVM_ALL_TARGET >X# would append 'kvmconfig' to the end of ALL_TARGET but it needs to go >X# before 'bzImage'. >X >X.if ${PORT_OPTIONS:MKVM} >XALL_TARGET+= kvmconfig >X.endif >X >X.if ${PORT_OPTIONS:MXEN} >XALL_TARGET+= xenconfig >X.endif >X >XALL_TARGET+= bzImage modules >XINSTALL_TARGET= install modules_install firmware_install >X >X# Setup build environment >X## For menuconfig, config, etc. >XHOST_EXTRACFLAGS+= -DCURSES_LOC='<ncurses.h>' -DKBUILD_NO_NLS=1 >XHOST_LOADLIBES+= -Wl,-rpath=${LOCALBASE}/lib >XLINUX_INSTALL_PATH= "${STAGEDIR}${PREFIX}/linux-kernel" >X## Pretend to be Linux (for ACPI) >XKCFLAGS+= -D_LINUX -D__linux__ >XHOST_EXTRACFLAGS+= -I${BUILD_WRKSRC}/freebsd-build-support/include >X## Make sure ${LOCALBASE}/bin is in the PATH so Linux will build in >X## Poudriere >XMAKE_ENV+= PATH="${BUILD_WRKSRC}/freebsd-build-support/bin:${LOCALBASE}/bin:${PATH}" \ >X HOST_EXTRACFLAGS="${HOST_EXTRACFLAGS}" \ >X HOST_LOADLIBES="${HOST_LOADLIBES}" \ >X KCFLAGS="${KCFLAGS}" \ >X BASH="${LOCALBASE}/bin/bash" >XMAKE_ARGS+= ARCH="x86" \ >X KCONFIG_CONFIG="${LINUX_KCONFIG}" \ >X INSTALL_PATH="${LINUX_INSTALL_PATH}" \ >X INSTALL_MOD_PATH="${LINUX_INSTALL_PATH}" \ >X V=1 >X >X.include <bsd.port.pre.mk> >X >Xpost-patch: >X# Create empty include files which Linux' build tools require, but >X# are not needed on FreeBSD. Saves us from patching code. >X @${MKDIR} ${WRKSRC}/freebsd-build-support/include >X @${TOUCH} ${WRKSRC}/freebsd-build-support/include/byteswap.h >X @${TOUCH} ${WRKSRC}/freebsd-build-support/include/endian.h >X @${TOUCH} ${WRKSRC}/freebsd-build-support/include/features.h >X# Setup some tools that Linux' build system uses where FreeBSD's >X# versions are not compatible enough with GNU's. >X @${MKDIR} ${WRKSRC}/freebsd-build-support/bin >X @${LN} -s ${LOCALBASE}/bin/gcp ${WRKSRC}/freebsd-build-support/bin/cp >X @${LN} -s ${LOCALBASE}/bin/gsed ${WRKSRC}/freebsd-build-support/bin/sed >X# Some scripts expect the config file in /.config >X @${LN} -sf ${LINUX_KCONFIG} ${WRKSRC}/.config >X >X# Run Makefile targets of Linux with e.g. make _menuconfig. Run make >X# _help to see a list of available targets. Prefix targets with _. >X# Some of Linux' targets are duplicates of the ports tree's and this >X# should hopefully prevent conflicts between them. >X.for target in ${.TARGETS:M_*} >X${target}: patch >X @(cd ${BUILD_WRKSRC} && ${DO_MAKE_BUILD} ${target:S/_//}) >X @${ECHO} "Linux configuration file: ${LINUX_KCONFIG}" >X.endfor >X >Xpre-build: >X @${ECHO} "using ${LINUX_KCONFIG}" >X >Xpre-install: >X @${MKDIR} ${LINUX_INSTALL_PATH} >X >Xpost-install: >X# With the multitude of options available in the Linux kernel >X# maintaining a proper plist is going to be near impossible, so we >X# generate it on the fly here. >X @(cd ${STAGEDIR}${PREFIX} && \ >X ${FIND} -s linux-kernel -type f -o -type l >> ${TMPPLIST}) >X >X.include <bsd.port.post.mk> >121bd86212db55def6ca32a085faadcd >echo x - linux-kernel/distinfo >sed 's/^X//' >linux-kernel/distinfo << '75240dfe2fc2fdaed462fbc3c194f1a5' >XTIMESTAMP = 1469689598 >XSHA256 (linux-4.6.5.tar.xz) = 7e2d53c8a36a159c444be8f452eae898fadc1f1862fe470a36c836c3d1d613c5 >XSIZE (linux-4.6.5.tar.xz) = 89461896 >75240dfe2fc2fdaed462fbc3c194f1a5 >echo x - linux-kernel/pkg-descr >sed 's/^X//' >linux-kernel/pkg-descr << 'bcc46c93d9bbcac03a8c67aa51a335ce' >XThe Linux kernel. >X >XWWW: https://www.kernel.org/ >bcc46c93d9bbcac03a8c67aa51a335ce >exit >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
tobik
:
maintainer-approval+
Actions:
View
Attachments on
bug 211419
:
173064
|
173087
|
173508