[all-commits] [llvm/llvm-project] 13816e: [LLD][ELF] --wrap: __real_foo references should tr...

bd1976bris via All-commits all-commits at lists.llvm.org
Tue Oct 18 04:54:05 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 13816e0358123baa411419048a9ce5c432ddab55
      https://github.com/llvm/llvm-project/commit/13816e0358123baa411419048a9ce5c432ddab55
  Author: Ben Dunbobbin <Ben.Dunbobbin at sony.com>
  Date:   2022-10-18 (Tue, 18 Oct 2022)

  Changed paths:
    M lld/ELF/Driver.cpp
    A lld/test/ELF/wrap-extract-real.ll
    A lld/test/ELF/wrap-extract-real.s

  Log Message:
  -----------
  [LLD][ELF] --wrap: __real_foo references should trigger archive extraction for foo

A reference to __real_foo should trigger archive extraction of the input file that defines foo, otherwise a link using --wrap=foo might fail to link with an undefined reference to foo.
This matches bfd linker behaviour.

Differential Revision: https://reviews.llvm.org/D135897




More information about the All-commits mailing list