From owner-freebsd-arm@freebsd.org Wed Jul 10 18:29:06 2019 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F08A915DFAEC for ; Wed, 10 Jul 2019 18:29:05 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound3d.ore.mailhop.org (outbound3d.ore.mailhop.org [54.186.57.195]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2E7FD6B37C for ; Wed, 10 Jul 2019 18:29:04 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1562783338; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=ndHgHboVl3izP+PkjvW58Wtq0bJHI0g9/yIXygJTj9acqc0OQWi6DYMMxZ7J8+agybc+JPPHOxu0U HtYPwz7CcXzi/sbSi41yZh8k+mfAUixdcHF8Un9OQPtxSmrGkKqJZ3usdYaW1Aegw1ZreTU4blvchd DkdJ0RcnCqo0RTt2Hl/0Jh4NjWIv7s6t2Djuqq8DSDbIzCl8SvYocBl3W68dPGfMhh6zyfup3iK0TF BgJIrAXpKsjhtNUN1NgFE2ryCZLNrYfMzJcaHm2BSqGc/TzOvR/ouXLC507JsLN8PTBMfuhDWd0bHc tmNTvGI1Yo8tO0AmFPJE1hk0aY0SM+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:cc:to:from:subject:message-id:dkim-signature:from; bh=kxMeoh8fwF2b9i0lWpJ6dBfwDvmjA7XhsuDfYiVEd24=; b=KIy0HD7jq482xQL4PkRztxz+Nmm1/9YTTwNBEb6v0D1xEwXACDtroGvPekS5t+mCL8V/ZkSHruze9 pTOzrxmBZPzz8Bw88Huu+Km8erYsNjot9AVHKlKQKiR5VIa4pVuzUnQTzcnDF7YXjRM5NoZtti5Ouf UDKQDBpSdHz5fX6mRdtstgL+dzr6q9HyWjroSAvgZD/tphyY8GgiOlHh9jm+w0Cx5+7EG7ehj6uJ01 gJ9TihcF5GuJac8kPWxrw+gW97OqEGhPwaHy3SL46j+2OE3SG15h23Z41XeAwpyW8MORkhtnKcni+h g8Ow592mnRmq2C9nRYHBKlBRNURnxLA== ARC-Authentication-Results: i=1; outbound3.ore.mailhop.org; spf=softfail smtp.mailfrom=freebsd.org smtp.remote-ip=67.177.211.60; dmarc=none header.from=freebsd.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:cc:to:from:subject:message-id:from; bh=kxMeoh8fwF2b9i0lWpJ6dBfwDvmjA7XhsuDfYiVEd24=; b=U0ylUsuGcr9wO0FaL2gnFJXxSf4i4ibttAUuJokk0HngzKlTJmJOSbuVMKNLrbJCKqzbUyL43+o0O FyY6H+QHYjN7EEzhQ6sH4XrsreJIhreFkUWHLSceDqbBaphBlIyFDzstDkQ3l4t67vRQNNj/rRYQYk KAA63yXKffMsYGl5AUsFVZpl0xDJnad/gDhF36jO7KYeEkuyR2EKOB20bBR7Gd+M0OpWCl8W3FU6EG EpzqybQg+IuGhJXkuLCnWaZ1oWRNOYE2mCe9mtdrJh5KMo0DFql/1MZwS7ijvXOnIz91kDxIn7mwEW JgNuY20AplTg2WF9O4NIGtY2w/bddcQ== X-MHO-RoutePath: aGlwcGll X-MHO-User: 93a967d8-a340-11e9-ac5d-07445dfc96fd X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [67.177.211.60]) by outbound3.ore.mailhop.org (Halon) with ESMTPSA id 93a967d8-a340-11e9-ac5d-07445dfc96fd; Wed, 10 Jul 2019 18:28:57 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id x6AISuIA013445; Wed, 10 Jul 2019 12:28:56 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: Subject: Re: FreeBSD arm EABI5 documentation? From: Ian Lepore To: adr Cc: freebsd-arm@freebsd.org Date: Wed, 10 Jul 2019 12:28:56 -0600 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 2E7FD6B37C X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.99 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.99)[-0.987,0]; ASN(0.00)[asn:16509, ipnet:54.186.0.0/15, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jul 2019 18:29:06 -0000 On Wed, 2019-07-10 at 18:19 +0000, adr wrote: > On Wed, 10 Jul 2019, Ian Lepore wrote: > > Stack alignment requirement is 8 bytes. The full EABI spec is > > here: > > > > https://static.docs.arm.com/ihi0042/g/aapcs32.pdf > > I suppose then that this behavior is not a OS imposition, but > the llvm calling convention. I'll search in their documentation. > I've never used clang before. > It is both a toolchain and an OS matter. The OS comes into play with things like syscalls and signal handling, where arg passing and stack alignment requirements have to be compatible between kernel and userland. Also, the toolchain and the OS are more tightly coupled in freebsd than you may be used to. Freebsd isn't a kernel with other stuff from other sources glommed on, it's the full combination of kernel and userland and toolchain and build system all integrated together into a single source base. The good news is that freebsd is in sync with pretty much the entire rest of the world in this regard. EABI (aka gnueabihf) is the standard used by all major OSes and toolchains these days for armv7. And clang is very gcc-compatible; if you have code that compiles with modern gcc, it should compile with no changes using clang; even command-line options and flags are compatible. -- Ian > > I can't help with the gcc thing, I've only used clang from base for > > compiling proprietary code. > > Well, deinstalling gcc fix the problem. I almost heard the soup nazi: > not gcc for you! > > Regards, > adr. > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org > "