• Paolo \'Blaisorblade\' Giarrusso's avatar
    [PATCH] uml: fix symbol conflict in linking · 08f87ca1
    Paolo \'Blaisorblade\' Giarrusso authored
    Since arch/um/kernel/tt/unmap_fin.o is linked statically, it could contain
    some symbols also contained in the rest of vmlinux; on some systems, this
    actually happens (due to some glibc differences).
    
    Since that file *must* be linked statically and then relinked (its code must
    remap the whole .text area except the section it is contained in during UML
    startup), we cannot change this.  So, we use objcopy to turn all symbols into
    local ones except for switcheroo(), which is the only function actually
    defined in the source (the other ones are brought in during linking).
    
    This shouldn't hurt other systems, while improving the behaviour on affected
    ones (there is still another issue I'm trying to fix).  And it is logically
    always needed (i.e., without this UML has just happened to work until now).
    Signed-off-by: default avatarPaolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    08f87ca1
Makefile 913 Bytes