Hi ruiu, shankarke,
This is re-post of a previous attempt. This patch adds support for overflow checking when processing R_AARCH64_PREL32 relocations and add tests.
Patch by Will Newton.
Paths
| Differential D8861
[02/10] ELF/AArch64: Add support for checking PREL32 for overflow ClosedPublic Authored by zatrazz on Apr 7 2015, 7:21 AM.
Details
Summary Hi ruiu, shankarke, This is re-post of a previous attempt. This patch adds support for overflow checking when processing R_AARCH64_PREL32 relocations and add tests. Patch by Will Newton.
Diff Detail Event TimelineThis revision is now accepted and ready to land.Apr 7 2015, 7:24 AM ruiu edited edge metadata. Comment ActionsLGTM
Revision Contents
Diff 23328 lib/ReaderWriter/ELF/AArch64/AArch64RelocationHandler.cpp
test/elf/AArch64/rel-prel32-overflow.test
test/elf/AArch64/rel-prel32.test
|
withinSignedUnsignedRange's definition looks strange to me, so I checked the spec and confirmed that what the function is doing is correct. Can you add a one line note to the function comment for readers like me saying that this is what the spec actually requires?