]> granicus.if.org Git - llvm/commit
[WebAssembly] Lower ASan constructor priority on Emscripten
authorGuanzhong Chen <gzchen@google.com>
Tue, 6 Aug 2019 21:52:58 +0000 (21:52 +0000)
committerGuanzhong Chen <gzchen@google.com>
Tue, 6 Aug 2019 21:52:58 +0000 (21:52 +0000)
commitcc63d3ba2fd17bddf349394096c058fde47d1b97
tree25cc6265b89ef73208696ca72fad2b03d571951c
parent97dccece328cb31c762b362953d4ae960b27a0f7
[WebAssembly] Lower ASan constructor priority on Emscripten

Summary:
This change gives Emscripten the ability to use more than one constructor
priorities that runs before ASan. By convention, constructor priorites 0-100
are reserved for use by the system. ASan on Emscripten now uses priority 50,
leaving plenty of room for use by Emscripten before and after ASan.

This change is done in response to:
https://github.com/emscripten-core/emscripten/pull/9076#discussion_r310323723

Reviewers: kripken, tlively, aheejin

Reviewed By: tlively

Subscribers: cfe-commits, dschuff, sbc100, jgravelle-google, hiraditya, sunfish, llvm-commits

Tags: #llvm, #clang

Differential Revision: https://reviews.llvm.org/D65684

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368101 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Instrumentation/AddressSanitizer.cpp