From patchwork Fri Sep 5 23:18:41 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Behan Webster X-Patchwork-Id: 36913 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yk0-f200.google.com (mail-yk0-f200.google.com [209.85.160.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 39289202E4 for ; Fri, 5 Sep 2014 23:19:17 +0000 (UTC) Received: by mail-yk0-f200.google.com with SMTP id 9sf37566622ykp.11 for ; Fri, 05 Sep 2014 16:19:17 -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:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=v8YlqI/LWoGcvXf0+53qjvg9vr7ZX9HegAD9dGodSsk=; b=kIvZODKyNnWNGbVTYjllGdVo8pGT8RJPMK17bVkysQiGFA6uW22/mZXIDFszsuCTcl uTuXhQNIc3OmAW4IMlxcqngGGyXFZMtEBzkVNFwY0XrJycc1QQPgj8r9KBoDgUtOfZNV QPac7PbBi2xQjs3ijfyLXMApy3elErENntT5AznPmfD+s6ijFqPLcgi1tVbPZCraksqw 71yNBkASDKtmLFqBbNUkeyASsm4rl3+jRSaosd5Y8USZ5HT1e9svC8IcyDojjMuCWn/P pWjlctQhi0Sv3TE4ZgZ1Czq/qvZsTIbhvmmxzEE7VJe9qZSTkqH7YAH5opuAviE7wnc8 56nw== X-Gm-Message-State: ALoCoQnJjGhIT/ySFXlUMvjU4QSAro8ATUNXgR7Dg+8rEphD2+FJhdK772+459Vi928nw94FybOr X-Received: by 10.236.112.6 with SMTP id x6mr8658248yhg.42.1409959157062; Fri, 05 Sep 2014 16:19:17 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.19.203 with SMTP id 69ls894759qgh.27.gmail; Fri, 05 Sep 2014 16:19:16 -0700 (PDT) X-Received: by 10.52.148.2 with SMTP id to2mr3470463vdb.38.1409959156913; Fri, 05 Sep 2014 16:19:16 -0700 (PDT) Received: from mail-vc0-x231.google.com (mail-vc0-x231.google.com [2607:f8b0:400c:c03::231]) by mx.google.com with ESMTPS id jx6si2101369vdb.102.2014.09.05.16.19.16 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 05 Sep 2014 16:19:16 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2607:f8b0:400c:c03::231 as permitted sender) client-ip=2607:f8b0:400c:c03::231; Received: by mail-vc0-f177.google.com with SMTP id hq11so12832736vcb.8 for ; Fri, 05 Sep 2014 16:19:16 -0700 (PDT) X-Received: by 10.220.114.5 with SMTP id c5mr12912274vcq.28.1409959156798; Fri, 05 Sep 2014 16:19:16 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.45.67 with SMTP id uj3csp149721vcb; Fri, 5 Sep 2014 16:19:16 -0700 (PDT) X-Received: by 10.70.42.71 with SMTP id m7mr3200635pdl.72.1409959155915; Fri, 05 Sep 2014 16:19:15 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xp1si6166541pbc.200.2014.09.05.16.19.15 for ; Fri, 05 Sep 2014 16:19:15 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754063AbaIEXTN (ORCPT + 26 others); Fri, 5 Sep 2014 19:19:13 -0400 Received: from mail-pd0-f169.google.com ([209.85.192.169]:41013 "EHLO mail-pd0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751955AbaIEXTM (ORCPT ); Fri, 5 Sep 2014 19:19:12 -0400 Received: by mail-pd0-f169.google.com with SMTP id y10so7367487pdj.14 for ; Fri, 05 Sep 2014 16:19:11 -0700 (PDT) X-Received: by 10.68.132.225 with SMTP id ox1mr231565pbb.99.1409959151626; Fri, 05 Sep 2014 16:19:11 -0700 (PDT) Received: from galdor.websterwood.com (S0106dc9fdb80cffd.gv.shawcable.net. [96.50.97.138]) by mx.google.com with ESMTPSA id qk2sm2636578pbc.18.2014.09.05.16.19.09 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 05 Sep 2014 16:19:10 -0700 (PDT) From: behanw@converseincode.com To: ard.biesheuvel@linaro.org, kim.phillips@freescale.com, linus.walleij@linaro.org, linux@arm.linux.org.uk Cc: David.Woodhouse@intel.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Behan Webster , Mark Charlebois Subject: [PATCH] arm: LLVMLinux: Provide __aeabi_* symbols which are needed for clang Date: Fri, 5 Sep 2014 16:18:41 -0700 Message-Id: <1409959121-12630-1-git-send-email-behanw@converseincode.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Original-Sender: behanw@converseincode.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2607:f8b0:400c:c03::231 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=neutral (body hash did not verify) header.i=@ Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Behan Webster These symbols are required when compiling the Linux kernel for arch ARM with clang. Author: Mark Charlebois Signed-off-by: Mark Charlebois Signed-off-by: Behan Webster --- arch/arm/lib/Makefile | 4 ++++ arch/arm/lib/eabi.c | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 arch/arm/lib/eabi.c diff --git a/arch/arm/lib/Makefile b/arch/arm/lib/Makefile index 0573faa..b585fcf 100644 --- a/arch/arm/lib/Makefile +++ b/arch/arm/lib/Makefile @@ -15,6 +15,10 @@ lib-y := backtrace.o changebit.o csumipv6.o csumpartial.o \ io-readsb.o io-writesb.o io-readsl.o io-writesl.o \ call_with_stack.o bswapsdi2.o +ifeq ($(COMPILER),clang) +lib-y += eabi.o +endif + mmu-y := clear_user.o copy_page.o getuser.o putuser.o # the code in uaccess.S is not preemption safe and diff --git a/arch/arm/lib/eabi.c b/arch/arm/lib/eabi.c new file mode 100644 index 0000000..41b27b2 --- /dev/null +++ b/arch/arm/lib/eabi.c @@ -0,0 +1,32 @@ +/* + * linux/lib/eabi.c + * + * Copyright (C) 2012 Mark Charlebois + */ + +/* + * EABI routines + */ + +#include +#include +#include +#include + +void __aeabi_memcpy(void *dest, const void *src, size_t n) +{ + (void)memcpy(dest, src, n); +} +EXPORT_SYMBOL(__aeabi_memcpy); + +void __aeabi_memmove(void *dest, const void *src, size_t n) +{ + (void)memmove(dest, src, n); +} +EXPORT_SYMBOL(__aeabi_memmove); + +void __aeabi_memset(void *s, size_t n, int c) +{ + (void)memset(s, c, n); +} +EXPORT_SYMBOL(__aeabi_memset);