>>> On Tue, Apr 1, 2008 at  6:31 PM, in message
<[EMAIL PROTECTED]>, Warren Taylor
<[EMAIL PROTECTED]> 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?

Well, since Linux on System z is an ASCII operating system, I don't think 
that's what you want.  I ran some tests on my SLES10 SP1 system, and got this:
# readelf -x 1 /usr/bin/readelf

Hex dump of section '.interp':
  0x80000238 2f6c6962 2f6c6436 342e736f 2e3100   /lib/ld64.so.1.

# readelf -x 2 /usr/bin/readelf

Hex dump of section '.note.ABI-tag':
  0x80000248 00000004 00000010 00000001 474e5500 ............GNU.
  0x80000258 00000000 00000002 00000006 00000004 ................

 # readelf -x 3 /usr/bin/readelf

Hex dump of section '.note.SuSE':
  0x80000268 00000005 00000004 45537553 53755345 ........ESuSSuSE
  0x80000278 00000000 01010a01                   ........

 # readelf -x 6 /usr/bin/readelf

Hex dump of section '.dynstr':
  0x80000ad8 006c6962 646c2e73 6f2e3200 5f4a765f .libdl.so.2._Jv_
  0x80000ae8 52656769 73746572 436c6173 73657300 RegisterClasses.
  0x80000af8 5f5f676d 6f6e5f73 74617274 5f5f006c __gmon_start__.l
  0x80000b08 6962632e 736f2e36 00707574 63686172 ibc.so.6.putchar
  0x80000b18 00667363 616e6600 7374646f 75740073 .fscanf.stdout.s


So, I suspect your problem isn't character translation.  What, exactly, is the 
file you're trying to run this against?


Mark Post

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