Re: 7.0.0 update to 8.9.0 PIC register clobbered

Jeffrey Walton <[email protected]> Tue, 16 Jan 2024 05:13:29 -0800 (PST)
Newsgroups gmane.comp.encryption.cryptopp
Message-ID <[email protected]>
------=_Part_94563_942670544.1705410809128
Content-Type: multipart/alternative; 
	boundary="----=_Part_94564_125681971.1705410809128"

------=_Part_94564_125681971.1705410809128
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable



On Tuesday, January 16, 2024 at 8:10:30=E2=80=AFAM UTC-5 [email protected] =
wrote:

CentOS 7..2009
gcc 4.8.5-44

I am updating from cryptopp 7.0.0 to 8..0 and receive the following error

gcm.cpp: In member function 'virtual size_t=20
CryptoPP::GCM_Base::AuthenticateBlocks(const byte*, size_t)':
gcm.cpp:733:18: error: PIC register clobbered by '%ebx' in 'asm'

Is the correct solution to remove -fPIC from the makefile?
(other than updating to a newer compiler....)


I believe this is a false positive. EBX is saved, and then restored around=
=20
<https://github.com/weidai11/cryptopp/blob/master/gcm.cpp#L717>.

Jeff

--=20
You received this message because you are subscribed to the Google Groups "=
Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/=
cryptopp-users/12db8152-7761-40bc-9bbb-03b8224b7606n%40googlegroups.com.

------=_Part_94564_125681971.1705410809128
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<br /><br /><div><div dir=3D"auto">On Tuesday, January 16, 2024 at 8:10:30=
=E2=80=AFAM UTC-5 [email protected] wrote:<br /></div><blockquote style=3D"=
margin: 0px 0px 0px 0.8ex; border-left: 1px solid rgb(204, 204, 204); paddi=
ng-left: 1ex;">CentOS 7..2009<div>gcc 4.8.5-44</div><div><br /></div><div>I=
 am updating from cryptopp 7.0.0 to 8..0 and receive the following error</d=
iv><div><div style=3D"color: rgb(34, 34, 34); font-family: Arial, Helvetica=
, sans-serif; font-size: small;"><span style=3D"font-family: Aptos, Aptos_E=
mbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);"><br /></span></div><div style=3D"color: rgb(3=
4, 34, 34); font-family: Arial, Helvetica, sans-serif; font-size: small;"><=
span style=3D"font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, =
Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">gcm.=
cpp: In member function 'virtual size_t CryptoPP::GCM_Base::AuthenticateBlo=
cks(const byte*, size_t)':</span></div><div style=3D"color: rgb(34, 34, 34)=
; font-family: Arial, Helvetica, sans-serif; font-size: small;"><span style=
=3D"font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, H=
elvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">gcm.cpp:733:18=
: error: PIC register clobbered by '%ebx' in 'asm'</span></div><div style=
=3D"color: rgb(34, 34, 34); font-family: Arial, Helvetica, sans-serif; font=
-size: small;"><span style=3D"font-family: Aptos, Aptos_EmbeddedFont, Aptos=
_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb=
(0, 0, 0);"><br /></span></div><div style=3D"color: rgb(34, 34, 34); font-f=
amily: Arial, Helvetica, sans-serif; font-size: small;"><span style=3D"font=
-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica=
, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">Is the correct solutio=
n to remove -fPIC from the makefile?</span></div><div style=3D"color: rgb(3=
4, 34, 34); font-family: Arial, Helvetica, sans-serif; font-size: small;"><=
span style=3D"font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, =
Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">(oth=
er than updating to a newer compiler....)</span></div></div></blockquote><d=
iv><br /></div><div>I believe this is a false positive. EBX is saved, and t=
hen restored around &lt;https://github.com/weidai11/cryptopp/blob/master/gc=
m.cpp#L717&gt;.</div><div><br /></div><div>Jeff<br /> </div></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;Crypto++ Users&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:[email protected]">cryp=
[email protected]</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/d/msgid/cryptopp-users/12db8152-7761-40bc-9bbb-03b8224b7606n%40googlegro=
ups.com?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d=
/msgid/cryptopp-users/12db8152-7761-40bc-9bbb-03b8224b7606n%40googlegroups.=
com</a>.<br />

------=_Part_94564_125681971.1705410809128--

------=_Part_94563_942670544.1705410809128--