[all-commits] [llvm/llvm-project] c92ddf: [ORC] Add a unit test to verify that bound weak sy...

lhames via All-commits all-commits at lists.llvm.org
Wed Nov 9 11:22:53 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c92ddf4e235932ee6d03d5ea878a084b73a07974
      https://github.com/llvm/llvm-project/commit/c92ddf4e235932ee6d03d5ea878a084b73a07974
  Author: Lang Hames <lhames at gmail.com>
  Date:   2022-11-09 (Wed, 09 Nov 2022)

  Changed paths:
    M llvm/unittests/ExecutionEngine/Orc/CoreAPIsTest.cpp

  Log Message:
  -----------
  [ORC] Add a unit test to verify that bound weak symbols can't be overridden.

Weak symbols can be overridden while they're in the NeverSearched state, but
should not be able to be overridden once they've been bound by some lookup.
Historically we guaranteed this by stripping the weak flag once a symbol as
bound, causing it to appear as if it were strong. In ffe2dda29f3 we changed
that behavior to retain weak flags on symbols (to facilitate tracking for
dynamic re-binding during dlopen). This test checks that we still fail as
required after ffe2dda29f3.




More information about the All-commits mailing list