From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by mx.groups.io with SMTP id smtpd.web11.7104.1634202606679655250 for ; Thu, 14 Oct 2021 02:10:06 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=u/qQ6tfT; spf=pass (domain: kernel.org, ip: 198.145.29.99, mailfrom: ardb@kernel.org) Received: by mail.kernel.org (Postfix) with ESMTPSA id 0F85D610EA for ; Thu, 14 Oct 2021 09:10:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634202606; bh=s9rW6zJMKrbYHHeVmb5rrE4z3rwc0QnnBvQEt2qCS8I=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=u/qQ6tfTpz9SoWDhZJVn9H4SdSQjpsh60EWXK/Kvd1B/JTIzm9Pbq5qf+mJrCCaZp zUJOSV3g6aClM9sRAYtaqosgc9uyLdUXcVrvdFhkRY8K/n4toy1q8/yclJWkJlKSSC FpAUINOc92YDtxiYyGpmSW5vcTpI4SrxrLN91CqCqust7z3s4Nte/B/rRJ6x1KjU+Y IYMZhv2NishrrllgmvvwQi1KlbzCHU7c3UgS5HV0AgIaPlrSwgioRFtXZ03z9Ls+gv fOh0adsXo+Hgv77smgilTFfYLWzvJZAhg+303/batWhFZ/E6FwXh+U6xu24a3t/Yl2 It8wf9KkRTVsA== Received: by mail-oo1-f50.google.com with SMTP id u5-20020a4ab5c5000000b002b6a2a05065so1687817ooo.0 for ; Thu, 14 Oct 2021 02:10:06 -0700 (PDT) X-Gm-Message-State: AOAM532TtrvmcBDelRTG3IhwmF90ulwIx3gcETsDNlPnGEpnrWyZYfIJ 1vxN0qq7lQwSkZ7ODi9mkkjGZfplhFTFImtUNsQ= X-Google-Smtp-Source: ABdhPJyQTsmFz0Tx1IMbKYUdNQS+PZN6R2faznClzbLKIw7WHt2pdX8Xb+NOxU71S9hw5j6L8xjjr6tks5fX44syiJc= X-Received: by 2002:a4a:4fcf:: with SMTP id c198mr3191713oob.26.1634202605280; Thu, 14 Oct 2021 02:10:05 -0700 (PDT) MIME-Version: 1.0 References: <20211014031235.1839-1-jiyangx.yang@intel.com> <20211014031235.1839-2-jiyangx.yang@intel.com> <71754204-38e7-09c5-3d83-ba090d393552@posteo.de> <62e21365-66cf-353e-b139-cb8c64aa4fd7@posteo.de> In-Reply-To: <62e21365-66cf-353e-b139-cb8c64aa4fd7@posteo.de> From: "Ard Biesheuvel" Date: Thu, 14 Oct 2021 11:09:53 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [edk2-devel] [PATCH v1 1/1] StandaloneMmPkg: To support CLANGPDB build To: =?UTF-8?Q?Marvin_H=C3=A4user?= Cc: "Shi, Steven" , "devel@edk2.groups.io" , "Yang, JiyangX" , Ard Biesheuvel , Sami Mujawar , "Yao, Jiewen" , Supreeth Venkatesh , Vitaly Cheptsov Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 14 Oct 2021 at 11:08, Marvin H=C3=A4user 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? 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.