Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can not disable sse in gcc

Tags:

c

disassembly

I am trying to disable sse and sse2 instructions. I am cross compiling for x86 in a x64 system. I am also using -static to statically link with libc. Although I use -mno-sse and -mno-sse2, when I disassemble the binary I still see a call to strcpy_sse2, any solution?

like image 730
Afshin Avatar asked Oct 25 '25 07:10

Afshin


2 Answers

For 64 bit Use -mno-sse gcc option

like image 164
anshul garg Avatar answered Oct 27 '25 22:10

anshul garg


It is highly possible that your library still contains sse instructions. You will have to build the library for your cross system as well and do that without sse instructions.

like image 41
Bryan Olivier Avatar answered Oct 27 '25 20:10

Bryan Olivier



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!