| ... | @@ -221,75 +221,138 @@ pub const DT_IA_64_NUM = 1; | ... | @@ -221,75 +221,138 @@ pub const DT_IA_64_NUM = 1; |
| 221 | | 221 | |
| 222 | pub const DT_NIOS2_GP = 0x70000002; | 222 | pub const DT_NIOS2_GP = 0x70000002; |
| 223 | | 223 | |
| | 224 | /// Program header table entry unused |
| 224 | pub const PT_NULL = 0; | 225 | pub const PT_NULL = 0; |
| | 226 | /// Loadable program segment |
| 225 | pub const PT_LOAD = 1; | 227 | pub const PT_LOAD = 1; |
| | 228 | /// Dynamic linking information |
| 226 | pub const PT_DYNAMIC = 2; | 229 | pub const PT_DYNAMIC = 2; |
| | 230 | /// Program interpreter |
| 227 | pub const PT_INTERP = 3; | 231 | pub const PT_INTERP = 3; |
| | 232 | /// Auxiliary information |
| 228 | pub const PT_NOTE = 4; | 233 | pub const PT_NOTE = 4; |
| | 234 | /// Reserved |
| 229 | pub const PT_SHLIB = 5; | 235 | pub const PT_SHLIB = 5; |
| | 236 | /// Entry for header table itself |
| 230 | pub const PT_PHDR = 6; | 237 | pub const PT_PHDR = 6; |
| | 238 | /// Thread-local storage segment |
| 231 | pub const PT_TLS = 7; | 239 | pub const PT_TLS = 7; |
| | 240 | /// Number of defined types |
| 232 | pub const PT_NUM = 8; | 241 | pub const PT_NUM = 8; |
| | 242 | /// Start of OS-specific |
| 233 | pub const PT_LOOS = 0x60000000; | 243 | pub const PT_LOOS = 0x60000000; |
| | 244 | /// GCC .eh_frame_hdr segment |
| 234 | pub const PT_GNU_EH_FRAME = 0x6474e550; | 245 | pub const PT_GNU_EH_FRAME = 0x6474e550; |
| | 246 | /// Indicates stack executability |
| 235 | pub const PT_GNU_STACK = 0x6474e551; | 247 | pub const PT_GNU_STACK = 0x6474e551; |
| | 248 | /// Read-only after relocation |
| 236 | pub const PT_GNU_RELRO = 0x6474e552; | 249 | pub const PT_GNU_RELRO = 0x6474e552; |
| 237 | pub const PT_LOSUNW = 0x6ffffffa; | 250 | pub const PT_LOSUNW = 0x6ffffffa; |
| | 251 | /// Sun specific segment |
| 238 | pub const PT_SUNWBSS = 0x6ffffffa; | 252 | pub const PT_SUNWBSS = 0x6ffffffa; |
| | 253 | /// Stack segment |
| 239 | pub const PT_SUNWSTACK = 0x6ffffffb; | 254 | pub const PT_SUNWSTACK = 0x6ffffffb; |
| 240 | pub const PT_HISUNW = 0x6fffffff; | 255 | pub const PT_HISUNW = 0x6fffffff; |
| | 256 | /// End of OS-specific |
| 241 | pub const PT_HIOS = 0x6fffffff; | 257 | pub const PT_HIOS = 0x6fffffff; |
| | 258 | /// Start of processor-specific |
| 242 | pub const PT_LOPROC = 0x70000000; | 259 | pub const PT_LOPROC = 0x70000000; |
| | 260 | /// End of processor-specific |
| 243 | pub const PT_HIPROC = 0x7fffffff; | 261 | pub const PT_HIPROC = 0x7fffffff; |
| 244 | | 262 | |
| | 263 | /// Section header table entry unused |
| 245 | pub const SHT_NULL = 0; | 264 | pub const SHT_NULL = 0; |
| | 265 | /// Program data |
| 246 | pub const SHT_PROGBITS = 1; | 266 | pub const SHT_PROGBITS = 1; |
| | 267 | /// Symbol table |
| 247 | pub const SHT_SYMTAB = 2; | 268 | pub const SHT_SYMTAB = 2; |
| | 269 | /// String table |
| 248 | pub const SHT_STRTAB = 3; | 270 | pub const SHT_STRTAB = 3; |
| | 271 | /// Relocation entries with addends |
| 249 | pub const SHT_RELA = 4; | 272 | pub const SHT_RELA = 4; |
| | 273 | /// Symbol hash table |
| 250 | pub const SHT_HASH = 5; | 274 | pub const SHT_HASH = 5; |
| | 275 | /// Dynamic linking information |
| 251 | pub const SHT_DYNAMIC = 6; | 276 | pub const SHT_DYNAMIC = 6; |
| | 277 | /// Notes |
| 252 | pub const SHT_NOTE = 7; | 278 | pub const SHT_NOTE = 7; |
| | 279 | /// Program space with no data (bss) |
| 253 | pub const SHT_NOBITS = 8; | 280 | pub const SHT_NOBITS = 8; |
| | 281 | /// Relocation entries, no addends |
| 254 | pub const SHT_REL = 9; | 282 | pub const SHT_REL = 9; |
| | 283 | /// Reserved |
| 255 | pub const SHT_SHLIB = 10; | 284 | pub const SHT_SHLIB = 10; |
| | 285 | /// Dynamic linker symbol table |
| 256 | pub const SHT_DYNSYM = 11; | 286 | pub const SHT_DYNSYM = 11; |
| | 287 | /// Array of constructors |
| 257 | pub const SHT_INIT_ARRAY = 14; | 288 | pub const SHT_INIT_ARRAY = 14; |
| | 289 | /// Array of destructors |
| 258 | pub const SHT_FINI_ARRAY = 15; | 290 | pub const SHT_FINI_ARRAY = 15; |
| | 291 | /// Array of pre-constructors |
| 259 | pub const SHT_PREINIT_ARRAY = 16; | 292 | pub const SHT_PREINIT_ARRAY = 16; |
| | 293 | /// Section group |
| 260 | pub const SHT_GROUP = 17; | 294 | pub const SHT_GROUP = 17; |
| | 295 | /// Extended section indices |
| 261 | pub const SHT_SYMTAB_SHNDX = 18; | 296 | pub const SHT_SYMTAB_SHNDX = 18; |
| | 297 | /// Start of OS-specific |
| 262 | pub const SHT_LOOS = 0x60000000; | 298 | pub const SHT_LOOS = 0x60000000; |
| | 299 | /// End of OS-specific |
| 263 | pub const SHT_HIOS = 0x6fffffff; | 300 | pub const SHT_HIOS = 0x6fffffff; |
| | 301 | /// Start of processor-specific |
| 264 | pub const SHT_LOPROC = 0x70000000; | 302 | pub const SHT_LOPROC = 0x70000000; |
| | 303 | /// End of processor-specific |
| 265 | pub const SHT_HIPROC = 0x7fffffff; | 304 | pub const SHT_HIPROC = 0x7fffffff; |
| | 305 | /// Start of application-specific |
| 266 | pub const SHT_LOUSER = 0x80000000; | 306 | pub const SHT_LOUSER = 0x80000000; |
| | 307 | /// End of application-specific |
| 267 | pub const SHT_HIUSER = 0xffffffff; | 308 | pub const SHT_HIUSER = 0xffffffff; |
| 268 | | 309 | |
| | 310 | /// Local symbol |
| 269 | pub const STB_LOCAL = 0; | 311 | pub const STB_LOCAL = 0; |
| | 312 | /// Global symbol |
| 270 | pub const STB_GLOBAL = 1; | 313 | pub const STB_GLOBAL = 1; |
| | 314 | /// Weak symbol |
| 271 | pub const STB_WEAK = 2; | 315 | pub const STB_WEAK = 2; |
| | 316 | /// Number of defined types |
| 272 | pub const STB_NUM = 3; | 317 | pub const STB_NUM = 3; |
| | 318 | /// Start of OS-specific |
| 273 | pub const STB_LOOS = 10; | 319 | pub const STB_LOOS = 10; |
| | 320 | /// Unique symbol |
| 274 | pub const STB_GNU_UNIQUE = 10; | 321 | pub const STB_GNU_UNIQUE = 10; |
| | 322 | /// End of OS-specific |
| 275 | pub const STB_HIOS = 12; | 323 | pub const STB_HIOS = 12; |
| | 324 | /// Start of processor-specific |
| 276 | pub const STB_LOPROC = 13; | 325 | pub const STB_LOPROC = 13; |
| | 326 | /// End of processor-specific |
| 277 | pub const STB_HIPROC = 15; | 327 | pub const STB_HIPROC = 15; |
| 278 | | 328 | |
| 279 | pub const STB_MIPS_SPLIT_COMMON = 13; | 329 | pub const STB_MIPS_SPLIT_COMMON = 13; |
| 280 | | 330 | |
| | 331 | /// Symbol type is unspecified |
| 281 | pub const STT_NOTYPE = 0; | 332 | pub const STT_NOTYPE = 0; |
| | 333 | /// Symbol is a data object |
| 282 | pub const STT_OBJECT = 1; | 334 | pub const STT_OBJECT = 1; |
| | 335 | /// Symbol is a code object |
| 283 | pub const STT_FUNC = 2; | 336 | pub const STT_FUNC = 2; |
| | 337 | /// Symbol associated with a section |
| 284 | pub const STT_SECTION = 3; | 338 | pub const STT_SECTION = 3; |
| | 339 | /// Symbol's name is file name |
| 285 | pub const STT_FILE = 4; | 340 | pub const STT_FILE = 4; |
| | 341 | /// Symbol is a common data object |
| 286 | pub const STT_COMMON = 5; | 342 | pub const STT_COMMON = 5; |
| | 343 | /// Symbol is thread-local data object |
| 287 | pub const STT_TLS = 6; | 344 | pub const STT_TLS = 6; |
| | 345 | /// Number of defined types |
| 288 | pub const STT_NUM = 7; | 346 | pub const STT_NUM = 7; |
| | 347 | /// Start of OS-specific |
| 289 | pub const STT_LOOS = 10; | 348 | pub const STT_LOOS = 10; |
| | 349 | /// Symbol is indirect code object |
| 290 | pub const STT_GNU_IFUNC = 10; | 350 | pub const STT_GNU_IFUNC = 10; |
| | 351 | /// End of OS-specific |
| 291 | pub const STT_HIOS = 12; | 352 | pub const STT_HIOS = 12; |
| | 353 | /// Start of processor-specific |
| 292 | pub const STT_LOPROC = 13; | 354 | pub const STT_LOPROC = 13; |
| | 355 | /// End of processor-specific |
| 293 | pub const STT_HIPROC = 15; | 356 | pub const STT_HIPROC = 15; |
| 294 | | 357 | |
| 295 | pub const STT_SPARC_REGISTER = 13; | 358 | pub const STT_SPARC_REGISTER = 13; |
| ... | @@ -1630,14 +1693,20 @@ pub const PF_MASKOS = 0x0ff00000; | ... | @@ -1630,14 +1693,20 @@ pub const PF_MASKOS = 0x0ff00000; |
| 1630 | /// Bits for processor-specific semantics. | 1693 | /// Bits for processor-specific semantics. |
| 1631 | pub const PF_MASKPROC = 0xf0000000; | 1694 | pub const PF_MASKPROC = 0xf0000000; |
| 1632 | | 1695 | |
| 1633 | // Special section indexes used in Elf{32,64}_Sym. | 1696 | /// Undefined section |
| 1634 | pub const SHN_UNDEF = 0; | 1697 | pub const SHN_UNDEF = 0; |
| | 1698 | /// Start of reserved indices |
| 1635 | pub const SHN_LORESERVE = 0xff00; | 1699 | pub const SHN_LORESERVE = 0xff00; |
| | 1700 | /// Start of processor-specific |
| 1636 | pub const SHN_LOPROC = 0xff00; | 1701 | pub const SHN_LOPROC = 0xff00; |
| | 1702 | /// End of processor-specific |
| 1637 | pub const SHN_HIPROC = 0xff1f; | 1703 | pub const SHN_HIPROC = 0xff1f; |
| 1638 | pub const SHN_LIVEPATCH = 0xff20; | 1704 | pub const SHN_LIVEPATCH = 0xff20; |
| | 1705 | /// Associated symbol is absolute |
| 1639 | pub const SHN_ABS = 0xfff1; | 1706 | pub const SHN_ABS = 0xfff1; |
| | 1707 | /// Associated symbol is common |
| 1640 | pub const SHN_COMMON = 0xfff2; | 1708 | pub const SHN_COMMON = 0xfff2; |
| | 1709 | /// End of reserved indices |
| 1641 | pub const SHN_HIRESERVE = 0xffff; | 1710 | pub const SHN_HIRESERVE = 0xffff; |
| 1642 | | 1711 | |
| 1643 | /// AMD x86-64 relocations. | 1712 | /// AMD x86-64 relocations. |