stsp / dj64dev

dj64dev development suite
https://github.com/stsp/dj64dev/
GNU Lesser General Public License v3.0
6 stars 1 forks source link

explore the nostdlib possibility #15

Closed stsp closed 1 month ago

stsp commented 1 month ago

-nostdinc was dropped in 316e8e6c9 mainly due to longjumps and mallocs. But many other things have since "leaked" into an external libc. -nostdlib seems wasn't ever attempted. Would be interesting to explore the nostdlib/nostdinc possibility again.

stsp commented 1 month ago

Also may be interesting to use the --no-undefined option.

stsp commented 1 month ago

-nolibc fails CI with undefined reference to__stack_chk_fail'`. Perhaps needs to experiment with --as-needed.