[PATCH] D71978: [RISCV] Fix evalutePCRelLo for symbols at the end of a fragment
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 7 16:21:43 PST 2020
efriedma added a comment.
> it requires . and .Ltmp0 be in the same fragment [...] This is checked earlier by ensuring findAssociatedFragment() matches for each.
That check you're mentioning doesn't actually do what you say it does; both findAssociatedFragment() actually return the fragment containing .Ltmp0.
> This logic therefore needs to be mirrored in evaluatePCRelLo so that they agree on what fragment they're talking about for the AUIPC fixup.
This makes sense. Please add comments linking the two.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71978/new/
https://reviews.llvm.org/D71978
More information about the llvm-commits
mailing list