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