Open RandyGaul opened 6 years ago
This isn't related to the openssl build at all. The problem is the way -fPIC uses the ebx register on GCC 4 (and that my 32-bit tests were done on a modern compiler). I'll look into a fix.
As per henso's suggestion, probably going to just not build in gcc4 and do 5 instead as a workaround.
Potential fix: https://github.com/awslabs/s2n/pull/830
Problem:
Attempting to compile for 32bit using the flags from the usage guide for gcc4:
And ran into a compile error in s2n_random.c:
Proposed Solution:
No idea what the solution here would be. Should the
setarch
flags be changed to not include-fPIC
? Found a seemingly relevant SO answer talking about theebx
register not being allowed for usage within inline asm if the-fPIC
flag is set: https://stackoverflow.com/questions/22160093/inconsistent-operand-constraints-in-an-asm/28976166#28976166Any ideas?