This merge request makes curl compile using CHERI pure-capabilities.
It also has the benefit of adding data for libcurl's compilation.
It's a very small change that just adds a set of macros passed to the source
by clang if the code's compiling using pure-capabilities, plus a line to make curl
actually compile with pure-capabilities.
The following informations can be useful:
-
curl is not compiled by default. Adding it to android/device/arm/morello/morello_fvp_nano.mk might be necessary.
-
To test that curl was working properly, Morello's Android FVP was started, a remote shell was connected to it using adb, and then, on said remote shell, the following command was typed:
-
netcat -s 127.0.0.1 -p 8080 -L echo -e "HTTP/1.0 200 OK\nContent-Type: text/html\nContent-Length: 16\n\nThis is a test!\n"
-
On the FVP's shell, the following command was typed:
-
curl localhost:8080