Why is inconsistency detected by ld.so library with DT_FILTER set to it ?

Solution Verified - Updated -

Issue

  • Linking DSOs with g++ --Wl,--filter=someDSO.so, and DSO produced can't be dlopened or fed to ldd
$  ldd someDSO.so
Inconsistency detected by ld.so: dl-deps.c: 553: _dl_map_object_deps: Assertion `map->l_searchlist.r_list[0] == map' failed!

Environment

  • Red Hat Enterprise Linux 8
  • glibc-2.28

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content