[PATCH] D42823: Strip .note.gnu.build-id sections if --build-id is given.
Rafael Avila de Espindola via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 1 16:30:27 PST 2018
Rui Ueyama via Phabricator <reviews at reviews.llvm.org> writes:
> ruiu updated this revision to Diff 132494.
> ruiu added a comment.
>
> - Add -r to produce a re-linkable object file.
>
>
> https://reviews.llvm.org/D42823
>
> Files:
> lld/ELF/InputFiles.cpp
> lld/test/ELF/relocatable-build-id.s
>
>
> Index: lld/test/ELF/relocatable-build-id.s
> ===================================================================
> --- /dev/null
> +++ lld/test/ELF/relocatable-build-id.s
> @@ -0,0 +1,12 @@
> +# REQUIRES: x86
> +# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o
> +# RUN: ld.lld --build-id=0xcafebabe -o %t2.o %t1.o -r
Should we add --build-id with -r? What is the usecase? Can you check
what bfd and gold do?
Thanks,
Rafael
More information about the llvm-commits
mailing list