public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Marvin Häuser" <mhaeuser@posteo.de>
To: devel@edk2.groups.io, ardb@kernel.org
Cc: "Shi, Steven" <steven.shi@intel.com>,
	"Yang, JiyangX" <jiyangx.yang@intel.com>,
	Ard Biesheuvel <ardb+tianocore@kernel.org>,
	Sami Mujawar <sami.mujawar@arm.com>,
	"Yao, Jiewen" <jiewen.yao@intel.com>,
	Supreeth Venkatesh <supreeth.venkatesh@arm.com>,
	Vitaly Cheptsov <vit9696@protonmail.com>
Subject: Re: [edk2-devel] [PATCH v1 1/1] StandaloneMmPkg: To support CLANGPDB build
Date: Thu, 14 Oct 2021 09:13:26 +0000	[thread overview]
Message-ID: <9139bc01-3cb1-fe05-c2f8-ea29fbbb1729@posteo.de> (raw)
In-Reply-To: <CAMj1kXHkMy_OX-ZC45WpOB3aoegTryT2H+0rwyw1cXnfrOZ8Lw@mail.gmail.com>

Hey Ard,

Thanks for commenting!

On 14.10.21 11:09, Ard Biesheuvel wrote:
> On Thu, 14 Oct 2021 at 11:08, Marvin Häuser <mhaeuser@posteo.de> wrote:
>> Hey Steven,
>>
>> As I said, I prefer my patch, but this would work too of course.
>> I talked about the PIE stuff with Ard before, so maybe he has an opinion
>> on this? :)
>>
>> (Small correction for my last e-mail, of course we are not *guaranteed*
>> there are *no* relocations in .text, but they'd all point to GOT (or
>> whatever else the target uses for PIE), and references will probably be
>> relative; for ARM architectures I remember Ard talking about specific
>> kinds of relocations being avoided entirely).
>>
> Hello all,
>
> As I understand it, we are talking about a native PE/COFF toolchain
> here that does not rely on GenFw for ELF to PE/COFF conversion, right?

Yep.

> If so, there is no way the self-relocation is going to work anyway, so
> whether we pass -fpie or not for AArch64 is immaterial here.

It's not quite, because with -fpie it errors (also maybe PE/COFF PIE 
will be supported some day?). We can also pass -fno-pie and have some 
other way to kill compilation for CLANGPDB ARM/AARCH64, but it must not 
just silently succeed when this is eventually supported.

Best regards,
Marvin

>
>
> 
>
>


  reply	other threads:[~2021-10-14  9:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-14  3:12 [PATCH v1 0/1] StandaloneMmPkg: To support CLANGPDB build jiyangx.yang
2021-10-14  3:12 ` [PATCH v1 1/1] " Jiyang Yang
2021-10-14  8:05   ` Marvin Häuser
2021-10-14  9:02     ` [edk2-devel] " Steven Shi
2021-10-14  9:08       ` Marvin Häuser
2021-10-14  9:09         ` Ard Biesheuvel
2021-10-14  9:13           ` Marvin Häuser [this message]
2021-10-14 13:14         ` Steven Shi

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=9139bc01-3cb1-fe05-c2f8-ea29fbbb1729@posteo.de \
    --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