[PATCH] D71595: [llvm-readobj][test] - Improve dyn-symbols.test.

James Henderson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 18 05:46:28 PST 2019


jhenderson added inline comments.


================
Comment at: llvm/test/tools/llvm-readobj/ELF/dyn-symbols.test:68
+  - Type: PT_LOAD
+    VAddr: 0x0000
+    Sections:
----------------
grimar wrote:
> jhenderson wrote:
> > Doesn't this need to be 0x100 too? Possibly not strictly, but otherwise the VAddr viewed via the program header won't match that in the section header. The tag would need updating too.
> > but otherwise the VAddr viewed via the program header won't match that in the section header. 
> Right, but isn't that good for this test? We are trying to test that "dynamic symbol table found via the DT_SYMTAB dynamic tag".
> Ideally we do not want to have a section header at all (but we can't).
I'm just thinking that the section mapping produced by something like llvm-readelf is going to show the dynsym as not in the program header, if I'm not mistaken, which could get confusing if anybody debugs this test in the future.

I'm okay with no addresses being set at all. I just think it needs to be consistent.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D71595/new/

https://reviews.llvm.org/D71595





More information about the llvm-commits mailing list