From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by mx.groups.io with SMTP id smtpd.web10.51872.1680260631269215715 for ; Fri, 31 Mar 2023 04:03:51 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YfT7NRWc; spf=pass (domain: kernel.org, ip: 139.178.84.217, mailfrom: ardb@kernel.org) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8C268627F4 for ; Fri, 31 Mar 2023 11:03:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A8635C433AC for ; Fri, 31 Mar 2023 11:03:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680260629; bh=ZFWYT+JX9cOuQOZ6Fd/foVIIOVyroJhLq6PGM9+2CGA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=YfT7NRWc+l4XONRpQXI0lGie/i/ZFLgu/ABFzTwsztdS4U9OjK6FVV8ruAKbU24mh AnNQlDVbsYAp/Ss6NldAKr5cFk7p2uv/bEiLSFJbaiOBrOuAKdukrk6zhcGbZmwMKW /izL0Y5vSOfXKMcopIXx699XQqbFx/uri0WyEcrAGEJjt2E+XcO8tesqPDbzOLS9Uy Kzfc4CgkFf8UrYA1wXY2hVN7dQAUP8b7Z+dK9Q9vrBx59c9h9Is7CspKDC80OAJaCN dvmYqb6Mv6A7NBD9nRRNkc66ntYc9mbwc//JOZgEXSV2G7iiR1EofcDrnjaBRGsHHN /I8bHb2LGnN7Q== Received: by mail-lj1-f179.google.com with SMTP id q14so22587076ljm.11 for ; Fri, 31 Mar 2023 04:03:49 -0700 (PDT) X-Gm-Message-State: AAQBX9fREjSKGjTjsS7bo1CRJCbvp1zxempMBVib5fneQEHDBqMMlA4D sHB4QONHLry3bpgAMLiqEOSQSBOZu1vF1DNXyps= X-Google-Smtp-Source: AKy350agXQJZImCT7SAAl/QFFFEgVkbNi352gLv+LOC442KMLgf85OLksgYA1IKQFcPKDb8cynK3X8bw5Pwj6z4c6eM= X-Received: by 2002:a2e:8746:0:b0:2a5:fe8f:ddec with SMTP id q6-20020a2e8746000000b002a5fe8fddecmr4789944ljj.2.1680260627695; Fri, 31 Mar 2023 04:03:47 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "Ard Biesheuvel" Date: Fri, 31 Mar 2023 13:03:36 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [edk2-devel] [RFT PATCH v3 0/5] UefiCpuPkg, OvmfPkg: Simplify CpuExceptionHandlerLib To: =?UTF-8?Q?Marvin_H=C3=A4user?= Cc: "Ni, Ray" , devel@edk2.groups.io, Andrew Fish , "Kinney, Michael D" , "Liu, Zhiguang" , Rebecca Cran , Tom Lendacky Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, 31 Mar 2023 at 12:41, Marvin H=C3=A4user wrote= : > > Hi Ray, > > > On 31. Mar 2023, at 12:09, Ni, Ray wrote: > > > > =EF=BB=BFArd, > > What does "-read_only_relocs suppress" control? > > It controls whether relocs that target read-only segments yield a build e= rror or not. I think lld uses =E2=80=9C-z notext=E2=80=9D. > > > Linker doesn't produce relocation entries that modifies .text section s= ilently > > so the final .text just cannot run at all? > > Could you please rephrase? I=E2=80=99m not sure I understand, but I think= it=E2=80=99s important everyone understands the issues at play to make a g= ood judgment call. > As *I* understood it, it means suppress the *warning* not suppress the *relocation* But the resulting binaries are broken, so it doesn't really matter.