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]
Message-ID: <20110715153253.GA6590@somewhere>
Date:	Fri, 15 Jul 2011 17:32:57 +0200
From:	Frederic Weisbecker <fweisbec@...il.com>
To:	David Ahern <dsahern@...il.com>, Ingo Molnar <mingo@...e.hu>
Cc:	linux-perf-users@...r.kernel.org, linux-kernel@...r.kernel.org,
	acme@...stprotocols.net, peterz@...radead.org, paulus@...ba.org
Subject: Re: [PATCH] perf tools, x86: fix 32-bit compile on 64-bit system

On Fri, Jul 15, 2011 at 09:27:20AM -0600, David Ahern wrote:
> On 07/11/2011 03:38 PM, David Ahern wrote:
> > Builds for 32-bit binaries on a 64-bit host currently fail with the error:
> > 
> > gcc -o /tmp/perf-ppc/bench/mem-memcpy-x86-64-asm.o -c -fno-omit-frame-pointer -ggdb3 -Wall -Wextra -std=gnu99 -Werror -O6 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Wformat-y2k -Wshadow -Winit-self -Wpacked -Wredundant-decls -Wstrict-aliasing=3 -Wswitch-default -Wswitch-enum -Wno-system-headers -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -Wdeclaration-after-statement -m32 -fstack-protector-all -Wstack-protector -Wvolatile-register-var -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Iutil/include -Iarch/x86/include -I/tmp/perf-ppc/ -DLIBELF_NO_MMAP -DDWARF_SUPPORT -DNO_NEWT_SUPPORT -DNO_LIBPERL -DNO_LIBPYTHON -DHAVE_CPLUS_DEMANGLE -DNO_STRLCPY -DARCH_X86_64 bench/mem-memcpy-x86-64-asm.S
> > bench/../../../arch/x86/lib/memcpy_64.S: Assembler messages:
> > bench/../../../arch/x86/lib/memcpy_64.S:29: Error: bad register name `%rdi'
> > bench/../../../arch/x86/lib/memcpy_64.S:34: Error: invalid instruction suffix for `movs'
> > bench/../../../arch/x86/lib/memcpy_64.S:50: Error: bad register name `%rdi'
> > bench/../../../arch/x86/lib/memcpy_64.S:61: Error: bad register name `%rdi'
> > ...
> > 
> > The problem is the detection of the host arch without considering passed in
> > flags. This change fixes 32-bit builds via:
> > 
> > make EXTRA_CFLAGS=-m32 
> > 
> > and 64-bit builds still reference the memcpy_64.S.
> > 
> 
> Fairly trivial change to the Makefile. Any objections? I believe Arnaldo
> is out for a few more days and realistically another week to get through
> a month's backlog.
> 
> David

Yeah, looks good.

Thanks.

Acked-by: Frederic Weisbecker <fweisbec@...il.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ