[PATCH] D54206: [COFF] Fix RvaStart calculation on big-endian hosts
James Clarke via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 7 06:16:45 PST 2018
jrtc27 created this revision.
jrtc27 added a reviewer: ruiu.
Herald added a subscriber: llvm-commits.
This was causing COFF/pdb-framedata.yaml to fail.
Repository:
rLLD LLVM Linker
https://reviews.llvm.org/D54206
Files:
COFF/PDB.cpp
Index: COFF/PDB.cpp
===================================================================
--- COFF/PDB.cpp
+++ COFF/PDB.cpp
@@ -1214,7 +1214,8 @@
// Rewrite string table indices in the Fpo Data and symbol records to refer to
// the global PDB string table instead of the object file string table.
for (DebugFrameDataSubsectionRef &FDS : NewFpoFrames) {
- const uint32_t *Reloc = FDS.getRelocPtr();
+ const ulittle32_t *Reloc =
+ reinterpret_cast<const ulittle32_t *>(FDS.getRelocPtr());
for (codeview::FrameData FD : FDS) {
FD.RvaStart += *Reloc;
FD.FrameFunc =
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54206.172939.patch
Type: text/x-patch
Size: 598 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181107/eb815ee3/attachment.bin>
More information about the llvm-commits
mailing list