Bug 3384 - readelf displays shortened program interpreter path
Summary: readelf displays shortened program interpreter path
Status: RESOLVED FIXED
Alias: None
Product: binutils
Classification: Unclassified
Component: binutils (show other bugs)
Version: 2.17
: P2 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-18 16:49 UTC by Markus Fenske
Modified: 2006-10-29 19:19 UTC (History)
1 user (show)

See Also:
Host: i486-linux-gnu
Target: i686-pc-linux-gnu
Build: i486-linux-gnu
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Fenske 2006-10-18 16:49:40 UTC
Looks like the path is shortened to 63 chars. And BTW: Ignore the paths
(.../toolchains/b_i386-pc-linux-gnu/...). The host, target and build triplets
are correct.

Look at this:
iblue@ice:~/WorkingCopys/codename_c/src$ export | grep PATH
declare -x
PATH="/home/iblue/WorkingCopys/codename_c/src/b/toolchains/b_i386-pc-linux-gnu/bin:/bin:/usr/bin"
iblue@ice:~/WorkingCopys/codename_c/src$ echo "main(){}" > foo.c
iblue@ice:~/WorkingCopys/codename_c/src$ gcc foo.c
iblue@ice:~/WorkingCopys/codename_c/src$ readelf -l a.out | grep interpreter
      [Requesting program interpreter:
/home/iblue/WorkingCopys/codename_c/src/b/toolchains/b_i386-pc-]
iblue@ice:~/WorkingCopys/codename_c/src$ strings a.out
/home/iblue/WorkingCopys/codename_c/src/b/toolchains/b_i386-pc-linux-gnu/lib/ld-linux.so.2
__gmon_start__
libc.so.6
_IO_stdin_used
__libc_start_main
GLIBC_2.0
PTRh
QVht
[^_]
iblue@ice:~/WorkingCopys/codename_c/src$ ./a.out
iblue@ice:~/WorkingCopys/codename_c/src$
Comment 1 H.J. Lu 2006-10-23 17:24:03 UTC
A patch is posted at

http://sourceware.org/ml/binutils/2006-10/msg00256.html
Comment 2 H.J. Lu 2006-10-29 19:19:49 UTC
Fixed.