From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web11.54403.1594028611759491344 for ; Mon, 06 Jul 2020 02:43:32 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ard.biesheuvel@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id F295130E; Mon, 6 Jul 2020 02:43:28 -0700 (PDT) Received: from [192.168.1.80] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 254953F71E; Mon, 6 Jul 2020 02:43:27 -0700 (PDT) Subject: Re: [edk2-devel] warning: Empty loadable segment detected To: devel@edk2.groups.io, lersek@redhat.com Cc: Liming Gao References: From: "Ard Biesheuvel" Message-ID: <2f69532c-7141-0b9e-026d-d2a647d138a1@arm.com> Date: Mon, 6 Jul 2020 12:43:22 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit On 7/6/20 11:39 AM, Laszlo Ersek via groups.io wrote: > Hi, > > I've just noticed the following warning in the build log: > >> objcopy: [...]: warning: Empty loadable segment detected, is this >> intentional ? > > The modules this is logged for are: > > - CapsuleRuntimeDxe > - CpuS3DataDxe > - EnrollDefaultKeys > - FaultTolerantWriteSmm > - IncompatiblePciDeviceSupport > - MonotonicCounterRuntimeDxe > - RealTimeClockRuntimeDxe > - XenIoPvhDxe > > I can't tell if this is a new symptom, or the only "new" thing is my > noticing of it. > > The warning is familiar, from commit 26ecc55c027d ("BaseTools IA32/X64: > prevent .eh_frame sections from being generated", 2015-08-13). > > I get the warnings in NOOPT_GCC48 builds of OVMF (Ia32X64, X64, and Xen > -- not in Ia32). > > Does someone have an idea what the warnings could be due to? > Could you share the output of 'readelf -a' for such a module?