Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libdrgn: only apply ELF relocations to relocatable files
Relocations are only supposed to be applied to ET_REL files, not ET_EXEC files like vmlinux. This hasn't been an issue with the kernel builds that I've tested on because the relocations match the contents of the section. However, on Fedora, the relocation sections don't match, probably because they post-process the binary in some way. This leads to completely bogus debug information being parsed by drgn_dwarf_index. Fix it by only relocating ET_REL files.
- Loading branch information