FWIW, I think adding a libthread_db-specific patch to mklibs (Joseph's part 4) is reasonable. It's part of glibc, for which there are already local hacks in mklibs. And it's a library with a particularly annoying interface, that relies on undefined symbols in the library being defined in the application. Any thoughts on applying the patch? -- Daniel Jacobowitz CodeSourcery