This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new bbf60ec685 gnu++20:fix ld error.
bbf60ec685 is described below

commit bbf60ec685b6b76c4cf7a33e4c2036eeffbf285d
Author: cuiziwei <[email protected]>
AuthorDate: Fri Jan 26 10:30:13 2024 +0800

    gnu++20:fix ld error.
    
    LD: nuttx
    arm-none-eabi-ld: warning: net_sendfile.o: missing .note.GNU-stack section 
implies executable stack
    arm-none-eabi-ld: NOTE: This behaviour is deprecated and will be removed in 
a future version of the linker
    arm-none-eabi-ld: warning: nuttx/nuttx has a LOAD segment with RWX 
permissions
    arm-none-eabi-ld: 
apps/staging/libfeature.a(feature_framework.cpp.frameworks.base.feature_1.o): 
in function `std::__1::__throw_length_error[abi:un170006](char const*)':
    
    Signed-off-by: cuiziwei <[email protected]>
---
 libs/libxx/__config_site | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libs/libxx/__config_site b/libs/libxx/__config_site
index 8843326f8a..a151662f44 100644
--- a/libs/libxx/__config_site
+++ b/libs/libxx/__config_site
@@ -38,6 +38,9 @@
 #define _LIBCPP_ENABLE_HARDENED_MODE_DEFAULT 0
 #define _LIBCPP_ENABLE_DEBUG_MODE_DEFAULT 0
 
+#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS 1
+#define _LIBCPP_AVAILABILITY_HAS_NO_VERBOSE_ABORT 1
+
 // __USE_MINGW_ANSI_STDIO gets redefined on MinGW
 #ifdef __clang__
 #  pragma clang diagnostic push

Reply via email to