From patchwork Thu Sep 12 05:42:37 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: vkamensky X-Patchwork-Id: 19990 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f200.google.com (mail-ve0-f200.google.com [209.85.128.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8FE6720F59 for ; Thu, 12 Sep 2013 05:43:38 +0000 (UTC) Received: by mail-ve0-f200.google.com with SMTP id oy12sf10654604veb.7 for ; Wed, 11 Sep 2013 22:43:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=wo0Luo9MtaHMlMPXNVQoYrakwO61ghJ2hiV7WOcWVPc=; b=UWc9sqdDRGUxqKF91lk2Mw/SJyuT8iVvejtEbEE4OQWihEsKFysaAsHQo7BLXw5EMC 8EM2bPJB97fs7VRzXAbhCTYb5dVsy20yIiq5Tlmm6NkR17/ISJC5zv8mSAGu+auNwek0 dizHFPsX+dE6imOnvzsnRFnJfIveiY+OGPADkh9RehbwGyui4ayzyrgaja5aziPg8IOh wWgrtJPIEtW9JBwU/izPtK0pU7eHFHTzU8vJntd2uV2ccNoRgOntiyMinjMqY2pPw5Ub tFC0BwhfzZGLBWNnmaPovxMSnualcFnweKW7jOEj5weXWCA4NlbA4IHVKU5JKGJMYapj ckkA== X-Gm-Message-State: ALoCoQmhQDNQ8qP9d+9iM5TCkBT/TlvIdXSu6uJtMkHMgV3lTrj/j9/A653E9z5VeJX8SlV0Q6UK X-Received: by 10.236.115.198 with SMTP id e46mr2307194yhh.33.1378964618226; Wed, 11 Sep 2013 22:43:38 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.117.69 with SMTP id kc5ls585036qeb.42.gmail; Wed, 11 Sep 2013 22:43:38 -0700 (PDT) X-Received: by 10.52.122.68 with SMTP id lq4mr4154535vdb.21.1378964617999; Wed, 11 Sep 2013 22:43:37 -0700 (PDT) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id tf3si661390vec.106.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 11 Sep 2013 22:43:37 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.171 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.171; Received: by mail-vc0-f171.google.com with SMTP id ij15so6940034vcb.16 for ; Wed, 11 Sep 2013 22:43:37 -0700 (PDT) X-Received: by 10.220.10.194 with SMTP id q2mr4877216vcq.2.1378964617919; Wed, 11 Sep 2013 22:43:37 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp1254vcz; Wed, 11 Sep 2013 22:43:37 -0700 (PDT) X-Received: by 10.67.2.4 with SMTP id bk4mr7656862pad.78.1378964616853; Wed, 11 Sep 2013 22:43:36 -0700 (PDT) Received: from mail-pd0-f179.google.com (mail-pd0-f179.google.com [209.85.192.179]) by mx.google.com with ESMTPS id tb4si5242786pab.145.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 11 Sep 2013 22:43:36 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.179 is neither permitted nor denied by best guess record for domain of victor.kamensky@linaro.org) client-ip=209.85.192.179; Received: by mail-pd0-f179.google.com with SMTP id v10so10292020pde.10 for ; Wed, 11 Sep 2013 22:43:36 -0700 (PDT) X-Received: by 10.66.192.132 with SMTP id hg4mr7759678pac.84.1378964616387; Wed, 11 Sep 2013 22:43:36 -0700 (PDT) Received: from kamensky-w530.cisco.com.net (c-24-6-79-41.hsd1.ca.comcast.net. [24.6.79.41]) by mx.google.com with ESMTPSA id ef10sm8095447pac.1.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 11 Sep 2013 22:43:35 -0700 (PDT) From: Victor Kamensky To: linux-arm-kernel@lists.infradead.org, ben.dooks@codethink.co.uk, linux@arm.linux.org.uk, Dave.Martin@arm.com Cc: steve.mcintyre@linaro.org, nicolas.pitre@linaro.org, patches@linaro.org, linaro-kernel@lists.linaro.org, Victor Kamensky Subject: [PATCH] ARM: signal: sigreturn_codes fix build breakage for old arch Date: Wed, 11 Sep 2013 22:42:37 -0700 Message-Id: <1378964557-24520-2-git-send-email-victor.kamensky@linaro.org> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1378964557-24520-1-git-send-email-victor.kamensky@linaro.org> References: <1378964557-24520-1-git-send-email-victor.kamensky@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: victor.kamensky@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.171 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , After "ARM: signal: sigreturn_codes should be endian neutral to work in BE8" patch, old platforms that use old -march values (like armv3) fails to compile sigreturn_codes.S. The reason is that for such arch values '.thumb' directive and thumb opcodes are not allowed. Fix it by manually setting explicit .arch directive to 'armv4t' if build is done for lower values of __LINUX_ARM_ARCH__. Note we do it only for lower __LINUX_ARM_ARCH__ values because otherwise we want sigreturn_codes.o "File Attributes" Tag_CPU_name, and Tag_CPU_arch tag values to match other .o files. Signed-off-by: Victor Kamensky --- arch/arm/kernel/sigreturn_codes.S | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/kernel/sigreturn_codes.S b/arch/arm/kernel/sigreturn_codes.S index c888c43..3c5d0f2 100644 --- a/arch/arm/kernel/sigreturn_codes.S +++ b/arch/arm/kernel/sigreturn_codes.S @@ -30,6 +30,17 @@ * snippets. */ +#if __LINUX_ARM_ARCH__ <= 4 + /* + * Note we manually set minimally required arch that supports + * required thumb opcodes for early arch versions. It is OK + * for this file to be used in combination with other + * lower arch variants, since these code snippets are only + * used as input data. + */ + .arch armv4t +#endif + .section .rodata .global sigreturn_codes .type sigreturn_codes, #object