Opened 16 years ago
Closed 16 years ago
#2404 closed task (fixed)
Command in Glibc instructions for changing the linker
| Reported by: | 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 , 16 years ago
| Milestone: | → 6.5 |
|---|
comment:2 by , 16 years ago
| Owner: | changed from to |
|---|
Note:
See TracTickets
for help on using tickets.

This should be combined with #2401