• Arun Sharma's avatar
    [PATCH] ia64: make x86 shared programs work again · 6eef8162
    Arun Sharma authored
    > It looks like dynamic x86 binaries have a problem once again (or
    > still).  If I try to run any shared x86 binaries, I get:
    > 
    >       $ ls.x86
    >       ls.x86: error while loading shared libraries: librt.so.1: cannot map zero-fill pages: Error 14
    > 
    > Would someone take a look?
    
    We saw this behavior with 2.5.59 also. The attached work around should
    take care of the problem temporarily. Last time this happened, IA-32
    programs were doing mmaps, whose size was one page bigger than the
    size of the underlying file (even after rounding up the file size).
    
    I never got a chance to figure out why glibc was doing mmaps with the
    wrong size. Also, I failed to reproduce the problem with a more
    recent (RH 8.0) glibc.
    
    Which version of IA-32 glibc were you using ?
    6eef8162
sys_ia32.c 82.3 KB