| ... | @@ -221,6 +221,58 @@ pub const DT_IA_64_NUM = 1; | ... | @@ -221,6 +221,58 @@ 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 | pub const DF_ORIGIN = 0x00000001; |
| | 225 | pub const DF_SYMBOLIC = 0x00000002; |
| | 226 | pub const DF_TEXTREL = 0x00000004; |
| | 227 | pub const DF_BIND_NOW = 0x00000008; |
| | 228 | pub const DF_STATIC_TLS = 0x00000010; |
| | 229 | |
| | 230 | pub const DF_1_NOW = 0x00000001; |
| | 231 | pub const DF_1_GLOBAL = 0x00000002; |
| | 232 | pub const DF_1_GROUP = 0x00000004; |
| | 233 | pub const DF_1_NODELETE = 0x00000008; |
| | 234 | pub const DF_1_LOADFLTR = 0x00000010; |
| | 235 | pub const DF_1_INITFIRST = 0x00000020; |
| | 236 | pub const DF_1_NOOPEN = 0x00000040; |
| | 237 | pub const DF_1_ORIGIN = 0x00000080; |
| | 238 | pub const DF_1_DIRECT = 0x00000100; |
| | 239 | pub const DF_1_TRANS = 0x00000200; |
| | 240 | pub const DF_1_INTERPOSE = 0x00000400; |
| | 241 | pub const DF_1_NODEFLIB = 0x00000800; |
| | 242 | pub const DF_1_NODUMP = 0x00001000; |
| | 243 | pub const DF_1_CONFALT = 0x00002000; |
| | 244 | pub const DF_1_ENDFILTEE = 0x00004000; |
| | 245 | pub const DF_1_DISPRELDNE = 0x00008000; |
| | 246 | pub const DF_1_DISPRELPND = 0x00010000; |
| | 247 | pub const DF_1_NODIRECT = 0x00020000; |
| | 248 | pub const DF_1_IGNMULDEF = 0x00040000; |
| | 249 | pub const DF_1_NOKSYMS = 0x00080000; |
| | 250 | pub const DF_1_NOHDR = 0x00100000; |
| | 251 | pub const DF_1_EDITED = 0x00200000; |
| | 252 | pub const DF_1_NORELOC = 0x00400000; |
| | 253 | pub const DF_1_SYMINTPOSE = 0x00800000; |
| | 254 | pub const DF_1_GLOBAUDIT = 0x01000000; |
| | 255 | pub const DF_1_SINGLETON = 0x02000000; |
| | 256 | pub const DF_1_STUB = 0x04000000; |
| | 257 | pub const DF_1_PIE = 0x08000000; |
| | 258 | |
| | 259 | pub const VERSYM_HIDDEN = 0x8000; |
| | 260 | pub const VERSYM_VERSION = 0x7fff; |
| | 261 | |
| | 262 | /// Symbol is local |
| | 263 | pub const VER_NDX_LOCAL = 0; |
| | 264 | /// Symbol is global |
| | 265 | pub const VER_NDX_GLOBAL = 1; |
| | 266 | /// Beginning of reserved entries |
| | 267 | pub const VER_NDX_LORESERVE = 0xff00; |
| | 268 | /// Symbol is to be eliminated |
| | 269 | pub const VER_NDX_ELIMINATE = 0xff01; |
| | 270 | |
| | 271 | /// Version definition of the file itself |
| | 272 | pub const VER_FLG_BASE = 1; |
| | 273 | /// Weak version identifier |
| | 274 | pub const VER_FLG_WEAK = 2; |
| | 275 | |
| 224 | /// Program header table entry unused | 276 | /// Program header table entry unused |
| 225 | pub const PT_NULL = 0; | 277 | pub const PT_NULL = 0; |
| 226 | /// Loadable program segment | 278 | /// Loadable program segment |
| ... | @@ -298,6 +350,14 @@ pub const SHT_SYMTAB_SHNDX = 18; | ... | @@ -298,6 +350,14 @@ pub const SHT_SYMTAB_SHNDX = 18; |
| 298 | pub const SHT_LOOS = 0x60000000; | 350 | pub const SHT_LOOS = 0x60000000; |
| 299 | /// LLVM address-significance table | 351 | /// LLVM address-significance table |
| 300 | pub const SHT_LLVM_ADDRSIG = 0x6fff4c03; | 352 | pub const SHT_LLVM_ADDRSIG = 0x6fff4c03; |
| | 353 | /// GNU hash table |
| | 354 | pub const SHT_GNU_HASH = 0x6ffffff6; |
| | 355 | /// GNU version definition table |
| | 356 | pub const SHT_GNU_VERDEF = 0x6ffffffd; |
| | 357 | /// GNU needed versions table |
| | 358 | pub const SHT_GNU_VERNEED = 0x6ffffffe; |
| | 359 | /// GNU symbol version table |
| | 360 | pub const SHT_GNU_VERSYM = 0x6fffffff; |
| 301 | /// End of OS-specific | 361 | /// End of OS-specific |
| 302 | pub const SHT_HIOS = 0x6fffffff; | 362 | pub const SHT_HIOS = 0x6fffffff; |
| 303 | /// Start of processor-specific | 363 | /// Start of processor-specific |
| ... | @@ -369,9 +429,6 @@ pub const STT_HP_STUB = (STT_LOOS + 0x2); | ... | @@ -369,9 +429,6 @@ pub const STT_HP_STUB = (STT_LOOS + 0x2); |
| 369 | pub const STT_ARM_TFUNC = STT_LOPROC; | 429 | pub const STT_ARM_TFUNC = STT_LOPROC; |
| 370 | pub const STT_ARM_16BIT = STT_HIPROC; | 430 | pub const STT_ARM_16BIT = STT_HIPROC; |
| 371 | | 431 | |
| 372 | pub const VER_FLG_BASE = 0x1; | | |
| 373 | pub const VER_FLG_WEAK = 0x2; | | |
| 374 | | | |
| 375 | pub const MAGIC = "\x7fELF"; | 432 | pub const MAGIC = "\x7fELF"; |
| 376 | | 433 | |
| 377 | /// File types | 434 | /// File types |