Jakub Jelinek wrote:

On Tue, Jul 13, 2004 at 10:39:00AM -0700, Ian Romanick wrote:

Yeah, there's a lot of stuff in the Redhat RPMs that aren't in my patch yet. I'm trying to take things in small steps to make it easier to find binary compatability problems as they crop up. The other part of the problem is that I don't fully understand a lot of this stuff. I haven't gotten down to this level of linker magic in a long, long time. Can you recommend any good reading material on the subject?

http://people.redhat.com/drepper/dsohowto.pdf http://people.redhat.com/drepper/tls.pdf http://people.redhat.com/jakub/prelink.pdf http://www.gzlinux.org/docs/category/dev/c/linkerandloader.pdf http://www.caldera.com/developers/devspecs/gabi41.pdf http://www.caldera.com/developers/devspecs/abi386-4.pdf http://docs.sun.com/db/doc/816-1386 http://people.redhat.com/drepper/symbol-versioning

Thanks! Looks like I've got plenty of reading material for the plane ride to DDC. :)


If you build e.g. libGL.so.1 with a requirement for kernel 2.4.20 or later,
and use LD_ASSUME_KERNEL=2.4.19 in the environment, the dynamic linker will
skip this shared library and continue searching for another libGL.so.1.
See http://people.redhat.com/drepper/assumekernel.html for details.

About 15 people sent me e-mail with that link. :) The one thing I didn't see was how to put that note in a library. Is there some special section attributes in the source or is there some linker magic?

Assemble and link in: .section ".note.ABI-tag", "a" .p2align 2 .long 1f - 0f /* name length */ .long 3f - 2f /* data length */ .long 1 /* note type */ 0: .asciz "GNU" /* vendor name */ 1: .p2align 2 2: .long 0 /* note data: the ABI tag */ .long 2,4,20 /* Or whatever other kernel version you wish */ 3: .p2align 2 /* pad out section */

Hmm...it sure seems like it should be possible to have ld do this for you. Have an option like '--require-abi 2.4.20' automatically insert this code.





------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click -- _______________________________________________ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to