This helps resolve https://bugs.llvm.org/show_bug.cgi?id=31564
Details
Diff Detail
- Repository
- rL LLVM
- Build Status
Buildable 29036 Build 29035: arc lint + arc unit
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 | ||
---|---|---|
2709–2710 | Sorry, I cannot remove this, I cannot find another way to achieve this. |
test/tools/llvm-readobj/elf-reloc-symbol-with-versioning.test | ||
---|---|---|
79 | 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 | ||
---|---|---|
2 | 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 | ||
---|---|---|
2 | 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 | ||
---|---|---|
2 | Yes, exactly. |
LGTM.
test/tools/llvm-readobj/elf-reloc-symbol-with-versioning.test | ||
---|---|---|
3–4 | Nit: You don't need the --strict-whitespace switches. |
test/tools/llvm-readobj/elf-reloc-symbol-with-versioning.test | ||
---|---|---|
3–4 | Oh, Because my test cases are copied from terminal. Just to make sure the number of blanks are right. Forget to remove this flag. |
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?