This is an archive of the discontinued LLVM Phabricator instance.

[05/10] ELF/AArch64: Check ADR_PREL_PG_HI21 for overflow
ClosedPublic

Authored by zatrazz on Apr 7 2015, 7:27 AM.

Details

Summary

Hi ruiu, shankarke,

This is re-post of a previous attempt. Add support for overflow checking when processing R_AARCH64_ADR_PREL_PG_HI21 relocations and add test.

Patch Will Newton.

Diff Detail

Event Timeline

zatrazz updated this revision to Diff 23331.Apr 7 2015, 7:27 AM
zatrazz retitled this revision from to [05/10] ELF/AArch64: Check ADR_PREL_PG_HI21 for overflow.
zatrazz updated this object.
zatrazz edited the test plan for this revision. (Show Details)
zatrazz added reviewers: ruiu, shankar.easwaran.
zatrazz added a project: lld.
zatrazz added subscribers: Unknown Object (MLST), lld.
ruiu edited edge metadata.Apr 7 2015, 9:26 AM

LGTM

lib/ReaderWriter/ELF/AArch64/AArch64RelocationHandler.cpp
120

You can now remove this?

I will remove it, thanks.

zatrazz accepted this revision.Apr 21 2015, 11:17 AM
zatrazz added a reviewer: zatrazz.
This revision is now accepted and ready to land.Apr 21 2015, 11:17 AM
zatrazz closed this revision.Apr 21 2015, 11:17 AM