From patchwork Wed May 4 14:34:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vishal Bhoj X-Patchwork-Id: 67136 Delivered-To: patches@linaro.org Received: by 10.140.92.199 with SMTP id b65csp216484qge; Wed, 4 May 2016 07:34:36 -0700 (PDT) X-Received: by 10.98.10.136 with SMTP id 8mr12579833pfk.67.1462372452708; Wed, 04 May 2016 07:34:12 -0700 (PDT) Return-Path: Received: from mail-pf0-x22f.google.com (mail-pf0-x22f.google.com. [2607:f8b0:400e:c00::22f]) by mx.google.com with ESMTPS id fo1si5263015pad.118.2016.05.04.07.34.12 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 May 2016 07:34:12 -0700 (PDT) Received-SPF: pass (google.com: domain of vishal.bhoj@linaro.org designates 2607:f8b0:400e:c00::22f as permitted sender) client-ip=2607:f8b0:400e:c00::22f; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of vishal.bhoj@linaro.org designates 2607:f8b0:400e:c00::22f as permitted sender) smtp.mailfrom=vishal.bhoj@linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by mail-pf0-x22f.google.com with SMTP id 206so26135226pfu.0 for ; Wed, 04 May 2016 07:34:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=O46YMtntDOQEoRMiWFN0qeYHOQhHG4DqqOr2t7kTs+Q=; b=i+2ihhKUTTX0X6XVVxIQnsmknUlEEpxPyccANFmc4N6Gj6vT56d+ZHTBNaqJb7Lzy0 eig0CAGufk3MtVIlsDo8/F9BHrqNuYHTZFN+CQNdKdFPj1ia9gcMeASF2YbAf5KF0LMa AnQO78MTjO33suauYlwC7naqRw9Bf4dQwHVsU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=O46YMtntDOQEoRMiWFN0qeYHOQhHG4DqqOr2t7kTs+Q=; b=ZWAxdnz1W4NwfcEGFU1EAlFVMgNHtfAo40U8lIgGlUB7Yw4byCjqDnOgwcw7Y2uDNK TNervxBAG6hfvn0bp8G+FDEyyYHkzntEuWcVuHDL/nQQFnWgGow5NERWRtYWMEXciGAH 3RMUHFHAL0pzkFRkDdQovOSGjHD7OXmu5N953U0177P1XAXFHLgk5yCVhowZrtHAUat+ YwBTyvYfLWHOh1wzSOVhCWxD5l2UYeMMK4r5BwK2Tb/0b1mom/5JuHELJEQBaXj1M5qt iC2cNAhJm9GkjwlCUKjJmcqzla/pisrd0m2ErONi6F8FLEZFke2Wk6lICKzw1FwghSaf sZMA== X-Gm-Message-State: AOPr4FWew1Uj8BN+4nny1iTZa3+dHnDrI5gE76ZAmtTmkxwIL61pdSsmSWi7uzeaoqdnIQDol9Y= X-Received: by 10.98.26.205 with SMTP id a196mr12407323pfa.46.1462372452365; Wed, 04 May 2016 07:34:12 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([122.178.254.105]) by smtp.gmail.com with ESMTPSA id n66sm2445594pfb.17.2016.05.04.07.34.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 04 May 2016 07:34:11 -0700 (PDT) From: Vishal Bhoj To: vishal.bhoj@linaro.org Cc: patches@linaro.org Subject: [PATCH] BaseTools AARCH64: set compiler flag -fno-pic explicitly Date: Wed, 4 May 2016 20:04:02 +0530 Message-Id: X-Mailer: git-send-email 1.9.1 Android toolchain has fpic enabled by default so explicitly disabling it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Vishal Bhoj --- BaseTools/Conf/tools_def.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.9.1 diff --git a/BaseTools/Conf/tools_def.template b/BaseTools/Conf/tools_def.template index 2065fa3..d03a8bf 100644 --- a/BaseTools/Conf/tools_def.template +++ b/BaseTools/Conf/tools_def.template @@ -4324,7 +4324,7 @@ DEFINE GCC_IA32_CC_FLAGS = DEF(GCC_ALL_CC_FLAGS) -m32 -malign-double - DEFINE GCC_X64_CC_FLAGS = DEF(GCC_ALL_CC_FLAGS) -mno-red-zone -Wno-address -mno-stack-arg-probe DEFINE GCC_IPF_CC_FLAGS = DEF(GCC_ALL_CC_FLAGS) -minline-int-divide-min-latency DEFINE GCC_ARM_CC_FLAGS = DEF(GCC_ALL_CC_FLAGS) -mlittle-endian -mabi=aapcs -fno-short-enums -save-temps -funsigned-char -ffunction-sections -fdata-sections -fomit-frame-pointer -Wno-address -mthumb -mfloat-abi=soft -DEFINE GCC_AARCH64_CC_FLAGS = DEF(GCC_ALL_CC_FLAGS) -mlittle-endian -fno-short-enums -save-temps -fverbose-asm -funsigned-char -ffunction-sections -fdata-sections -fomit-frame-pointer -fno-builtin -Wno-address -fno-asynchronous-unwind-tables +DEFINE GCC_AARCH64_CC_FLAGS = DEF(GCC_ALL_CC_FLAGS) -mlittle-endian -fno-short-enums -save-temps -fverbose-asm -funsigned-char -ffunction-sections -fdata-sections -fomit-frame-pointer -fno-builtin -Wno-address -fno-asynchronous-unwind-tables -fno-pic DEFINE GCC_AARCH64_CC_XIPFLAGS = -mstrict-align DEFINE GCC_DLINK_FLAGS_COMMON = -nostdlib --pie DEFINE GCC_DLINK2_FLAGS_COMMON = --script=$(EDK_TOOLS_PATH)/Scripts/GccBase.lds