public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Ard Biesheuvel <ard.biesheuvel@linaro.org>
To: edk2-devel@lists.01.org, leif.lindholm@linaro.org, lersek@redhat.com
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Subject: [PATCH 0/2] ArmVirtPkg EmbeddedPkg: fix build for CLANG35/ARM
Date: Wed,  3 Aug 2016 10:21:02 +0200	[thread overview]
Message-ID: <1470212464-28071-1-git-send-email-ard.biesheuvel@linaro.org> (raw)

Currently, the ArmVirtQemuKernel and ArmVirtXen platforms will not build
for ARM when using CLANG35, due to the fact that the compiler emits
MOVT/MOVW pairs into objects that are used by the relocatable PrePi, and
such instruction pairs are not runtime relocatable in ELF (i.e., there are
no dynamic relocation types to describe them)

So fix this by selectively inhibiting the use of these pairs when building
these platforms for ARM using CLANG35

Ard Biesheuvel (2):
  EmbeddedPkg: make PrePiMemoryAllocationLib a SEC type library
  ArmVirtPkg ARM: make relocatable PrePi users build with CLANG35

 ArmVirtPkg/ArmVirtQemuKernel.dsc                                          | 8 ++++++++
 ArmVirtPkg/ArmVirtXen.dsc                                                 | 9 +++++++++
 EmbeddedPkg/Library/PrePiMemoryAllocationLib/PrePiMemoryAllocationLib.inf | 2 +-
 3 files changed, 18 insertions(+), 1 deletion(-)

-- 
2.7.4



             reply	other threads:[~2016-08-03  8:21 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-03  8:21 Ard Biesheuvel [this message]
2016-08-03  8:21 ` [PATCH 1/2] EmbeddedPkg: make PrePiMemoryAllocationLib a SEC type library Ard Biesheuvel
2016-08-03  9:56   ` Laszlo Ersek
2016-08-03 10:00     ` Ard Biesheuvel
2016-08-03 11:21       ` Laszlo Ersek
2016-08-03 12:50         ` Ard Biesheuvel
2016-08-03 13:07           ` Leif Lindholm
2016-08-03  8:21 ` [PATCH 2/2] ArmVirtPkg ARM: make relocatable PrePi users build with CLANG35 Ard Biesheuvel
2016-08-03 10:00   ` Laszlo Ersek
2016-08-03 10:02     ` Ard Biesheuvel
2016-08-03 11:19       ` Laszlo Ersek
2016-08-03 12:51         ` Ard Biesheuvel
2016-08-03 13:46 ` [PATCH 0/2] ArmVirtPkg EmbeddedPkg: fix build for CLANG35/ARM Ard Biesheuvel

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-list 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=1470212464-28071-1-git-send-email-ard.biesheuvel@linaro.org \
    --to=devel@edk2.groups.io \
    /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