|
Subzero: Add basic ELFObjectWriter (text section, symtab, strtab, headers).
Able to write out the ELF file header w/ a text section,
a symbol table, and string table. Write text buffer
directly to file after translating each CFG.
This means that the header is written out early w/ fake
data and then we seek back and write the real header
at the very end.
Does not yet handle relocations, data, rodata, constant
pools, bss, or -ffunction-sections, more than 64K sections
or more than 2^24 symbols.
Numbers w/ current NOASSERT=1 build on 176.gcc:
w/out -elf-writer:
0.233771 (21.1%): [ 1287] emit
28MB .s file
w/ -elf-writer:
0.051056 ( 5.6%): [ 1287] emit
2.4MB .o file
BUG=none
R=stichnot@chromium.org
Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=08c3bcd66dc0101720da78c1d5f49230f4521c75
Total comments: 1
Total comments: 46
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1601 lines, -227 lines) |
Patch |
|
M |
Makefile.standalone
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+29 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/IceCfg.cpp
|
View
|
1
2
3
4
5
6
|
2 chunks |
+15 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/IceClFlags.h
|
View
|
1
2
3
4
5
|
1 chunk |
+7 lines, -6 lines |
0 comments
|
Download
|
|
M |
src/IceDefs.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/IceELFObjectWriter.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+125 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/IceELFObjectWriter.cpp
|
View
|
1
2
3
4
5
6
|
1 chunk |
+347 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/IceELFSection.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+324 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/IceELFSection.cpp
|
View
|
1
2
3
4
5
6
|
1 chunk |
+159 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/IceELFStreamer.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+84 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/IceGlobalContext.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
4 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/IceGlobalContext.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+6 lines, -3 lines |
0 comments
|
Download
|
|
D |
src/IceMemoryRegion.h
|
View
|
1
|
1 chunk |
+0 lines, -90 lines |
0 comments
|
Download
|
|
D |
src/IceMemoryRegion.cpp
|
View
|
1
|
1 chunk |
+0 lines, -33 lines |
0 comments
|
Download
|
|
M |
src/IceTargetLowering.h
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+0 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/IceTargetLoweringX8632.h
|
View
|
1
2
3
4
5
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
|
M |
src/IceTargetLoweringX8632.cpp
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/IceTranslator.cpp
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+7 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/IceTypes.h
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/IceTypes.cpp
|
View
|
1
2
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/IceTypes.def
|
View
|
1
2
3
4
5
6
|
1 chunk |
+12 lines, -7 lines |
0 comments
|
Download
|
|
M |
src/assembler.h
|
View
|
1
2
3
4
|
5 chunks |
+12 lines, -11 lines |
0 comments
|
Download
|
|
M |
src/assembler.cpp
|
View
|
1
2
3
4
|
3 chunks |
+5 lines, -20 lines |
0 comments
|
Download
|
|
M |
src/assembler_ia32.h
|
View
|
1
2
|
3 chunks |
+9 lines, -10 lines |
0 comments
|
Download
|
|
M |
src/assembler_ia32.cpp
|
View
|
1
2
3
4
5
|
3 chunks |
+16 lines, -8 lines |
0 comments
|
Download
|
|
M |
src/llvm2ice.cpp
|
View
|
1
2
3
4
5
6
7
8
9
|
7 chunks |
+55 lines, -16 lines |
0 comments
|
Download
|
|
A |
tests_lit/llvm2ice_tests/elf_container.ll
|
View
|
1
2
3
4
5
|
1 chunk |
+242 lines, -0 lines |
0 comments
|
Download
|
|
A |
unittest/IceELFSectionTest.cpp
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+134 lines, -0 lines |
0 comments
|
Download
|
Total messages: 18 (12 generated)
|