[PATCH] D50803: [gold-plugin] Add "obj-files" option
Bill Wendling via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 15 14:08:33 PDT 2018
void added a comment.
In https://reviews.llvm.org/D50803#1201353, @pcc wrote:
> Doesn't the `obj-path` option already do what you want here?
I don't believe so, or at least it's not exactly the behavior I would like. The behavior I see with `save-temps` that I wanted to replicate with this option is that `save-temps` outputs the object code in this way:
$ ld.gold -plugin LLVMgold.so -plugin-opt=save-temps -r -o x.o a.o b.o
$ ls
x.o x.o1 x.o2 a.o b.o
Where `x.o1` is the object code for `a.o` and `x.o2` is the object code for `b.o`. Retaining this ordering is important to my use case---i.e., live patching the Linux kernel <https://en.wikipedia.org/wiki/Kpatch>. From what I can tell, `obj-path` outputs `.o` files to temporary files with no special ordering to the filenames.
Repository:
rL LLVM
https://reviews.llvm.org/D50803
More information about the llvm-commits
mailing list