Fixes the error "Link field value 0 in section .rela.plt is invalid" when copying/stripping certain binaries. Minimal repro:
$ cat /tmp/a.c int main() { return 0; } $ clang -static /tmp/a.c -o /tmp/a $ llvm-strip /tmp/a -o /tmp/b llvm-strip: error: Link field value 0 in section .rela.plt is invalid.
It has been my experience that yaml2obj does not respect the Link field but instead silently sets it to the symbol table that it always constructs. You should check to see if the produced binary in fact has a link of zero for that section.