[PATCH] D39713: [llvm-objcopy] Change -O binary to respect section removal and behave like GNU objcopy

James Henderson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 15 08:57:36 PST 2017


jhenderson accepted this revision.
jhenderson added a comment.
This revision is now accepted and ready to land.

As mentioned inline, I'd like the new test renaming slightly, but otherwise LGTM.



================
Comment at: test/tools/llvm-objcopy/binary-align-first.test:1
+# RUN: yaml2obj %s -o %t
+# RUN: llvm-objcopy -R=.note -O binary %t %t2
----------------
The test itself is fine, but I think it needs a different name, and a brief comment explaining the purpose of the test (i.e. that the first segment is always at offset zero). Possible new test name: binary-first-seg-offset-zero.test (but other names are aacceptable, as long as they convey some form of meaning).


Repository:
  rL LLVM

https://reviews.llvm.org/D39713





More information about the llvm-commits mailing list