From patchwork Thu Apr 16 19:04:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergiy Kibrik X-Patchwork-Id: 461836 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id EABDF140218 for ; Fri, 17 Apr 2015 05:04:34 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id D61FC2EA61; Thu, 16 Apr 2015 19:04:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8Gu3uTOoJF5J; Thu, 16 Apr 2015 19:04:31 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 825B22C278; Thu, 16 Apr 2015 19:04:31 +0000 (UTC) X-Original-To: uclibc@lists.busybox.net Delivered-To: uclibc@osuosl.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id ADE501C28DF for ; Thu, 16 Apr 2015 19:04:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id AAD5387F39 for ; Thu, 16 Apr 2015 19:04:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4BTlS7dy0ehV for ; Thu, 16 Apr 2015 19:04:28 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smtp.meta.ua (smtp.meta.ua [194.0.131.41]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 0ED3E8592A for ; Thu, 16 Apr 2015 19:04:27 +0000 (UTC) Received: from bargainingless-net.volia.net ([93.73.27.29]:63964 helo=[192.168.0.101]) by smtp.meta.ua with esmtpsa id 1Yip5M-0007ai-31 by authid ; Thu, 16 Apr 2015 22:04:24 +0300 Message-ID: <553007CF.6070906@meta.ua> Date: Thu, 16 Apr 2015 22:04:47 +0300 From: Sergiy Kibrik MIME-Version: 1.0 To: Bernhard Reutner-Fischer Subject: Re: is ARMv4T deprecated? References: <55218D56.40306@meta.ua> <9D9C402F-4266-4E0D-AA9A-94D5B0897224@gmail.com> <5526BEB1.4070106@meta.ua> <552ECB57.5080001@meta.ua> In-Reply-To: X-Enigmail-Version: 1.6 X-MUA-GeoIP: UA X-Gen: 0af3a3ac22d9cf130c56a5dd107a0e71 Cc: uClibc X-BeenThere: uclibc@uclibc.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Discussion and development of uClibc \(the embedded C library\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: uclibc-bounces@uclibc.org Sender: "uClibc" On 4/16/15 12:43 AM, Bernhard Reutner-Fischer wrote: >>> >> Please send me your >>> >> grep "memcpy\.o[sS]* " log.do_compile >>> >> The file should be somewhere around your >>> >> tmp-uclibc/work/armv4t-oe-linux-uclibceabi/uclibc/0.9.33+gitAUTOINC+*/temp/log.do_compile >> > >> > here it goes: http://pastebin.com/VGqf31ac > arm-poky-linux-uclibceabi-gcc -march=armv4t -marm -mthumb-interwork > -msoft-float -mlittle-endian -mthumb > > I see no notion of a tune? > > IIRC armv4t defaulted to arm7TDMI. Given that OE usually does not > configure for a default CPU (AFAICS) you have to pass a proper tune. > > My 920t build used: > arm-oe-linux-uclibceabi-gcc -march=armv4t -mthumb -mthumb-interwork > -O2 -mtune=arm920t > > in your local.conf, try: > FULL_OPTIMIZATION = "-O2 -mtune=arm920t" > ARM_INSTRUCTION_SET := "thumb" > > maybe you need some additional settings like DEFAULTTUNE TUNE_ARCH > TUNE_PKGARCH that you certainly use already. > I tried -mtune=arm920t some time ago once, but it didn't help. I changed return [from Thumb routine] code, and it did the trick, now busybox and couple of utilities seems to be working (yet I didn't run uclibc tests): What do you think of such fix? --- regards, Sergey diff --git a/libc/sysdeps/linux/arm/bits/arm_asm.h b/libc/sysdeps/linux/arm/bits/arm_asm.h index 04664b3..78dc6f0 100644 --- a/libc/sysdeps/linux/arm/bits/arm_asm.h +++ b/libc/sysdeps/linux/arm/bits/arm_asm.h @@ -13,12 +13,8 @@ unified assembly syntax. */ #define IT(t, cond) /* Code to return from a thumb function stub. */ -#ifdef __ARM_ARCH_4T__ -#define POP_RET pop {r2, pc} -#else #define POP_RET pop {r2, r3}; bx r3 #endif -#endif #if defined(__ARM_ARCH_6M__) /* Force arm mode to flush out errors on M profile cores. */