[tickprocessor] fix ASLR slide use and nm
on Mac
`libStart` already has ALSR slide added to it. Do not add it twice. https: //codereview.chromium.org/2696903002/ Review-Url: https://codereview.chromium.org/2928083004 Cr-Commit-Position: refs/heads/master@{#46152}
This commit is contained in:
parent
4a48b6e527
commit
a8273f7e09
@ -645,9 +645,11 @@ CppEntriesProvider.prototype.parseVmSymbols = function(
|
||||
} else if (funcInfo === false) {
|
||||
break;
|
||||
}
|
||||
funcInfo.start += libASLRSlide;
|
||||
if (funcInfo.start < libStart && funcInfo.start < libEnd - libStart) {
|
||||
if (funcInfo.start < libStart - libASLRSlide &&
|
||||
funcInfo.start < libEnd - libStart) {
|
||||
funcInfo.start += libStart;
|
||||
} else {
|
||||
funcInfo.start += libASLRSlide;
|
||||
}
|
||||
if (funcInfo.size) {
|
||||
funcInfo.end = funcInfo.start + funcInfo.size;
|
||||
|
Loading…
Reference in New Issue
Block a user