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

Issue 1870293002: [Courgette] Sort section headers by sh_offset in ELF flows. (Closed)

Created:
4 years, 8 months ago by huangs
Modified:
4 years, 8 months ago
Reviewers:
Will Harris
CC:
chromium-reviews, grt (UTC plus 2), chrisha
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Courgette] Sort section headers by sh_offset in ELF flows. Courgette ELF flows assumes that sections are sorted by |sh_offset|, but this assumption may flow. In particular, nacl_irt_x86_32.nexe breaks this, and this impacts Windows x86 Chrome because the .nexe file is included. Solution is to do sort sections so we process them in the order in file offset order. This does not affect unittests. All test ELF data have "properly" sorted sections, except elf-32-high-bss. And for this file, the offending .bss section has sh_type=SHT_NOBITS, so DisassemblerElf32::ParseFile() would ignore it. BUG=601948 Committed: https://crrev.com/8cffb28385dffb40c2c773b5b4c0730a533cd025 Cr-Commit-Position: refs/heads/master@{#386306}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -5 lines) Patch
M courgette/disassembler_elf_32.h View 2 chunks +2 lines, -2 lines 0 comments Download
M courgette/disassembler_elf_32.cc View 2 chunks +23 lines, -3 lines 0 comments Download

Messages

Total messages: 15 (8 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1870293002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1870293002/1
4 years, 8 months ago (2016-04-08 22:40:32 UTC) #2
huangs
M51 patch might be a bit bigger without this fix, but I don't think it's ...
4 years, 8 months ago (2016-04-08 22:58:18 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-08 23:38:26 UTC) #8
Will Harris
lgtm
4 years, 8 months ago (2016-04-09 19:35:57 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1870293002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1870293002/1
4 years, 8 months ago (2016-04-09 19:36:08 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 8 months ago (2016-04-09 19:44:02 UTC) #13
commit-bot: I haz the power
4 years, 8 months ago (2016-04-09 19:45:17 UTC) #15
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/8cffb28385dffb40c2c773b5b4c0730a533cd025
Cr-Commit-Position: refs/heads/master@{#386306}

Powered by Google App Engine
This is Rietveld 408576698