[all-commits] [llvm/llvm-project] dcc45f: [ELF] PROVIDE: fix spurious "symbol not found"

Fangrui Song via All-commits all-commits at lists.llvm.org
Thu Apr 4 09:38:25 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dcc45faa30041a3378bcde4857df205382f1996a
      https://github.com/llvm/llvm-project/commit/dcc45faa30041a3378bcde4857df205382f1996a
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-04-04 (Thu, 04 Apr 2024)

  Changed paths:
    M lld/ELF/Driver.cpp
    M lld/test/ELF/linkerscript/symbolreferenced.s

  Log Message:
  -----------
  [ELF] PROVIDE: fix spurious "symbol not found"

When archive member extraction involving ENTRY happens after
`addScriptReferencedSymbolsToSymTable`,
`addScriptReferencedSymbolsToSymTable` may fail to define some PROVIDE
symbols used by ENTRY. This is an edge case that regressed after #84512.
(The interaction with PROVIDE and ENTRY-in-archive was not considered
before).

While here, also ensure that --undefined-glob extracted object files
are parsed before `addScriptReferencedSymbolsToSymTable`.

Fixes: ebb326a51fec37b5a47e5702e8ea157cd4f835cd

Pull Request: https://github.com/llvm/llvm-project/pull/87530



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list