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

> >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 */

        Jakub


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
--
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to