On Wed, May 18, 2005 at 01:36:08PM +0100, Mike Hearn wrote: > Could there please at some point be serious discussion of making this a > supported way of working? In this case dl_iterate_phdr is weak so could > the decision about whether to use it or not could be made at runtime, not > build time?
It can't, this decision must be done at compiler configuration time. Compiler built in presence of dl_iterate_phdr creates binaries and shared libraries, that rely on its presence in target glibc, as support code for older glibc's is intentionally left out in that case. BTW, all glibc versions are really only backwards compatible, not forward compatible, new symbols are added through symbol versioning all the time. You can always install into a chroot an older distribution and compile/link programs in there if you want one library or binary to work with multiple OS releases. Jakub