Skip to content
Snippets Groups Projects
Commit 232e364f authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Remove warnings, build openlibm without stack protector

parent 477e8eb4
No related branches found
No related tags found
No related merge requests found
......@@ -4,10 +4,7 @@ set -ex
cargo build
cargo build --manifest-path src/crt0/Cargo.toml
cd openlibm
make
cd ..
CFLAGS=-fno-stack-protector make -C openlibm
cd tests
make clean
make run
make -C tests clean
make -C tests run
/*.out
/gen/
/alloc
/args
......@@ -6,19 +7,15 @@
/brk
/chdir
/create
/create.out
/ctype
/dup
/dup.out
/error
/fchdir
/fcntl
/fsync
/ftruncate
/ftruncate.out
/getid
/link
/link.out
/math
/mem
/setid
......@@ -36,5 +33,5 @@
/string/strrchr
/string/strspn
/unlink
/unlink.out
/write
......@@ -4,7 +4,6 @@ EXPECT_BINS=\
atoi \
brk \
args \
chdir \
create \
ctype \
dup \
......@@ -35,6 +34,7 @@ EXPECT_BINS=\
BINS=\
$(EXPECT_BINS) \
alloc \
chdir \
getid \
setid
......
initial cwd: /home/jeremy/Projects/relibc/tests
final cwd: /home/jeremy/Projects/relibc
cos(3.14) = -0.9999987483024597
#include <stdio.h>
#include <unistd.h>
int main(int argc, char** argv) {
......
#include <math.h>
#include <stdio.h>
int main(int argc, char ** argv) {
float c = cos(3.14);
double pi = 3.14;
float c = cos(pi);
printf("cos(%f) = %f\n", pi, c);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment