Why is inconsistency detected by ld.so library with DT_FILTER set to it ?
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.