From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mout02.posteo.de (mout02.posteo.de [185.67.36.66]) by mx.groups.io with SMTP id smtpd.web10.4632.1680865519180439908 for ; Fri, 07 Apr 2023 04:05:19 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@posteo.de header.s=2017 header.b=kEK5ON0+; spf=pass (domain: posteo.de, ip: 185.67.36.66, mailfrom: mhaeuser@posteo.de) Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 6F6C42405A9 for ; Fri, 7 Apr 2023 13:05:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1680865517; bh=a/MbgR9L2OYrEa9jAImtApak/k37W4SM5YPXX13pKFc=; h=From:Subject:Date:Cc:To:From; b=kEK5ON0+4ycv7+qBHNuTemeYm+8r6f/VcY6hF8VRt2syqX57OXIU+fEkxziwmuWgo z0BkwxgNz9BGnldEnfje3sODTMk0ByEPQmexCiwbS0MalVdCMVbyMaUSaeCIe0TAOd rn0zVh2y35Ko+eWWvmTpn89FPEGJ0YtMSD3TtGUgpz8hfyIJhNEPr7OHZTkCCnUg6V ClV/3yZfAPw8cm7hnmeQNfhwdDThfeG/BX3F4bUFvt9uAqpUXtOWntn6cFYiyeqZZh AEdaAg1avDY9r5bGUFa1YjxJJ8tFg9kFlTBwQ6JydNDMv2bp0OBfNCbTq3sPv3RPBg Iuuv0amZecTzA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PtFrp3LyDz9rxQ; Fri, 7 Apr 2023 13:05:14 +0200 (CEST) From: =?UTF-8?B?TWFydmluIEjDpHVzZXI=?= Message-Id: <846CCDAB-F758-4767-8588-17D65529415F@posteo.de> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.500.231\)) Subject: Re: [edk2-devel] Role of DLINK2_FLAGS and link-time option consistency Date: Fri, 7 Apr 2023 11:05:04 +0000 In-Reply-To: Cc: edk2-devel-groups-io , Rebecca Cran , Liming Gao , Bob Feng , "Chen, Christine" , "Rudolph, Patrick" , Lean Sheng Tan , Pedro Falcato , Vitaly Cheptsov , Leif Lindholm , Steven Shi To: Ard Biesheuvel References: <6DC21A1C-4321-499F-ACCD-D5C81D20DB11@posteo.de> Content-Type: multipart/alternative; boundary="Apple-Mail=_77CA1A49-2B89-4E5F-9979-3A4910F65494" --Apple-Mail=_77CA1A49-2B89-4E5F-9979-3A4910F65494 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On 7. Apr 2023, at 13:02, Ard Biesheuvel wrote: >=20 > IIRC DLINK2_FLAGS is mainly being used (in the GCC case) for passing > options that need to come after previous occurrences of the same > option with a different value, in order for the DLINK2 one to take > precedence. Thanks for the quick response! By that rationale, it should probably = apply to the 16-bit ASM linker step as well and the rest can remain = as-is (modulo that weird CLANGDWARF optimization situation)? --Apple-Mail=_77CA1A49-2B89-4E5F-9979-3A4910F65494 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
On 7. Apr = 2023, at 13:02, Ard Biesheuvel <ardb@kernel.org> wrote:

IIRC = DLINK2_FLAGS is mainly being used (in the GCC case) for = passing
options that need to = come after previous occurrences of the same
option with a different value, in order for = the DLINK2 one to take
precedence.

Thanks = for the quick response! By that rationale, it should probably apply to = the 16-bit ASM linker step as well and the rest can remain as-is (modulo = that weird CLANGDWARF optimization situation)?

= --Apple-Mail=_77CA1A49-2B89-4E5F-9979-3A4910F65494--