[PATCH] D78805: [llvm-readobj][test] - Stop using binaries in gnu-phdrs.test and refine it.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 27 02:38:26 PDT 2020


grimar marked 2 inline comments as done.
grimar added inline comments.


================
Comment at: llvm/test/tools/llvm-readobj/ELF/gnu-phdrs.test:308
+
+## Check/document how we dump Arm specific program headers.
+# RUN: yaml2obj -DBITS=64 -DMACHINE=EM_ARM %s -o %tarm.elf
----------------
jhenderson wrote:
> Arm -> ARM
> 
> Could we just fix the ARM header printing so that you don't need "document" in the comment?
To fix ARM we need to add/change a test. This patch introduces a proper place for it (`gnu-phdrs.test`)


================
Comment at: llvm/test/tools/llvm-readobj/ELF/gnu-phdrs.test:325
+
+## Check the output when an object has no section headers.
+## RUN: llvm-objcopy --strip-sections %t64.elf %tno-shdrs.o
----------------
jhenderson wrote:
> What's the reasoning from removing this from its separate test? I don't think that gives us anything.
The original test uses `phdrs-elf.exe-x86_64` which is removed with this patch. 
Also I probably see no reason for testing it separatelly either: it is not a large/complex feature.

Want me to restore `phdrs-elf.exe-x86_64` and keep `gnu-section-mapping-no-shdrs.test` unchanged?


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

https://reviews.llvm.org/D78805





More information about the llvm-commits mailing list