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

Issue 2710573003: Fix removal of unreferenced ASAN API functions (Closed)

Created:
3 years, 10 months ago by etienneb
Modified:
3 years, 10 months ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix removal of unreferenced ASAN API functions When a DLL is instrumented with ASAN, there is some thunks introduced that dynamically resolved the function through the imports table and redirect the call from the DLL to the main executable. Unfortunately, unreferenced functions recently got removed by the linker. Without this fix this function is not part of the final executable: __asan_locate_address % dumpbin D:\src\chromium\src\out\ninja64\initialexe\chrome.exe /exports | grep asan_l This is making chrome to crash on startup when loading chrome_elf.dll. ASAN is failing to hook on a function and call abort, which is also failing because ASAN is still in the "tls-initialisation" phase. R=ochang@chromium.org, rnk@chromium.org, thakis@chromium.org, chrisha@chromium.org BUG= Review-Url: https://codereview.chromium.org/2710573003 Cr-Commit-Position: refs/heads/master@{#451836} Committed: https://chromium.googlesource.com/chromium/src/+/803397e04777bc734a9c028813351c2e5079faf1

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -0 lines) Patch
M build/config/sanitizers/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (4 generated)
etienneb
PTAL & CQ
3 years, 10 months ago (2017-02-21 15:53:51 UTC) #2
Oliver Chang
lgtm
3 years, 10 months ago (2017-02-21 17:49:08 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2710573003/1
3 years, 10 months ago (2017-02-21 18:31:30 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/803397e04777bc734a9c028813351c2e5079faf1
3 years, 10 months ago (2017-02-21 21:28:48 UTC) #8
Nico
3 years, 10 months ago (2017-02-21 21:31:34 UTC) #9
Message was sent while issue was closed.
Hm, it seems kind of unfortunate that asan clients need to know about this.
Since links don't go through the compiler driver on windows, I can't think of
any way to prevent that though :-/

Powered by Google App Engine
This is Rietveld 408576698