This is an archive of the discontinued LLVM Phabricator instance.

[Object] Fix ELFObjectFile<ELFT>::getRelocationOffset
AbandonedPublic

Authored by alexander-shaposhnikov on Aug 3 2017, 12:24 PM.

Details

Reviewers
grimar
dblaikie
Summary

The assert in ELFObjectFile<ELFT>::getRelocationOffset appears to be incorrect.
For example, dynamic libraries have e_type set to ET_DYN and contain relocations at the same time.
The same issue might arise for some executables (e_type set to ET_EXEC).

Diff Detail

Repository
rL LLVM

Event Timeline