From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-in6.apple.com (mail-out6.apple.com [17.151.62.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 66FBA21A08D66 for ; Thu, 25 May 2017 09:14:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; d=apple.com; s=mailout2048s; c=relaxed/simple; q=dns/txt; i=@apple.com; t=1495728871; h=From:Sender:Reply-To:Subject:Date:Message-id:To:Cc:MIME-version:Content-type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-reply-to:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=lnBI0LY2zVZF2d83NPt37XQz9Qoe0hPEHg256gXTd/8=; b=wmuWZjOy0NktPJlR/wxmuDm/f6z4ooFxJHia7XpRBQWrJMG/SNtoyqyG2YzDFzBg G1/BcDZy8QBQO9VIWmr5PCduSFjoW9cOzojbP2NTU0C46aLfUhCJ68Ef7zYtz2Ab QhslMwQSeKVs8zB45PPrJau0caPU4Ouqv742kQbB6yRymkuh3T24X15fL57x15fG WfrAgIp1MQm9d6gKmDSUKwkS6pAKZhC/WNHdnYjdLKNsoWl7yDXWszl1oP+oFX/A 5AyMi8li3KOo1gz3cdlZP/l6sLbuZOv7vcLBvSX5ZYxSc6J12EUpXPCqY1ptNsV+ tzaos2oDCBAV2G2AwyNL5w==; Received: from relay6.apple.com (relay6.apple.com [17.128.113.90]) (using TLS with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail-in6.apple.com (Apple Secure Mail Relay) with SMTP id 9E.F8.24649.7E207295; Thu, 25 May 2017 09:14:31 -0700 (PDT) X-AuditID: 11973e15-f22c49a000006049-e3-592702e7b72a Received: from nwk-mmpp-sz13.apple.com (nwk-mmpp-sz13.apple.com [17.128.115.216]) by relay6.apple.com (Apple SCV relay) with SMTP id E8.68.09762.6E207295; Thu, 25 May 2017 09:14:30 -0700 (PDT) MIME-version: 1.0 Received: from [17.153.39.244] by nwk-mmpp-sz13.apple.com (Oracle Communications Messaging Server 8.0.1.2.20170210 64bit (built Feb 10 2017)) with ESMTPSA id <0OQI00MA7NS55Z00@nwk-mmpp-sz13.apple.com>; Thu, 25 May 2017 09:14:30 -0700 (PDT) Sender: afish@apple.com From: Andrew Fish Message-id: <3B704D92-EFEF-4F68-92C1-BE3CD073368D@apple.com> Date: Thu, 25 May 2017 09:14:29 -0700 In-reply-to: <60f3303b-c333-101d-b6e5-806ab85075a9@redhat.com> Cc: Mike Kinney , Ard Biesheuvel , "Wu, Hao A" , "edk2-devel@lists.01.org" , "Fan, Jeff" To: Laszlo Ersek References: <1495581673-10788-1-git-send-email-michael.d.kinney@intel.com> <60f3303b-c333-101d-b6e5-806ab85075a9@redhat.com> X-Mailer: Apple Mail (2.3273) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrMLMWRmVeSWpSXmKPExsUi2FAYpfucST3S4EgXm8X/D7sZLfYcOsps cfXWLyaLk+uXMFosO7aDxaKj4x+TA5vH4j0vmTzuXNvD5tE9+x+Lx/t9V9kCWKK4bFJSczLL Uov07RK4Ml5cnMxScKy0om/2FZYGxgtpXYycHBICJhLv3rezdDFycQgJrGaSmDb/JxtM4sWj Z0wQiUOMEk37ZjGDJHgFBCV+TL7HAmIzC4RJ/FvSxwhR9JVR4sDKa0wgCWEBcYl3ZzaBNbAJ KEusmP+BHaLZRmLKlT2MEDXRElevvQKzWQRUJRatPAVWwylgJzFp8x9WiAXXGSVWnCsCsUUE VCRmT3gAddFsVolLvb2MEKfKStyafYkZJCEh8J5Non/FT/YJjEKzkFw7C8m1ELaWxPdHrUBx DiBbXuLgeVmIsKbEs3uf2CFsbYkn7y6wLmBkW8UolJuYmaObmWeml1hQkJOql5yfu4kRFEvT 7UR3MJ5ZZXWIU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6eS7s2RL3z6rR7 cSNRiaU4I9FQi7moOBEAKGSpAfACAAA= X-Content-Filtered-By: Mailman/MimeDel 2.1.22 Subject: Re: [Patch] SourceLevelDebugPkg/SecPeiDebugAgentLib: Fix duplicate symbol X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 May 2017 16:14:31 -0000 Content-Type: text/plain; CHARSET=US-ASCII Content-Transfer-Encoding: 7BIT > On May 25, 2017, at 9:08 AM, Laszlo Ersek wrote: > > On 05/25/17 03:47, Kinney, Michael D wrote: >> Andrew, >> >> I think I have found an alternate fix for this XCODE5 specific >> build failure. Since there appears to be a difference in the >> linker behavior between MSFT/GCC/XCODE tool chains, I reviewed >> the 'ld' command line options used in XCODE5 tool chain in >> tools_def.txt. >> >> There is a flag set call '-all_load'. The description of this >> flag is 'Loads all members of static archive libraries.'. >> >> I tried removing this flag from the XCODE5 specific SLINK_FLAGS >> and DLINK_FLAGS statements in tools_def.txt, and the duplicate >> symbol build failure is no longer present. I am able to build >> and boot OVMF with XCODE5 with -D SOURCE_DEBUG_ENABLE flag set. >> >> This seems to make XCODE5 linker behavior match the MSFT and GCC >> linker behavior. >> >> Do you know why '-all_load' is used in XCODE5 and what impacts >> there may be from removing it? > > Please don't remove -all_load from there; instead we should figure out > if the same can be brought to MSFT and GCC. > Not to mention I was told by the Xcode linker developer that -all_load was required to ensure in all cases the Mach-O produced would be compatible with conversion to PE/COFF. Thanks, Andrew Fish > The error message that XCODE5 emitted caught a real bug (undefined > behavior according to ISO C, see my previous email), and so we should > keep that detection enabled (we should even extend it to other > toolchains, if that's possible). > > As for docs, I found this: > > http://www.manpages.info/macosx/ld.1.html > >> -all_load >> Loads all members of static archive libraries. This option does >> not apply to dynamic shared libraries. > > > Thanks > Laszlo