From patchwork Fri Sep 5 23:23:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Behan Webster X-Patchwork-Id: 36915 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f198.google.com (mail-ie0-f198.google.com [209.85.223.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7E7EA202E4 for ; Fri, 5 Sep 2014 23:23:34 +0000 (UTC) Received: by mail-ie0-f198.google.com with SMTP id rd18sf4290108iec.5 for ; Fri, 05 Sep 2014 16:23:34 -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=e2YE+rZT7s9xOd9o2UTTL7fJTN6+W9vr87h9H+ES7Rc=; b=DhDdCC49kRhRvYpVC3bZ/+mccMdJpqqbwaX8PNMND1ZsV9+tdceWhhRFogy8T5XkmJ FKUy96i9ZWYx6Lhr7iGs2Tslc7on2EfpoYj7VHUzQtJYtig4FC4TOXqkn8hzZorbsmfW /7Clfxblj4pFUqADGOndHoOLhf+hBDcNq48PTwhDu7mpDfhq1I+5BquLswKMtZsc/TI4 Wp6NsI7/DB4m/+YqmTHYI9nyjxn5AVi+6lQQ2V9fbypT1DWzLjELZiq4fRDRTe6koMTO PHhRg6WkAQvrUIwKMje2tYkkbeDSlXgEBJt3oBT+UBqP5C6fsGfUIfesoHJVIuvIdauJ IW2g== X-Gm-Message-State: ALoCoQk92rUQZ+TMyquE9xLjw7LuNI23GpY1sW5eRCOLf/1WfawJSTLLukZw2ZR7SCuA//dBG4x+ X-Received: by 10.182.29.10 with SMTP id f10mr8653292obh.23.1409959414148; Fri, 05 Sep 2014 16:23:34 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.94.231 with SMTP id g94ls750534qge.74.gmail; Fri, 05 Sep 2014 16:23:34 -0700 (PDT) X-Received: by 10.52.52.136 with SMTP id t8mr10887594vdo.21.1409959414041; Fri, 05 Sep 2014 16:23:34 -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 yv8si1571158vcb.5.2014.09.05.16.23.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 05 Sep 2014 16:23:34 -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 hq11so12835823vcb.8 for ; Fri, 05 Sep 2014 16:23:33 -0700 (PDT) X-Received: by 10.220.105.142 with SMTP id t14mr12924822vco.14.1409959413895; Fri, 05 Sep 2014 16:23:33 -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 uj3csp150044vcb; Fri, 5 Sep 2014 16:23:33 -0700 (PDT) X-Received: by 10.68.222.168 with SMTP id qn8mr252023pbc.114.1409959413055; Fri, 05 Sep 2014 16:23:33 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id kk6si6207350pdb.192.2014.09.05.16.23.31 for ; Fri, 05 Sep 2014 16:23:33 -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 S1751665AbaIEXXa (ORCPT + 26 others); Fri, 5 Sep 2014 19:23:30 -0400 Received: from mail-pd0-f169.google.com ([209.85.192.169]:34899 "EHLO mail-pd0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750725AbaIEXX2 (ORCPT ); Fri, 5 Sep 2014 19:23:28 -0400 Received: by mail-pd0-f169.google.com with SMTP id y10so7331288pdj.0 for ; Fri, 05 Sep 2014 16:23:28 -0700 (PDT) X-Received: by 10.70.137.37 with SMTP id qf5mr27105999pdb.56.1409959408442; Fri, 05 Sep 2014 16:23:28 -0700 (PDT) Received: from galdor.websterwood.com (S0106dc9fdb80cffd.gv.shawcable.net. [96.50.97.138]) by mx.google.com with ESMTPSA id or4sm2681974pdb.19.2014.09.05.16.23.26 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 05 Sep 2014 16:23:27 -0700 (PDT) From: behanw@converseincode.com To: catalin.marinas@arm.com, will.deacon@arm.com, zhichang.yuan@linaro.org Cc: dsaxena@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Behan Webster , Mark Charlebois Subject: [PATCH] arm64: LLVMLinux: Provide __aeabi_* symbols which are needed for clang Date: Fri, 5 Sep 2014 16:23:14 -0700 Message-Id: <1409959394-14936-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 ARM64 with clang. Author: Mark Charlebois Signed-off-by: Mark Charlebois Signed-off-by: Behan Webster --- arch/arm64/lib/Makefile | 4 ++++ arch/arm64/lib/eabi.c | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 arch/arm64/lib/eabi.c diff --git a/arch/arm64/lib/Makefile b/arch/arm64/lib/Makefile index d98d3e3..0d3407c 100644 --- a/arch/arm64/lib/Makefile +++ b/arch/arm64/lib/Makefile @@ -3,3 +3,7 @@ lib-y := bitops.o clear_user.o delay.o copy_from_user.o \ clear_page.o memchr.o memcpy.o memmove.o memset.o \ memcmp.o strcmp.o strncmp.o strlen.o strnlen.o \ strchr.o strrchr.o + +ifeq ($(COMPILER),clang) +lib-y += eabi.o +endif diff --git a/arch/arm64/lib/eabi.c b/arch/arm64/lib/eabi.c new file mode 100644 index 0000000..41b27b2 --- /dev/null +++ b/arch/arm64/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);