[lld] [LLD] Use uint64_t timestamp to overcome potential overflow (PR #81665)
Jinsong Ji via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 13 13:51:43 PST 2024
================
@@ -1714,7 +1714,8 @@ void elf::postScanRelocations() {
if (!sym.isDefined()) {
replaceWithDefined(sym, *in.plt,
target->pltHeaderSize +
- target->pltEntrySize * sym.getPltIdx(),
+ (uint64_t)target->pltEntrySize *
+ sym.getPltIdx(),
----------------
jsji wrote:
You are right, the changes in ELF are unrelated to COFF changes.
Put them in the same PR because they are from the same report.
https://github.com/llvm/llvm-project/pull/81665
More information about the llvm-commits
mailing list