Bug 124994

Summary: /lib/ld-linux.so.2 symlink needed for ldd w/ ia32 apps
Product: Red Hat Enterprise Linux 3 Reporter: Greg Edwards <edwardsg>
Component: glibcAssignee: Jakub Jelinek <jakub>
Status: CLOSED ERRATA QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0CC: jbarnes
Target Milestone: ---   
Target Release: ---   
Hardware: ia64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-10-25 14:57:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 126674    

Description Greg Edwards 2004-06-01 20:38:00 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux ia64; en-US; rv:1.8a2)
Gecko/20040521 Firefox/0.8.0+

Description of problem:
/usr/bin/ldd contains:

RTLDLIST="/lib/ld-linux-ia64.so.2 /lib/ld-linux.so.2"

---

On ia64, /lib/ld-linux.so.2 should be a symlink to 
/emul/ia32-linux/lib/ld-linux.so.2 so ldd will work for ia32-compiled
apps.  Otherwise, the behavior is:

$ file setup
setup: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for
GNU/Linux 2.0.0, dynamically linked (uses shared libs), stripped

$ ldd setup
        not a dynamic executable

With the symlink in place, the output is correct:

$ ldd setup
        libdl.so.2 => /lib/libdl.so.2 (0x40034000)
        libX11.so.6 => not found
        libpthread.so.0 => /lib/tls/libpthread.so.0 (0x40038000)
        libm.so.6 => /lib/tls/libm.so.6 (0x40048000)
        libc.so.6 => /lib/tls/libc.so.6 (0x4006c000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)


Version-Release number of selected component (if applicable):
glibc-2.3.2-95.20

How reproducible:
Always

Steps to Reproduce:
1. Run ldd on an ia32 app on an RHEL AS 3 Update 2 ia64 box
2.
3.
    

Additional info:

Comment 1 Jakub Jelinek 2004-10-25 14:57:33 UTC
glibc-2.3.2-95.27 and above have:
RTLDLIST="/lib/ld-linux-ia64.so.2 /emul/ia32-linux/lib/ld-linux.so.2"
in /usr/bin/ldd.