From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: None (no SPF record) identity=mailfrom; client-ip=2a00:1450:400c:c0c::242; helo=mail-wr0-x242.google.com; envelope-from=pete@akeo.ie; receiver=edk2-devel@lists.01.org Received: from mail-wr0-x242.google.com (mail-wr0-x242.google.com [IPv6:2a00:1450:400c:c0c::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id E8485210D43A2 for ; Fri, 22 Jun 2018 03:33:04 -0700 (PDT) Received: by mail-wr0-x242.google.com with SMTP id w10-v6so6196056wrk.9 for ; Fri, 22 Jun 2018 03:33:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akeo-ie.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=2CYvg/qm3/1K1aMaGerBIHVnqjYQeR9oX6aCpaZd8Yc=; b=mfjTG2uIgp7cqr0XcE+JB+X569O68ze7fM4/omwc+jDH/ndkV3vuujDNoks3VKEtgA AiJiJVWIX9kHCOaQbu4g9WFheUKAaQjoSef+FUuZbpTIM2s5rwqWuDZIuNZqhOMiVCCV qvNTqogWXmYhw0hEiFckI6Vx1fgIWVnA05bDKGK7kTnMzPfu3845LpbLs136dkfxP4BJ cDK/YdlFlgtnByqBckdmnePUypEUJ85e4N1fqIom3X/u7f5EejqGVpDL7HX/yKjunTd1 gJoa9FTKlmHxcN2n7Q650K2Oc4/yZBYmmjWNiUFb8OwsbGJ1EZzIRz5G7vr8NPA0HBB+ 6wnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=2CYvg/qm3/1K1aMaGerBIHVnqjYQeR9oX6aCpaZd8Yc=; b=U7bRnEFqeXiRUwAUdtdT+J2AinM8oeJkaY/+r014HylUbCbleaCTRkx66KFCtWeGyB LyQYTuQ1DGksOrLPsi0IYVF9qP/yCJoe2MjpP7UI+w9w2DuZlXFYhFVnF5Mwt6Zzc3yA IYZ9hLMdiOFPnxwNIiwAHQcKWQ9wxbWunRH554qo4dVHgfGM5CSt4NhMaMwF95SEi+f/ tjnAUimIcvlBfHXGbv/9k7NHh1oRfzT5sWguXNRda1D6Rnv69CLCVZ/W6ouNmx4ZGmhH Q3ixWOcO42j+1Fuy0l1J6Pzg4OrWvhQ0xvQ7T51S/YFITzlhAXj4e2T6yFLUt9V15dXe y0Nw== X-Gm-Message-State: APt69E0n7EIR2Wb4tiLlfhHF63YSS4BLJsYgowOPU1Vp3rWyoiuvqXM5 njqKDc7ZFx87WGFlu/HABogEfNOVXZg= X-Google-Smtp-Source: AAOMgpdSYwzWe7zEm820zNKHkvxAoiimzebyLE9Rc63ePTr2WAeC6lwVUJidliMGqKi/0HUQxgUxYA== X-Received: by 2002:a5d:4407:: with SMTP id z7-v6mr1138377wrq.227.1529663583061; Fri, 22 Jun 2018 03:33:03 -0700 (PDT) Received: from [10.0.0.101] ([84.203.46.219]) by smtp.googlemail.com with ESMTPSA id g88-v6sm1875597wmc.27.2018.06.22.03.33.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Jun 2018 03:33:02 -0700 (PDT) To: Liming Gao , edk2-devel@lists.01.org References: <20180622023312.15028-1-liming.gao@intel.com> From: Pete Batard Message-ID: Date: Fri, 22 Jun 2018 11:33:01 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180622023312.15028-1-liming.gao@intel.com> Subject: Re: [Patch] BaseTools tools_def.template: Ignore link warning 4281 for VS2017 X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jun 2018 10:33:06 -0000 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Reviewed-by: Pete Batard On 2018.06.22 03:33, Liming Gao wrote: > VS2017 reports warning LNK4281: undesirable base address 0x0 for x64 image; > set base address above 4GB for best ASLR optimization. > > edk2 build always sets baes address to zero as default. So, ignore this link > warning. > > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Liming Gao > --- > BaseTools/Conf/tools_def.template | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/BaseTools/Conf/tools_def.template b/BaseTools/Conf/tools_def.template > index 733c6ec717..83e43d2050 100755 > --- a/BaseTools/Conf/tools_def.template > +++ b/BaseTools/Conf/tools_def.template > @@ -4172,9 +4172,9 @@ NOOPT_VS2017_X64_ASM_FLAGS = /nologo /c /WX /W3 /Cx /Zd /Zi > RELEASE_VS2017_X64_NASM_FLAGS = -Ox -f win64 > NOOPT_VS2017_X64_NASM_FLAGS = -O0 -f win64 -g > > - DEBUG_VS2017_X64_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /IGNORE:4001 /OPT:REF /OPT:ICF=10 /MAP /ALIGN:32 /SECTION:.xdata,D /SECTION:.pdata,D /Machine:X64 /LTCG /DLL /ENTRY:$(IMAGE_ENTRY_POINT) /SUBSYSTEM:EFI_BOOT_SERVICE_DRIVER /SAFESEH:NO /BASE:0 /DRIVER /DEBUG > -RELEASE_VS2017_X64_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /IGNORE:4001 /IGNORE:4254 /OPT:REF /OPT:ICF=10 /MAP /ALIGN:32 /SECTION:.xdata,D /SECTION:.pdata,D /Machine:X64 /LTCG /DLL /ENTRY:$(IMAGE_ENTRY_POINT) /SUBSYSTEM:EFI_BOOT_SERVICE_DRIVER /SAFESEH:NO /BASE:0 /DRIVER /MERGE:.rdata=.data > -NOOPT_VS2017_X64_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /IGNORE:4001 /OPT:REF /OPT:ICF=10 /MAP /ALIGN:32 /SECTION:.xdata,D /SECTION:.pdata,D /Machine:X64 /LTCG /DLL /ENTRY:$(IMAGE_ENTRY_POINT) /SUBSYSTEM:EFI_BOOT_SERVICE_DRIVER /SAFESEH:NO /BASE:0 /DRIVER /DEBUG > + DEBUG_VS2017_X64_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /IGNORE:4001 /IGNORE:4281 /OPT:REF /OPT:ICF=10 /MAP /ALIGN:32 /SECTION:.xdata,D /SECTION:.pdata,D /Machine:X64 /LTCG /DLL /ENTRY:$(IMAGE_ENTRY_POINT) /SUBSYSTEM:EFI_BOOT_SERVICE_DRIVER /SAFESEH:NO /BASE:0 /DRIVER /DEBUG > +RELEASE_VS2017_X64_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /IGNORE:4001 /IGNORE:4281 /IGNORE:4254 /OPT:REF /OPT:ICF=10 /MAP /ALIGN:32 /SECTION:.xdata,D /SECTION:.pdata,D /Machine:X64 /LTCG /DLL /ENTRY:$(IMAGE_ENTRY_POINT) /SUBSYSTEM:EFI_BOOT_SERVICE_DRIVER /SAFESEH:NO /BASE:0 /DRIVER /MERGE:.rdata=.data > +NOOPT_VS2017_X64_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /IGNORE:4001 /IGNORE:4281 /OPT:REF /OPT:ICF=10 /MAP /ALIGN:32 /SECTION:.xdata,D /SECTION:.pdata,D /Machine:X64 /LTCG /DLL /ENTRY:$(IMAGE_ENTRY_POINT) /SUBSYSTEM:EFI_BOOT_SERVICE_DRIVER /SAFESEH:NO /BASE:0 /DRIVER /DEBUG > > ################# > # ARM definitions >