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

Unified Diff: tools/elf.py

Issue 4181005: Fixes some bugs with memory setup and halt-sled allocation and... (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: '' Created 10 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/command_tester.py ('k') | tools/elf_patcher.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/elf.py
===================================================================
--- tools/elf.py (revision 3633)
+++ tools/elf.py (working copy)
@@ -1,5 +1,10 @@
#!/usr/bin/python
+# Copyright 2010 The Native Client Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can
+# be found in the LICENSE file.
+
+
"""
This module contains utilities and constants needed to parse ELF headers.
"""
@@ -58,6 +63,9 @@
ehdr_member_type = dict(ehdr_member_and_type)
+def MemberPositionMap(member_and_type):
+ return dict((m,i) for i,(m,t) in enumerate(member_and_type))
+
elf32_phdr_member_and_type = [
('type', 'Word'),
('offset', 'Off'),
« no previous file with comments | « tools/command_tester.py ('k') | tools/elf_patcher.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698