[PATCH] D54125: [LTO] Drop non-prevailing definitions only if linkage is not local or appending

Bill Wendling via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 29 17:52:24 PST 2018


void added a comment.

To replicate the failure, do this:

  $ llvm-ar rcsTD test-archive.o softirq.o irqdesc.o
  $ ld.gold -plugin LLVMgold.so -plugin-opt=thinlto -plugin-opt=-code-model=kernel -plugin-opt=jobs=6 -plugin-opt=-stack-alignment=8 -m elf_x86_64 -r -o test-object.o --whole-archive test-archive.o
  $ nm test-object.o  | grep W
  0000000000001370 W arch_dynirq_lower_bound
  00000000000001b0 W arch_early_irq_init
  00000000000001a0 W arch_probe_nr_irqs
  0000000000000190 W early_irq_init

Note that `early_irq_init` is still weak. It should have resolved to a concrete function.

F7625285: softirq.o <https://reviews.llvm.org/F7625285>

F7625286: irqdesc.o <https://reviews.llvm.org/F7625286>


Repository:
  rL LLVM

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

https://reviews.llvm.org/D54125





More information about the llvm-commits mailing list