This option prints dynamic relocation entries of the given file
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
This is absolutely not finished. I kind of works for ELF files (tho it prints every relocations, not only dynamic ones).
I don't know much about other binary file types, I will probably need to dig more on this (and maybe some help if possible).
include/llvm/Object/ELFObjectFile.h | ||
---|---|---|
795 | I guess this assert was not here for no reason. But I didn't understand why we were forbidding this function for ELF files other than ET_REL.. Can someone explain me those lines ? |
include/llvm/Object/ELFObjectFile.h | ||
---|---|---|
795 | I think it's that it was looking for a relocatable file and perhaps needs additional checks for any kind of relocatable rather than just relocatable object files. | |
tools/llvm-objdump/llvm-objdump.cpp | ||
437 | Can you add some explanatory comments here, it's not necessarily obvious what "undef" means in this context as it can be an overloaded term. |
Some of the logic in the function feels awkward, but that's a cleanup for another time probably.
-eric
Yes, I didn't really know how to do it better. I truly think that we want to output the sections and not directly the relocations.
This is why there is this weird logic (there is no pointer to reloc section in the Dynamic Section).
If you find any better way to do it, this might be awesome !
Will land tomorrow :)
I guess this assert was not here for no reason. But I didn't understand why we were forbidding this function for ELF files other than ET_REL.. Can someone explain me those lines ?