7.0.0 update to 8.9.0 PIC register clobbered

67 views
Skip to first unread message

Phil C

unread,
Jan 16, 2024, 8:10:30 AMJan 16
to Crypto++ Users
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 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....)

Jeffrey Walton

unread,
Jan 16, 2024, 8:13:29 AMJan 16
to Crypto++ Users
I believe this is a false positive. EBX is saved, and then restored around <https://github.com/weidai11/cryptopp/blob/master/gcm.cpp#L717>.

Jeff

Phil C

unread,
Jan 16, 2024, 9:10:56 AMJan 16
to Crypto++ Users
Thank you for looking at it. I believe this is a compiler issue that has been corrected in gcc. I do not get the issue with gcc 12.2.0 on a test debian system. Unfortunately I need to use the old c7 / gcc combination.

Phil C

unread,
Jan 16, 2024, 9:11:09 AMJan 16
to Crypto++ Users
I should also note that I am compiling to link with a 32bit application, so including -Wa,--32 -m32
Reply all
Reply to author
Forward
0 new messages