Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(367)

Issue 4805044: Use section contributions for initial parsing of .text (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 9 months ago by chrisha
Modified:
12 years, 9 months ago
CC:
sawbuck-changes_googlegroups.com
Base URL:
http://sawbuck.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Use section contributions for initial parsing of .text This CL modifies Decomposer to use section contributions for the first pass of parsing, followed by the use of function and data symbols for refinement. The hope was that this would free us from control-flow analysis and block merging, but unfortunately this is still required in order to properly parse NaCl blocks (whose section contributions are too fine grained). As a side-effect, section contributions give us reliable information regarding padding blocks in .text. This CL also introduces padding block detection, and modifies the two relinkers to not output padding blocks when reordering a section. Committed: http://code.google.com/p/sawbuck/source/browse/#svn/trunk384

Patch Set 1 : '' #

Total comments: 4

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -104 lines) Patch
M syzygy/core/block_graph.h View 1 chunk +7 lines, -3 lines 0 comments Download
M syzygy/pe/decomposer.h View 2 chunks +22 lines, -7 lines 0 comments Download
M syzygy/pe/decomposer.cc View 1 11 chunks +118 lines, -94 lines 0 comments Download
M syzygy/relink/order_relinker.cc View 1 1 chunk +10 lines, -0 lines 0 comments Download
M syzygy/relink/random_relinker.cc View 1 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 4
chrisha
PTAL
12 years, 9 months ago (2011-07-20 16:19:19 UTC) #1
ericdingle
LGTM http://codereview.appspot.com/4805044/diff/2001/syzygy/pe/decomposer.cc File syzygy/pe/decomposer.cc (right): http://codereview.appspot.com/4805044/diff/2001/syzygy/pe/decomposer.cc#newcode552 syzygy/pe/decomposer.cc:552: while (data < data_end) { Handy for loop ...
12 years, 9 months ago (2011-07-20 16:51:21 UTC) #2
chrisha
Thanks, committing. http://codereview.appspot.com/4805044/diff/2001/syzygy/pe/decomposer.cc File syzygy/pe/decomposer.cc (right): http://codereview.appspot.com/4805044/diff/2001/syzygy/pe/decomposer.cc#newcode552 syzygy/pe/decomposer.cc:552: while (data < data_end) { On 2011/07/20 ...
12 years, 9 months ago (2011-07-20 17:53:27 UTC) #3
Roger McFarlane
12 years, 9 months ago (2011-07-20 20:00:43 UTC) #4
lgtm
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b