might be late, but I'll give it a try with your dlopen reproducer.
-- Hajime On Sat, 06 Mar 2021 05:22:19 +0900, Johannes Berg wrote: > > On Thu, 2021-03-04 at 14:38 +0900, Hajime Tazaki wrote: > > > > objcopy (from binutils) can localize symbols (i.e., objcopy -L > > sem_init $orig_file $new_file). > > This doesn't seem to be sufficient. > > > It also does renaming symbols. But > > not sure this is the ideal solution. > > Even that doesn't seem to actually work/help? I still get libcom_err > trying to call UML's sem_init, even after doing > objcopy --redefine-sym sem_init=uml_sem_init