From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH 19/34] xen/arm: Provide eabi wrapper for __aeabi_mem* functions Date: Tue, 25 Mar 2014 18:12:53 +0000 Message-ID: <5331C725.10003@linaro.org> References: <1395766541-23979-1-git-send-email-julien.grall@linaro.org> <1395766541-23979-20-git-send-email-julien.grall@linaro.org> <1395768302.22808.5.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WSVqL-00035i-F2 for xen-devel@lists.xenproject.org; Tue, 25 Mar 2014 18:12:57 +0000 Received: by mail-bk0-f48.google.com with SMTP id mx12so308117bkb.7 for ; Tue, 25 Mar 2014 11:12:55 -0700 (PDT) In-Reply-To: <1395768302.22808.5.camel@kazak.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: xen-devel@lists.xenproject.org, tim@xen.org, stefano.stabellini@citrix.com List-Id: xen-devel@lists.xenproject.org Hi Ian, On 03/25/2014 05:25 PM, Ian Campbell wrote: > On Tue, 2014-03-25 at 16:55 +0000, Julien Grall wrote: >> Clang doesn't provide function __aebai_mem*, implement generically as a wrapper >> for mem* function provided by Xen. > > Where are the references to these functions coming from if not from the > compiler? Theses functions are called by the code generated by the compiler. Removing this file will result to the following errors: /local/home/julien/works/arndale/xen/xen/common/symbols-dummy.o -o /local/home/julien/works/arndale/xen/xen/.xen-syms.0 prelink.o: In function `dump_node': /local/home/julien/works/arndale/xen/xen/common/device_tree.c:259: undefined reference to `__aeabi_memset' prelink.o: In function `get_cpu_idle_time': /local/home/julien/works/arndale/xen/xen/common/schedule.c:178: undefined reference to `__aeabi_memset' prelink.o: In function `construct_dom0': /local/home/julien/works/arndale/xen/xen/arch/arm/domain_build.c:1055: undefined reference to `__aeabi_memset' prelink.o: In function `wallclock_time': /local/home/julien/works/arndale/xen/xen/arch/arm/time.c:267: undefined reference to `__aeabi_memset' prelink.o: In function `scheduler_init': /local/home/julien/works/arndale/xen/xen/common/schedule.c:1368: undefined reference to `__aeabi_memcpy' /local/home/julien/works/arndale/xen/xen/common/schedule.c:1377: undefined reference to `__aeabi_memcpy' > Are you sure this isn't something usually provided by some clang > equivalent of libgcc? Yes. Linux on LLVM has the same issue. See page 22: https://events.linuxfoundation.org/images/stories/pdf/lcjp2012_charlebois.pdf?a Regards, -- Julien Grall