[PATCH] D90438: [llvm-objcopy] Make --set-section-flags work with --add-section

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 30 00:07:51 PDT 2020


grimar added a comment.

The change looks good to me.



================
Comment at: llvm/test/tools/llvm-objcopy/ELF/add-section-and-set-flags.test:4
+# RUN: yaml2obj %s -o %t
+# RUN: llvm-objcopy --add-section=foo=/dev/null --set-section-flags=foo=alloc,exclude %t %t.out
+# RUN: llvm-readobj -S %t.out | FileCheck %s
----------------
`GNU objcopy (GNU Binutils for Ubuntu) 2.31.1` doesn't recognize `exclude`, btw:

objcopy: unrecognized section flag `exclude'
objcopy: supported flags: alloc, load, noload, readonly, debug, code, data, rom, share, contents, merge, strings



Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D90438



More information about the llvm-commits mailing list