2010/12/31 Timo Teräs <[email protected]>: > Hi all, > > I was trying to debug a multithreaded program in uclibc, but ntpl_db was > not working at all. > > I hunted down the problem the fact that we are doing "strip -x" to the > libpthread: it removes all non-global symbols. > > However, nptl_db inspects the local system, and uses them to verify > libpthread (looks for static/local "nptl_version" symbol) and also to > hook into libpthread (it uses certain local symbols to find libpthread > event structures and modifies them). Thus gdb + uclibc nptl is broke. > > I'm not sure how to modify makefiles so that we do *not* do "strip -x" > on libpthread, but this should be fixed. I removed the "-x" on global > STRIP_FLAGS from Rules.mak, recompiled and then gdb was much more > happier with ntpl_db. > you have to leave the symbol table for nptl_db and rest can be stripped. I think same holds for ld.so
> Cheers, > Timo > _______________________________________________ > uClibc mailing list > [email protected] > http://lists.busybox.net/mailman/listinfo/uclibc > _______________________________________________ uClibc mailing list [email protected] http://lists.busybox.net/mailman/listinfo/uclibc
