diff options
| author | George Rimar <grimar@accesssoftek.com> | 2017-02-21 15:08:18 +0000 |
|---|---|---|
| committer | George Rimar <grimar@accesssoftek.com> | 2017-02-21 15:08:18 +0000 |
| commit | ae4761c18679f267fdb4ec0d47d5cff816134849 (patch) | |
| tree | caaeb7adf7f88bc427d827bcb8beafc52ffd9f63 /llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp | |
| parent | 0c094f504c2679a5b389fa79a7d10c568f511014 (diff) | |
| download | bcm5719-llvm-ae4761c18679f267fdb4ec0d47d5cff816134849.tar.gz bcm5719-llvm-ae4761c18679f267fdb4ec0d47d5cff816134849.zip | |
[ELF] - Postpone evaluation of LMA offset.
Previously we evaluated the values of LMA incorrectly for next cases:
.text : AT(ADDR(.text) - 0xffffffff80000000) { ... }
.data : AT(ADDR(.data) - 0xffffffff80000000) { ... }
.init.begin : AT(ADDR(.init.begin) - 0xffffffff80000000) { ... }
Reason was that we evaluated offset when VA was not assigned. For case above
we ended up with 3 loads that has similar LMA and it was incorrect.
That is critical for linux kernel.
Patch updates the offset after VA calculation. That fixes the issue.
Differential revision: https://reviews.llvm.org/D30163
llvm-svn: 295722
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp')
0 files changed, 0 insertions, 0 deletions

