Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAJAsdNh2w-dLfz99vphz6XECzCyaW+3EMmBaa2xofJhRiRQBiQ@mail.gmail.com>
Date: Mon, 20 May 2013 18:11:28 +0200
From: Dániel Bali <balijanosdaniel@...il.com>
To: john-dev@...ts.openwall.com
Subject: Re: AMD GCN ISA development

Hello!

2013/5/19 Alexander Cherepanov <cherepan@...me.ru>
>
>
> objcopy --add-section etc.?
>
>
I tried this, but after trying to remove the .text section, so that I can
add it later, objcopy removed 4 sections from the binary. Here is what I
tried:

daniel@...l:~/gpu_dev/gcn_isa_sample$ objcopy -I elf32-little
--remove-section .text sample_42.bin sample_copy.bin
BFD: BFD (GNU Binutils for Ubuntu) 2.22 assertion fail ../../bfd/elf.c:1656
BFD: sample_42.bin: warning: Empty loadable segment detected, is this
intentional ?

daniel@...l:~/gpu_dev/gcn_isa_sample$ readelf -S sample_42.bin
There are 10 section headers, starting at offset 0x124:

Section Headers:
  [Nr] Name              Type            Addr     Off    Size   ES Flg Lk
Inf Al
  [ 0]                   NULL            00000000 000000 000000 00      0
0  0
  [ 1] .shstrtab         STRTAB          00000000 0000fc 000028 00      0
0  0
  [ 2] .text             PROGBITS        00000000 0004c8 000880 00      0
0  0
  [ 3] .data             PROGBITS        00000000 000d48 001280 1280      0
  0  0
  [ 4] .symtab           SYMTAB          00000000 001fc8 000050 10      5
1  0
  [ 5] .strtab           STRTAB          00000000 002018 000016 00      0
0  0
  [ 6] .text             PROGBITS        00000000 0025d2 000068 00      0
0  0
  [ 7] .data             PROGBITS        00000000 00263a 001280 1280      0
  0  0
  [ 8] .symtab           SYMTAB          00000000 0038ba 000050 10      9
1  0
  [ 9] .strtab           STRTAB          00000000 00390a 000016 00      0
0  0
Key to Flags: (...)
daniel@...l:~/gpu_dev/gcn_isa_sample$ readelf -S sample_copy.bin
There are 6 section headers, starting at offset 0x25d8:

Section Headers:
  [Nr] Name              Type            Addr     Off    Size   ES Flg Lk
Inf Al
  [ 0]                   NULL            00000000 000000 000000 00      0
0  0
  [ 1] .data             PROGBITS        00000000 0000b4 001280 1280      0
  0  1
  [ 2] .data             PROGBITS        00000000 001334 001280 1280      0
  0  1
  [ 3] .shstrtab         STRTAB          00000000 0025b4 000021 00      0
0  1
  [ 4] .symtab           SYMTAB          00000000 0026c8 000070 10      5
7  4
  [ 5] .strtab           STRTAB          00000000 002738 000015 00      0
0  1
Key to Flags: (...)


Is this because I'm passing a wrong ELF format to objcopy? I tried every
possible elf format and I always get the same error message.

Regars,
Daniel

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.