Opened 16 years ago

Closed 16 years ago

#2404 closed task (fixed)

Command in Glibc instructions for changing the linker

Reported by: chris@… Owned by: Matthew Burgess
Priority: normal Milestone: 6.5
Component: Book Version: SVN
Severity: normal Keywords:
Cc:

Description

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')

Change History (3)

comment:1 by bdubbs@…, 16 years ago

Milestone: 6.5

This should be combined with #2401

comment:2 by Matthew Burgess, 16 years ago

Owner: changed from lfs-book@… to Matthew Burgess

comment:3 by Matthew Burgess, 16 years ago

Resolution: fixed
Status: newclosed

Fixed in r8900.

Note: See TracTickets for help on using tickets.