public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Albert ARIBAUD <albert.aribaud@free.fr>
To: u-boot@lists.denx.de
Subject: [U-Boot] [ARM]: File type for u-boot elf file
Date: Thu, 24 Feb 2011 11:57:32 +0100	[thread overview]
Message-ID: <4D66399C.9010201@free.fr> (raw)
In-Reply-To: <AANLkTinWoU5-cOLf+dN_cMn39vpf-ey_0_h7dK=AP80i@mail.gmail.com>

Hi Sughosh,

Le 24/02/2011 11:01, sughosh ganu a ?crit :
> 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.

You have already answered your own question: the move to relocatable 
executable caused the change you see.

I suspect the utility freaks out because it thinks the ELF cannot be 
made into a binary like it would previously, but actually the binary 
generation process did not change when we refactored the relocation -- 
maybe the utility would work on our relocatable ELFs with just the check 
for ELF type bypassed.

In any case, you should see with the makers of the utility how it should 
be updated to handle -pie generated elf files.

> -sughosh

Amicalement,
-- 
Albert.

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

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-24 10:01 [U-Boot] [ARM]: File type for u-boot elf file sughosh ganu
2011-02-24 10:57 ` Albert ARIBAUD [this message]
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
  -- strict thread matches above, loose matches on Subject: below --
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=4D66399C.9010201@free.fr \
    --to=albert.aribaud@free.fr \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox