All of lore.kernel.org
 help / color / mirror / Atom feed
From: sughosh ganu <urwithsughosh@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [ARM]: File type for u-boot elf file
Date: Thu, 24 Feb 2011 15:31:38 +0530	[thread overview]
Message-ID: <AANLkTinWoU5-cOLf+dN_cMn39vpf-ey_0_h7dK=AP80i@mail.gmail.com> (raw)

hi Albert,
I am facing an issue with generation of AIS signed binaries for hawkboard.
The aisgen utility takes the u-boot elf file as input and generates a ais
binary, which is the file format recognised by the hawkboard's RBL(rom
bootloader). After the relocation support for ARM, the elf file generated
has file type as 'DYN (shared object)'. With this, the aisgen tool rejects
the file as not being an elf file.

Can you please tell me what could have caused this change. I compiled u-boot
for a powerpc board, and found that the file type in that case is 'ELF
Executable'. Is there any specific reason why the file type has changed for
ARM, as powerpc also supports relocation.

sughosh at Hardy:/tmp/u-boot$
/home/sughosh/hawk/tools/arm-2009q3/bin/arm-none-linux-gnueabi-readelf -h
u-boot
ELF Header:
  Magic:   7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
  Class:                             ELF32
  Data:                              2's complement, little endian
  Version:                           1 (current)
  OS/ABI:                            UNIX - System V
  ABI Version:                       0
  Type:                              DYN (Shared object file)
  Machine:                           ARM
  Version:                           0x1
  Entry point address:               0xc1080000
  Start of program headers:          52 (bytes into file)
  Start of section headers:          488968 (bytes into file)
  Flags:                             0x5000002, has entry point, Version5
EABI
  Size of this header:               52 (bytes)
  Size of program headers:           32 (bytes)
  Number of program headers:         2
  Size of section headers:           40 (bytes)
  Number of section headers:         24
  Section header string table index: 21

-sughosh

             reply	other threads:[~2011-02-24 10:01 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-24 10:01 sughosh ganu [this message]
2011-02-24 10:57 ` [U-Boot] [ARM]: File type for u-boot elf file Albert ARIBAUD
2011-02-24 11:08   ` sughosh ganu
2011-02-24 11:28     ` Albert ARIBAUD
2011-02-24 12:29       ` sughosh ganu
2011-02-24 13:26         ` Detlev Zundel
2011-02-25  7:18           ` Albert ARIBAUD
2011-02-25 13:41             ` Ben Gardiner
2011-02-25 14:55               ` sughosh ganu
2011-02-25 17:26                 ` Albert ARIBAUD
2011-02-27 16:32                   ` Wolfgang Denk
2011-02-28  1:49                     ` Andrew Dyer
2011-02-28  6:35                       ` Wolfgang Denk
2011-12-05  9:19 rojan
2011-12-05 16:12 ` Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTinWoU5-cOLf+dN_cMn39vpf-ey_0_h7dK=AP80i@mail.gmail.com' \
    --to=urwithsughosh@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.