lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Sun, 22 Nov 2015 22:18:54 +0100
From:	Arnd Bergmann <arnd@...db.de>
To:	Måns Rullgård <mans@...sr.com>
Cc:	Russell King - ARM Linux <linux@....linux.org.uk>,
	Peter Maydell <peter.maydell@...aro.org>,
	Nicolas Pitre <nico@...xnic.net>,
	"linux-arm-msm@...r.kernel.org" <linux-arm-msm@...r.kernel.org>,
	Stephen Boyd <sboyd@...eaurora.org>,
	lkml - Kernel Mailing List <linux-kernel@...r.kernel.org>,
	Steven Rostedt <rostedt@...dmis.org>,
	arm-mail-list <linux-arm-kernel@...ts.infradead.org>
Subject: Re: [RFC/PATCH 0/3] ARM: Use udiv/sdiv for __aeabi_{u}idiv library functions

On Sunday 22 November 2015 20:39:54 Måns Rullgård wrote:
> Arnd Bergmann <arnd@...db.de> writes:
> 
> > arnd@...rfel:/tmp$ arm-linux-gnueabihf-gcc -Wall -O2 -mcpu=cortex-a15 idiv.c -c -o idiv-arm.o
> > arnd@...rfel:/tmp$ objdump -dr idiv-arm.o   
> >
> > idiv-arm.o:     file format elf32-littlearm
> >
> > Disassembly of section .text:
> >
> > 00000000 <udiv>:
> >    0:   fbb0 f0f1       udiv    r0, r0, r1
> >    4:   4770            bx      lr
> >    6:   bf00            nop
> >
> > 00000008 <sdiv>:
> >    8:   fb90 f0f1       sdiv    r0, r0, r1
> >    c:   4770            bx      lr
> >    e:   bf00            nop
> 
> Your compiler seems to default to thumb so you should add -marm.
> 

Sorry about that.

	Arnd

arnd@...rfel:/tmp$ arm-linux-gnueabihf-gcc -Wall -O2 -mcpu=cortex-a15 idiv.c -c -o idiv-arm.o -marm
arnd@...rfel:/tmp$ objdump -dr idiv-arm.o 

idiv-arm.o:     file format elf32-littlearm


Disassembly of section .text:

00000000 <udiv>:
   0:   e730f110        udiv    r0, r0, r1
   4:   e12fff1e        bx      lr

00000008 <sdiv>:
   8:   e710f110        sdiv    r0, r0, r1
   c:   e12fff1e        bx      lr

Download attachment "idiv-arm.o" of type "application/x-object" (861 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ