From owner-freebsd-arm@FreeBSD.ORG Mon Apr 22 11:54:53 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id DC96C9C0 for ; Mon, 22 Apr 2013 11:54:53 +0000 (UTC) (envelope-from alie@affle.com) Received: from mail-qc0-x230.google.com (mail-qc0-x230.google.com [IPv6:2607:f8b0:400d:c01::230]) by mx1.freebsd.org (Postfix) with ESMTP id A2C5E15B6 for ; Mon, 22 Apr 2013 11:54:53 +0000 (UTC) Received: by mail-qc0-f176.google.com with SMTP id n41so2830222qco.7 for ; Mon, 22 Apr 2013 04:54:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:x-gm-message-state; bh=L/MwgMz35KFldwFi++uiGWxEyXMVdQAaa8jHmZ+USPw=; b=Aun/nlc41qHtM+O3ezp1M7jDzejc5bwuIrEvJZ0dSCU7MZ2LI+17+9d7zXddNxm3lG U2xsbqnTRaS6pfXwV4KzdqMECC/aOA6TI+jsLd20Wqh2emO266lbRyvCpcDXhvZ54Hbf 4RDUb4AN0j24gEKc25c0PmKQMaMuI/BKHVR45XXfxF7otbwml3ImTuM+Koas2b3oOlfh yb6dXZNV+MEJX681N7wzECW8xkFRVMplI6pXQMRiabLua0sgoGC4aIwl+xePJeIdUYRB VqshBRICalFP0+PYpqlBRHnaumFGwhfc44HsgsFRzyv6nIjpUEtlSfBMYn6u0B3UkyS+ qr4Q== MIME-Version: 1.0 X-Received: by 10.49.127.8 with SMTP id nc8mr25643707qeb.31.1366631693148; Mon, 22 Apr 2013 04:54:53 -0700 (PDT) Received: by 10.49.82.75 with HTTP; Mon, 22 Apr 2013 04:54:53 -0700 (PDT) In-Reply-To: <51751CDC.4020208@semihalf.com> References: <51751CDC.4020208@semihalf.com> Date: Mon, 22 Apr 2013 19:54:53 +0800 Message-ID: Subject: Re: ARM, clang & EABI. From: Alie Tan To: Grzegorz Bernacki X-Gm-Message-State: ALoCoQn1AuDcub9k4cc4UkPJMzIFd0AeS/ELzw5ySPMordXz6mjlvRnKJP41jXAoz+XGJUh9eWwz Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: "freebsd-arm@freebsd.org" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Apr 2013 11:54:53 -0000 On Mon, Apr 22, 2013 at 7:19 PM, Grzegorz Bernacki wrote: > Hi, > > I've recently built world and kernel for one of MV targets and it doesn't > work properly. One of the problem is that 'bt' command from DDB fails. It > seems that kernel uses wrong procedure to unwind the stack. So I got a few > question: > 1) Should I do something beside adding WITH_ARM_EABI to src.conf to enable > ARM EABI > 2) Should ___ARM_EABI__ be defined by compiler when I build the kernel? > 3) Are there any changes to build world and kernel procedure related to > clang or ARM EABI? > We should add it while buildworld and buildkernel with -DWITH_ARM_EABI For example: make -C /usr/src KERNCONF=RPI-B WITH_FDT=yes -DWITH_ARM_EABI buildkernel make -C /usr/src MALLOC_PRODUCTION=yes -DWITH_ARM_EABI buildworld CMIIW > thanks > grzesiek >