Warren Taylor wrote:
readelf -x 1 <filename> produces

Hex dump of section '.text':
  0x00000000 582080b8 1a284130 00481841 18530e24 X ...(A0.H.A.S.$
  0x00000010 c0200000 c905d200 20000010 412001b0 . ...... ...A ..
  0x00000020 483080c0 41408068 41500050 0e244130 [EMAIL PROTECTED]
  0x00000030 00014120 03e858f0 80bcae30 00124780 ..A ..X....0..G.
  0x00000040 80c247d0 804e46f0 80464620 8036b222 ..G..NF..FF .6."
  0x00000050 00408940 00028840 001e8200 80600000 [EMAIL PROTECTED]@[EMAIL 
PROTECTED]
  0x00000060 000a0000 80dead00 00020001 80000000 ................
  0x00000070 00000000 00fffff0 00020001 80000000 ................

As you can see, the display is showing ASCII interpretations of the hex code. 
This is assembled as 390.

Is there any way I can get the display area to show me the EBCDIC translation?



[EMAIL PROTECTED] ~]$ readelf -x 2 /bin/bash

Hex dump of section '.note.ABI-tag':
0x08047148 00554e47 00000001 00000010 00000004 ............GNU.
0x08047158 00000009 00000006 00000002 00000000 ................
[EMAIL PROTECTED] ~]$ readelf -x 2 /bin/bash| awk '!/ 0x/ {print} /
0x/ {LINEA=substr($0,1,
length($0)-16);LINEB=substr($0,length($0)-15);command ="tr \".\"
\"K\"";print LINEB |& command;close(command, "to");command |& getline
LINEC;close(command);command="iconv -t ISO8859-1 -f IBM-1047 -";print
LINEC |& command;close(command, "to"); command |& getline
LINED;close(command);print LINEA LINED}'

Hex dump of section '.note.ABI-tag':
0x08047148 00554e47 00000001 00000010 00000004 ............?+?.
0x08047158 00000009 00000006 00000002 00000000 ................
[EMAIL PROTECTED] ~]$

:-)

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to