From 58ac57861f3d4768dfbd41dbf235ad72cea490ea Mon Sep 17 00:00:00 2001 From: Joakim Strandberg Date: Mon, 17 Jul 2023 19:50:05 +0200 Subject: [PATCH] Updated the README.md file and made sure that using default.gpr to build the Ada TLS server application does not try to build the Ada TCL client application that makes use of the secondary stack. --- wrapper/Ada/README.md | 1 + wrapper/Ada/default.gpr | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/wrapper/Ada/README.md b/wrapper/Ada/README.md index 0e0d39e01..67c73c4c0 100644 --- a/wrapper/Ada/README.md +++ b/wrapper/Ada/README.md @@ -63,6 +63,7 @@ chmod +x gnat-2021-20210519-x86_64-linux-bin ```sh export PATH="/opt/GNAT/2021/bin:$PATH" +cd wrapper/Ada gprclean gprbuild default.gpr gprbuild client.gpr diff --git a/wrapper/Ada/default.gpr b/wrapper/Ada/default.gpr index dc4c5014f..37227b6f5 100644 --- a/wrapper/Ada/default.gpr +++ b/wrapper/Ada/default.gpr @@ -6,6 +6,13 @@ project Default is "../../src", "../../wolfcrypt/src"); + -- Don't build the tls client application because it makes use + -- of the Secondary Stack due to usage of the Ada.Command_Line + -- package. All other Ada source code does not use the secondary stack. + for Excluded_Source_Files use ("tls_client_main.adb", + "tls_client.ads", + "tls_client.adb"); + for Object_Dir use "obj"; for Main use ("c_tls_client_main.c",