#2404: Command in Glibc instructions for changing the linker
--------------------------------+-------------------------------------------
 Reporter:  ch...@…             |       Owner:  lfs-b...@…                   
     Type:  task                |      Status:  new                          
 Priority:  normal              |   Milestone:                               
Component:  Book                |     Version:  SVN                          
 Severity:  normal              |    Keywords:                               
--------------------------------+-------------------------------------------
 On the Chapter 6 Glibc page, there is this command:

 DL=$(readelf -l /bin/sh | grep interpreter | \
 awk '{print $4}' | sed -e 's@/tools@@' -e 's...@]$@@')

 It seems somewhat inefficient to pipe the readelf command through 3 more
 filters, when the whole operation could be done with, say, a single sed
 command. For example:

 DL=$(readelf -l /bin/sh | sed -n 's...@.*interpret.*/tools\(.*\)]...@\1@p')

-- 
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/2404>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to