lfs@debian:~$ /usr/bin/readelf -e /tools/bin/ls | grep interp
bash: /tools/bin/grep: No such file or directory

lfs@debian:~$ /usr/bin/readelf -e /tools/bin/ls | grep interp
bash: /tools/bin/grep: No such file or directory

so it seems /tools was deleted. I thought ls might be in /usr/bin but it
isn't.
Then I figured out how to run the readelf command! su
As  can be seen here they are there but can't see them from user lfs.

lfs@debian:~$ /usr/bin/readelf -e /tools/bin/ls | grep interp
bash: /tools/bin/grep: No such file or directory
lfs@debian:~$ ls /tools/bin
bash: /tools/bin/ls: No such file or directory
lfs@debian:~$ su
Password:
root@debian:/home/lfs# ls
history.txt
root@debian:/home/lfs# /usr/bin/readelf -e /tools/bin/ls | grep interp
  [ 1] .interp           PROGBITS         0000000000400200  00000200
      [Requesting program interpreter: /tools/lib64/ld-linux-x86-64.so.2]
   01     .interp
   02     .interp .note.ABI-tag .hash .dynsym .dynstr .gnu.version
.gnu.version_r .rela.dyn .rela.plt .init .plt .text .fini .rodata
.eh_frame_hdr .eh_frame
root@debian:/home/lfs# ls /tools/bin
[      infocmp stty
addr2line     infotocap sum
ar      install sync
as      install-info tabs
awk      join tac
base64      kill tail
basename      ld tar
bash      ld-new tclsh
bashbug       ld.bfd tclsh8.6
bunzip2       ldd tee
bzcat      link test
bzcmp      ln texi2any
bzdiff      locale texi2dvi
bzegrep       localedef texi2pdf
bzfgrep       locate texindex
bzgrep      logname tic
bzip2      ls timeout
bzip2recover  m4 toe
bzless      make touch
bzmore      makedb tput
c++      makeinfo tr
c++filt       md5sum true
captoinfo     mkdir truncate
cat      mkfifo tset
catchsegv     mknod tsort
cc      mktemp tty
chcon      msgfmt tzselect
checkmk       msgmerge uname
chgrp      mtrace uncompress
chmod      mv unexpand
chown      ncursesw6-config uniq
chroot      nice unlink
cksum      nl updatedb
clear      nm uptime
cmp      nohup users
comm      nproc vdir
cp      numfmt wc
cpp      objcopy who
csplit      objdump whoami
cut      od x86_64-lfs-linux-gnu-addr2line
date      oldfind x86_64-lfs-linux-gnu-ar
dd      paste x86_64-lfs-linux-gnu-as
df      patch x86_64-lfs-linux-gnu-c++
diff      pathchk x86_64-lfs-linux-gnu-c++filt
diff3      pcprofiledump x86_64-lfs-linux-gnu-cpp
dir      pdftexi2dvi x86_64-lfs-linux-gnu-elfedit
dircolors     perl x86_64-lfs-linux-gnu-g++
dirname       pinky x86_64-lfs-linux-gnu-gcc
du      pldd x86_64-lfs-linux-gnu-gcc-5.2.0
echo      pod2man x86_64-lfs-linux-gnu-gcc-ar
egrep      pod2texi x86_64-lfs-linux-gnu-gcc-nm
elfedit       pr x86_64-lfs-linux-gnu-gcc-ranlib
env      printenv x86_64-lfs-linux-gnu-gcov
expand      printf x86_64-lfs-linux-gnu-gcov-tool
expect      ptx x86_64-lfs-linux-gnu-gprof
expr      pwd x86_64-lfs-linux-gnu-ld
factor      ranlib x86_64-lfs-linux-gnu-ld.bfd
false      readelf x86_64-lfs-linux-gnu-nm
fgrep      readlink x86_64-lfs-linux-gnu-objcopy
file      realpath x86_64-lfs-linux-gnu-objdump
find      reset x86_64-lfs-linux-gnu-ranlib
fmt      rm x86_64-lfs-linux-gnu-readelf
fold      rmdir x86_64-lfs-linux-gnu-size
g++      rpcgen x86_64-lfs-linux-gnu-strings
gawk      runcon x86_64-lfs-linux-gnu-strip
gawk-4.1.3    runtest x86_64-unknown-linux-gnu-c++
gcc      sdiff x86_64-unknown-linux-gnu-g++
gcc-ar      sed x86_64-unknown-linux-gnu-gcc
gcc-nm      seq x86_64-unknown-linux-gnu-gcc-5.2.0
gcc-ranlib    sh x86_64-unknown-linux-gnu-gcc-ar
gcov      sha1sum x86_64-unknown-linux-gnu-gcc-nm
gcov-tool     sha224sum x86_64-unknown-linux-gnu-gcc-ranlib
gencat      sha256sum xargs
getconf       sha384sum xgettext
getent      sha512sum xtrace
gprof      shred yes
grep      shuf zcat
groups      size zcmp
gunzip      sleep zdiff
gzexe      sort zegrep
gzip      sotruss zfgrep
head      split zforce
hostid      sprof zgrep
hostname      stat zless
iconv      stdbuf zmore
id      strings znew
igawk      strip
root@debian:/home/lfs#



On Thu, Nov 5, 2015 at 9:20 AM, William Harrington <[email protected]>
wrote:

> On Thu, November 5, 2015 12:39, Michael Havens wrote:
> > On Wed, Nov 4, 2015 at 5:58 PM, William Harrington <
> [email protected]>
> > wrote:
> >>
> >> run the following, your interpreter may be wrong or missing:
> >>
> >> readelf -e /tools/bin/ls | grep interp
> >>
> >
> > ~$ readelf -e /tools/bin/ls | grep interp
> > bash: /tools/bin/readelf: No such file or directory
> > bash: /tools/bin/grep: No such file or directory
> >
> >
>
> Of course if readelf doesn't work from /tools/bin you'll need to use
> readelf from the host, probably in /usr/bin
>
> /usr/bin/readelf -e /tools/bin/ls | grep interp
>
> Most likely the binaries won't run because the /tools link is missing or
> the interpreter is missing.
>
> Sincerely,
>
> William Harrington
> --
> http://lists.linuxfromscratch.org/listinfo/lfs-support
> FAQ: http://www.linuxfromscratch.org/blfs/faq.html
> Unsubscribe: See the above information page
>
> Do not top post on this list.
>
> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
> A: Top-posting.
> Q: What is the most annoying thing in e-mail?
>
> http://en.wikipedia.org/wiki/Posting_style
>



-- 
:-)~MIKE~(-:
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style

Reply via email to