[PATCH] D126177: [BOLT] Fix disassembly of data in text
Alexey Moksyakov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 23 06:05:58 PDT 2022
yavtuk added a comment.
probably we should also fix the following
bolt/lib/Core/Exceptions.cppbolt/lib/Core/Exceptions.cpp +498
- uint64_t Offset = 0;
+ uint64_t Offset = Function.getFirstInstructionOffset();
test case:
int extra_space() {
asm volatile (".space 256, 0xff\n");
return 0;
}
int main(int argc, char **argv) {
int (*fn)(void);
fn = extra_space + 256;
fn();
return 0;
}
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126177/new/
https://reviews.llvm.org/D126177
More information about the llvm-commits
mailing list