OLD | NEW |
---|---|
1 //===-- llvm/Support/ELF.h - ELF constants and data structures --*- C++ -*-===// | 1 //===-- llvm/Support/ELF.h - ELF constants and data structures --*- C++ -*-===// |
2 // | 2 // |
3 // The LLVM Compiler Infrastructure | 3 // The LLVM Compiler Infrastructure |
4 // | 4 // |
5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
7 // | 7 // |
8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
9 // | 9 // |
10 // This header contains common, non-processor-specific data structures and | 10 // This header contains common, non-processor-specific data structures and |
(...skipping 1306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1317 | 1317 |
1318 // Segment flag bits. | 1318 // Segment flag bits. |
1319 enum { | 1319 enum { |
1320 PF_X = 1, // Execute | 1320 PF_X = 1, // Execute |
1321 PF_W = 2, // Write | 1321 PF_W = 2, // Write |
1322 PF_R = 4, // Read | 1322 PF_R = 4, // Read |
1323 PF_MASKOS = 0x0ff00000,// Bits for operating system-specific semantics. | 1323 PF_MASKOS = 0x0ff00000,// Bits for operating system-specific semantics. |
1324 PF_MASKPROC = 0xf0000000 // Bits for processor-specific semantics. | 1324 PF_MASKPROC = 0xf0000000 // Bits for processor-specific semantics. |
1325 }; | 1325 }; |
1326 | 1326 |
1327 // @LOCALMOD-BEGIN | |
1328 // Note segment descriptor types (for object files). | |
1329 enum { | |
1330 NT_VERSION = 1 // Note contains a version string. | |
eliben
2013/05/10 23:43:22
Is this upstreamable?
| |
1331 }; | |
1332 // @LOCALMOD-END | |
1333 | |
1327 // Dynamic table entry for ELF32. | 1334 // Dynamic table entry for ELF32. |
1328 struct Elf32_Dyn | 1335 struct Elf32_Dyn |
1329 { | 1336 { |
1330 Elf32_Sword d_tag; // Type of dynamic table entry. | 1337 Elf32_Sword d_tag; // Type of dynamic table entry. |
1331 union | 1338 union |
1332 { | 1339 { |
1333 Elf32_Word d_val; // Integer value of entry. | 1340 Elf32_Word d_val; // Integer value of entry. |
1334 Elf32_Addr d_ptr; // Pointer value of entry. | 1341 Elf32_Addr d_ptr; // Pointer value of entry. |
1335 } d_un; | 1342 } d_un; |
1336 }; | 1343 }; |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1455 enum { | 1462 enum { |
1456 VER_NEED_NONE = 0, | 1463 VER_NEED_NONE = 0, |
1457 VER_NEED_CURRENT = 1 | 1464 VER_NEED_CURRENT = 1 |
1458 }; | 1465 }; |
1459 | 1466 |
1460 } // end namespace ELF | 1467 } // end namespace ELF |
1461 | 1468 |
1462 } // end namespace llvm | 1469 } // end namespace llvm |
1463 | 1470 |
1464 #endif | 1471 #endif |
OLD | NEW |