Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(380)

Side by Side Diff: include/llvm/Support/ELF.h

Issue 15067009: LLVM: Add ELF Note section to NaCl object files identifying them as such to gold (Closed) Base URL: http://git.chromium.org/native_client/pnacl-llvm.git@master
Patch Set: reviews, and add initialization to llvm-mc Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « include/llvm/MC/MCNaCl.h ('k') | lib/MC/CMakeLists.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « include/llvm/MC/MCNaCl.h ('k') | lib/MC/CMakeLists.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698