[PATCH] D57517: [llvm-objcopy] Allow using regex in name comparison

James Henderson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 1 01:40:52 PST 2019


jhenderson added a comment.

In D57517#1380163 <https://reviews.llvm.org/D57517#1380163>, @evgeny777 wrote:

> > Are there any users of this feature/is it useful?
>
> One of such users is myself. I'm using it to strip specific classes (with all methods and data) from relocatable objects and then execute those object files on memory tight embedded platform using OrcJIT. This is pretty specific use case though.


Still sounds like a reasonable use-case anyway. I could see it being useful for library providers too, who want to hide some things in the external interface, though I don't know of any concrete examples.

If we choose to support this (and I'm happy to +1 it), then I think it should only be a long-form switch, with no short-form equivalent. That's because there's a much higher chance of something being added to GNU objcopy in the future with a short alias that causes a clash than for a long-form version.


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

https://reviews.llvm.org/D57517





More information about the llvm-commits mailing list