|
Refactor rel32 searching process for x64 to make it more similar to x86.
I created a base class Rel32Finder from which derives both Rel32FinderX86 and Rel32Finder64.
This makes ParseRel32RelocsFromSection method more similar in x64 and x86.
Note that I removed the Win32 part of the name because it may be used by DisassemblerElf.
I created test cases for Rel32FinderX64 which extends those for Rel32FinderX86.
BUG= 617965
Committed: https://crrev.com/7a43c3ede6d7db6e9ec25c80db8fbcd5ed80ad0f
Cr-Commit-Position: refs/heads/master@{#398326}
Total comments: 12
Total comments: 35
Total comments: 36
Total comments: 26
Total comments: 16
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+473 lines, -724 lines) |
Patch |
|
M |
courgette/BUILD.gn
|
View
|
1
2
3
|
2 chunks |
+7 lines, -3 lines |
0 comments
|
Download
|
|
M |
courgette/courgette.gyp
|
View
|
1
|
2 chunks |
+7 lines, -3 lines |
0 comments
|
Download
|
|
M |
courgette/disassembler_win32_x64.cc
|
View
|
1
2
|
3 chunks |
+10 lines, -85 lines |
0 comments
|
Download
|
|
M |
courgette/disassembler_win32_x86.cc
|
View
|
1
2
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
A + |
courgette/rel32_finder.h
|
View
|
1
2
|
3 chunks |
+7 lines, -22 lines |
0 comments
|
Download
|
|
A |
courgette/rel32_finder.cc
|
View
|
1
2
|
1 chunk |
+22 lines, -0 lines |
0 comments
|
Download
|
|
A + |
courgette/rel32_finder_unittest.cc
|
View
|
1
2
3
4
5
6
|
6 chunks |
+39 lines, -19 lines |
0 comments
|
Download
|
|
D |
courgette/rel32_finder_win32_x86.h
|
View
|
|
1 chunk |
+0 lines, -71 lines |
0 comments
|
Download
|
|
D |
courgette/rel32_finder_win32_x86.cc
|
View
|
|
1 chunk |
+0 lines, -113 lines |
0 comments
|
Download
|
|
D |
courgette/rel32_finder_win32_x86_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -151 lines |
0 comments
|
Download
|
|
A |
courgette/rel32_finder_x64.h
|
View
|
1
2
3
4
5
|
1 chunk |
+36 lines, -0 lines |
0 comments
|
Download
|
|
A |
courgette/rel32_finder_x64.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+121 lines, -0 lines |
0 comments
|
Download
|
|
A |
courgette/rel32_finder_x86.h
|
View
|
1
2
3
4
5
|
1 chunk |
+33 lines, -0 lines |
0 comments
|
Download
|
|
A + |
courgette/rel32_finder_x86.cc
|
View
|
1
2
3
4
5
6
|
3 chunks |
+21 lines, -43 lines |
0 comments
|
Download
|
|
D |
courgette/testdata/rel32_win32_x86_01.txt
|
View
|
|
1 chunk |
+0 lines, -55 lines |
0 comments
|
Download
|
|
D |
courgette/testdata/rel32_win32_x86_02.txt
|
View
|
|
1 chunk |
+0 lines, -62 lines |
0 comments
|
Download
|
|
D |
courgette/testdata/rel32_win32_x86_03.txt
|
View
|
|
1 chunk |
+0 lines, -40 lines |
0 comments
|
Download
|
|
D |
courgette/testdata/rel32_win32_x86_04.txt
|
View
|
|
1 chunk |
+0 lines, -47 lines |
0 comments
|
Download
|
|
A + |
courgette/testdata/rel32_x64_01.txt
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+41 lines, -3 lines |
0 comments
|
Download
|
|
A + |
courgette/testdata/rel32_x64_02.txt
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+44 lines, -4 lines |
0 comments
|
Download
|
|
A |
courgette/testdata/rel32_x64_03.txt
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+74 lines, -0 lines |
0 comments
|
Download
|
|
A + |
courgette/testdata/rel32_x86_01.txt
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
A + |
courgette/testdata/rel32_x86_02.txt
|
View
|
1
2
3
4
5
6
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
|
A + |
courgette/testdata/rel32_x86_03.txt
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
A + |
courgette/testdata/rel32_x86_04.txt
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
Total messages: 31 (10 generated)
|