wolfSSL / wolfssl

The wolfSSL library is a small, fast, portable implementation of TLS/SSL for embedded devices to the cloud. wolfSSL supports up to TLS 1.3 and DTLS 1.3!
https://www.wolfssl.com
GNU General Public License v2.0
2.23k stars 799 forks source link

ld: warning: alignment (4) of atom '_cpuFlagsSet' from '...x25519_asm.o' is too small and may result in unaligned pointers #7311

Closed dgarske closed 3 months ago

dgarske commented 4 months ago

Version

master

Description

On MacOS 14.3.1 Intel Core i9 (MacBookPro16,1) and Apple clang (Xcode)

% gcc --version
Apple clang version 15.0.0 (clang-1500.3.9.4)
Target: x86_64-apple-darwin23.3.0
Thread model: posix
%./configure --enable-all --enable-sp=yes,asm --enable-intelasm --enable-aesni --enable-wolftpm && make
...
  CCLD     src/libwolfssl.la
ld: warning: alignment (4) of atom '_cpuFlagsSet' from '/Users/davidgarske/GitHub/wolfssl/wolfcrypt/src/.libs/src_libwolfssl_la-fe_x25519_asm.o' is too small and may result in unaligned pointers
ld: warning: reducing alignment of section __TEXT,__text from 0x10000 to 0x1000 because it exceeds segment maximum alignment
SparkiDev commented 3 months ago

Try out PR and let me know if this makes things better.