Gentoo Archives: gentoo-alt

From: Michael Haubenwallner <michael.haubenwallner@×××××××.at>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] Re: [prefix] a few missing things for smooth x86-linux bootstrap
Date: Thu, 19 Apr 2007 15:50:13
Message-Id: 1176997973.7328.92.camel@localhost
In Reply to: Re: [gentoo-alt] Re: [prefix] a few missing things for smooth x86-linux bootstrap by Matt Michalowski
1 On Thu, 2007-04-19 at 14:54 +1000, Matt Michalowski wrote:
2 > Fabian Groffen wrote:
3 > > On 19-04-2007 00:27:36 +1000, Matt Michalowski wrote:
4 > >
5 <snip>
6 > # dhcp213:.../work/openssl-0.9.8e/crypto/engine# i686-pc-linux-gnu-gcc
7 > -I.. -I../.. -I../../include -fPIC -DOPENSSL_PIC -DZLIB_SHARED -DZLIB
8 > -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN
9 > -DTERMIO -Wall -DOPENSSL_BN_ASM_PART_WORDS -DSHA1_ASM -DMD5_ASM
10 > -DRMD160_ASM -DAES_ASM -Wa,--noexecstack -c -o eng_padlock.o
11 > eng_padlock.c -march=i686 -O0
12 > eng_padlock.c: In function 'padlock_xcrypt_ecb':
13 > eng_padlock.c:445: error: can't find a register in class 'GENERAL_REGS'
14 > while reloading 'asm'
15 >
16 > where as: (-O1 -g)
17 > # dhcp213:.../work/openssl-0.9.8e/crypto/engine# i686-pc-linux-gnu-gcc
18 > -I.. -I../.. -I../../include -fPIC -DOPENSSL_PIC -DZLIB_SHARED -DZLIB
19 > -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN
20 > -DTERMIO -Wall -DOPENSSL_BN_ASM_PART_WORDS -DSHA1_ASM -DMD5_ASM
21 > -DRMD160_ASM -DAES_ASM -Wa,--noexecstack -c -o eng_padlock.o
22 > eng_padlock.c -O1 -g
23 >
24 > compiles fine.
25 >
26 > Now for my $0.02. eng_padlock is for VIA Padlock hardware support (hence
27 > its ASM implementation), which I don't imagine is many x86 users let
28 > alone prefix portage x86 users (I could be wrong :) ). It's pretty easy
29 > to disable the VIA support, and OpenSSL will still function without it.
30 > I've attached a patch. Maybe haubi will have some better ideas.
31
32 Thanks for the -O1 hint: My better(?) idea was to drop a testcase on
33 gcc-help...
34
35 /haubi/
36
37 --
38 gentoo-alt@g.o mailing list