It is used for printing section headers in the GNU style
and the implementation can be simplified.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM.
llvm/tools/llvm-readobj/ELFDumper.cpp | ||
---|---|---|
3760–3763 | FWIW, I think this clause is a bad design in the original version - a user when dumping the section headers will not be able to distinguish between SHT_RELR and SHT_ANDROID_RELR. They might be identical internally, but the sh_type value is different. We shouldn't fix it in this patch, but it might be worth reaching out to the original people to implement it to bring this up. What do you think? |
llvm/tools/llvm-readobj/ELFDumper.cpp | ||
---|---|---|
3760–3763 | Yeah. The fresh GNU source code (2.34) still doesn't know about SHT_ANDROID_RELR/SHT_RELR, |
FWIW, I think this clause is a bad design in the original version - a user when dumping the section headers will not be able to distinguish between SHT_RELR and SHT_ANDROID_RELR. They might be identical internally, but the sh_type value is different.
We shouldn't fix it in this patch, but it might be worth reaching out to the original people to implement it to bring this up. What do you think?