Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CA+TsHUBfdon7PgXjS0c62t7hVzcsSUG30XVzEOzsNupgY8terQ@mail.gmail.com>
Date: Wed, 15 May 2013 17:56:34 +0530
From: Sayantan Datta <std2048@...il.com>
To: john-dev@...ts.openwall.com
Subject: Warning: gcn ISA dissasembler partially broken on any driver released
 last year and fully broken on catalyst 13.1

Hello everyone,

I just found out that for disassembly of a long kernel, the .isa file cuts
the assembly dump short without including most of the instructions for
drivers released last year. Although I had to find this out the hard way
,but others have found this bug much earlier.
http://devgurus.amd.com/message/1282653#1282653
Remember that ,every GCN program must end with *s_endpgm* otherwise there
is some problem with ISA dump.

As per Realhet, there is a bigger newborn problem -> -save-temp is broken
in 13.4 with binary kernels. So, I installed catalyst 13.1 driver. Although
-save-temp works with 13.1 , ISA disassembler is fully broken. We only have
working IL disassembler on 13.1

Last but not the least, the binary format has changed since catalyst 13.1.
As a result the previously generated binaries aren't working with the new
driver.  Also the build option "-fno-bin-llvmir" is producing errors on
catalyst 13.1. One has to remove that section manually.

New format:
DES_bs_kernel0.bin:     file format elf32-little

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .llvmir       000877b8  00000000  00000000  00000128  2**0
                  CONTENTS, READONLY
  1 .comment      0000007a  00000000  00000000  000878e0  2**0
                  CONTENTS, READONLY
  2 .rodata       0000020b  00000000  00000000  0008795a  2**0
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  3 .text         00018c72  00000000  00000000  00087b65  2**0
                  CONTENTS, ALLOC, LOAD, READONLY, CODE

Old Format:
DES_bs_kernel0.bin:     file format elf32-little

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .rodata       0000020b  00000000  00000000  000000f8  2**0
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  1 .text         0005e3b0  00000000  00000000  00000303  2**0
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  2 .comment      0000003e  00000000  00000000  0005e6b3  2**0
                  CONTENTS, READONLY

Regards,
Sayantan

Content of type "text/html" skipped

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.