This helps resolve https://bugs.llvm.org/show_bug.cgi?id=31564
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
Addressed @grimar 's comments.
- Add /* IsDynamic */ hints.
- Sorry, I cannot find another way to get full name of a symbol. Is there another method?
tools/llvm-readobj/ELFDumper.cpp | ||
---|---|---|
2719 ↗ | (On Diff #189985) | Sorry, I cannot remove this, I cannot find another way to achieve this. |
test/tools/llvm-readobj/elf-reloc-symbol-with-versioning.test | ||
---|---|---|
78 ↗ | (On Diff #190074) | Please use mangled names, to show that versioned symbols are demangled (e.g. _Z2f1v becomes f1()@v3 etc). |
Addressed @jhenderson 's comments.
- Use -demangle option to test that mangled name can be demangled correctly.
test/tools/llvm-readobj/elf-reloc-symbol-with-versioning.test | ||
---|---|---|
1 ↗ | (On Diff #190237) | Thinking about a past bug to do with symbol versioning, perhaps it's worth one of these symbols not having a version, to show that symbol versioning it only printed for symbols with version details? |
test/tools/llvm-readobj/elf-reloc-symbol-with-versioning.test | ||
---|---|---|
1 ↗ | (On Diff #190237) | Do you mean that a dynamic symbol that not included in .gnu.version/.gnu.version_d/.gnu.version_r section? Am I right? |
test/tools/llvm-readobj/elf-reloc-symbol-with-versioning.test | ||
---|---|---|
1 ↗ | (On Diff #190237) | Yes, exactly. |
LGTM.
test/tools/llvm-readobj/elf-reloc-symbol-with-versioning.test | ||
---|---|---|
2–3 ↗ | (On Diff #190247) | Nit: You don't need the --strict-whitespace switches. |
test/tools/llvm-readobj/elf-reloc-symbol-with-versioning.test | ||
---|---|---|
2–3 ↗ | (On Diff #190247) | Oh, Because my test cases are copied from terminal. Just to make sure the number of blanks are right. Forget to remove this flag. |