[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 ffe2dda2 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 ffe2dda2.
parent
59052468
Please register or sign in to comment