[PATCH] D45849: [ELF] --warn-backrefs: use the same GroupId for object files in the same --{start, end}-lib
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 19 16:55:23 PDT 2018
MaskRay added a comment.
`t3.o` `.globl bar; bar:`
`t4.o` `.globl foo; foo: call bar`
`t.o` `.global _start; _start: call bar`
`ld.gold t.o --start-lib t3.o t4.o --end-lib` # successfully
Without this revision, `ld.lld --warn-backrefs t.o --start-lib t3.o t4.o --end-lib` warns that `t4.o` has a reference on `t3.o`.
Repository:
rLLD LLVM Linker
https://reviews.llvm.org/D45849
More information about the llvm-commits
mailing list