All of lore.kernel.org
 help / color / mirror / Atom feed
From: Heinrich Schuchardt <xypron.glpk@gmx.de>
To: u-boot@lists.denx.de
Subject: Sections .dynamic and .dynsym in UEFI binaries
Date: Sat, 29 Aug 2020 10:31:23 +0200	[thread overview]
Message-ID: <56072abc-6add-c343-9472-e505ecd1a4b7@gmx.de> (raw)

Hello Simon,

with commit c7ae3dfdccc1 ("efi: Add support for a hello world test
program") you added section .dynamic and .dynsym to generated UEFI binaries.

It is unclear to me why those sections should be needed. According to
https://docs.oracle.com/cd/E23824_01/html/819-0690/chapter6-42444.html
section .dynamic is only used for dynamic linking.

On RISC-V inclusion of .dynsym leeds to a file that is longer then the
value of SizeOfImage in the optional header.

On x86 and x86_64 we have a general problem that SizeOfImage does not
match the actual file size.

Best regards

Heinrich

             reply	other threads:[~2020-08-29  8:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-29  8:31 Heinrich Schuchardt [this message]
2020-08-29 17:19 ` Sections .dynamic and .dynsym in UEFI binaries Simon Glass

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=56072abc-6add-c343-9472-e505ecd1a4b7@gmx.de \
    --to=xypron.glpk@gmx.de \
    --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.