Commit Graph

608 Commits

Author SHA1 Message Date
Ash Logan
5f1da6432c samples: Move all into cmake directory, WUT_ROOT->DEVKITPRO/wut 2019-04-09 18:39:03 +10:00
Ash Logan
370eeb28e9 wutstdc++: Move __gxx_personality to dedicated Assembly file
I was getting issues with __volatile__ for unknown reason, so moving 
this to a dedicated file sidesteps the issue entirely and passes this 
straight to GAS.
2019-04-09 16:44:42 +10:00
fincs
0b920cf9b9 Automatically link wutstdc++ when C++ is used 2019-02-12 12:46:34 +01:00
fincs
3e179891e9 Make sure .fexports/.dexports sections don't get garbage collected 2019-02-12 12:46:34 +01:00
fincs
26ac7b3ff2 wutmalloc: Bugfixes, see details:
- Added (dummy) __init/fini_wut_malloc stubs called by wutcrt
  in order to ensure that wutmalloc gets linked in
- malloc/realloc/calloc now properly set errno to ENOMEM during failure
- realloc no longer fails if ptr==NULL (in this case it works
  like a regular malloc)
- realloc no longer does an out of bounds copy if the new size
  is smaller than the old size
- free(NULL) is now supported as per the C standard
- Disabled sbrk/malloc-lock support code in wutnewlib because
  newlib's malloc is replaced with wutmalloc
2019-02-12 12:46:34 +01:00
fincs
ee3bb10df4 First pass at adopting a devkitPro-style build system, see details:
- Added wut_rules and wut/rpx/rpl.specs to share/
- Replaced wut's CMake-based buildsystem with a standard Makefile
- Conflated all wut libraries into a single libwut.a library
- wut's old buildsystems (CMake & plain make) are broken as a result,
  this will be fixed in the future
- Docs, tests and samples are not buildable either at the moment
- wutcrt/wutnewlib:
  - RPX start function is __rpx_start, while RPL is __rpl_start
  - __init/fini_wut_* functions are no longer weak
  - __init_wut/__fini_wut are instead weak
  - Removed _exit implementation
  - exit syscall now points to _Exit instead of pointing to itself
- wutstdc++:
  - Renamed .cc files to .cpp
  - Temporarily disabled, due to an issue that will be addressed shortly
- wutdevoptab:
  - Fixed uninitialized variable warnings in __wut_fs_read/write
2019-02-12 12:46:28 +01:00
James
c86282fd7a
Update README.md
Fix travis badge url.
2019-01-28 18:02:56 +00:00
James
93da85e0df
Update README.md 2019-01-27 14:20:17 +00:00
James Benton
edd0753aeb Use devkitpro installed wut-tools. 2019-01-27 14:14:52 +00:00
James Benton
7495a9997f coreinit: Add __OSValidateAddressSpaceRange. 2019-01-10 10:24:27 +00:00
James Benton
7e47e4daf4 tests: Add avm/drc.h to header compile test list. 2019-01-10 10:05:14 +00:00
James Benton
58d967ce0c cmake: Try find DEVKITPPC from PATH. 2019-01-10 10:05:14 +00:00
James Benton
9e0394aae3 avm: Add AVMGetDRCScanMode. 2019-01-10 10:05:14 +00:00
James Benton
5177d7a6ee samples/swkbd: Rename output to swkbd_sample.rpx to avoid name conflict with swkbd.rpl 2019-01-10 10:05:14 +00:00
James Benton
7bee4c7ca4 coreinit: Add OSIsAddressValid. 2019-01-10 10:05:14 +00:00
James Benton
80f57713b8 coreinit: Add DisassemblePPCOpcode. 2019-01-10 10:05:14 +00:00
BullyWiiPlaza
41e96a5421 Add missing wut offset checks 2019-01-09 09:47:28 +00:00
BullyWiiPlaza
ed4b52408b Add missing OSContext fields from Diibugger 2019-01-09 09:47:28 +00:00
James
3d1b0f3774
Update README.md 2019-01-07 12:21:11 +00:00
James Benton
8676bcdc01 tools/common: Add byte_swap fallbacks for unknown platforms. 2019-01-06 11:19:09 +00:00
Ash
56f70b2865 toolchain.cmake: Use include_directories instead of -I
This helps some cmake analysers and the like to better get an idea of how wut works, while having the same effect in terms of actual compiling.
2018-12-09 11:37:57 +00:00
Maschell
ea5dd93e1e Readme: Building on Windows: "build-essentials" -> "build-essential" 2018-12-04 03:26:59 -08:00
Ash
39ccbcfc0f make: Strip debug sections before elf2rpl 2018-11-07 11:52:39 +00:00
Ash
f87b3f9347 make: Fix comparisons for sh compatibility
Thanks to @rw-r-r-0644 for this one
2018-11-07 11:52:39 +00:00
Ash
e950c6b937 make: Allow disabling the depends or compilation rules 2018-11-07 11:52:39 +00:00
Ash
24f46559da make: extra space in CFLAGS removed 2018-11-07 11:52:39 +00:00
Ash
c0d3788b8e make: Add wut makefile 2018-11-07 11:52:39 +00:00
rw-r-r-0644
7055d69c4f Strip debug sections before running elf2rpl to prevent crashes 2018-11-06 19:42:45 +00:00
James Benton
f281a995b3 gx2: Add GX2_COMP_MAP and GX2_SQ_SEL_{RGBA} to utils.h 2018-10-21 15:25:32 +01:00
James Benton
fb4a54fc4c Rename GX2_SQ_SELMASK macro to GX2_SEL_MASK. 2018-10-21 15:24:25 +01:00
rw-r-r-0644
5201b78bd0 gx2: Add points primitive mode 2018-10-21 15:20:33 +01:00
James Benton
857fcd8eea Build libraries with -Wall and -Werror. 2018-10-06 10:50:32 +01:00
James Benton
069e28acec Make the devoptab code more consistent. 2018-10-06 10:41:24 +01:00
James Benton
63119deb63 Fix calculateSectionOffsets for import sections.
Fuck.
2018-09-30 10:49:09 +01:00
James Benton
b03e4afc49 elf2rpl: Include import sections in the read section offsets. 2018-09-30 09:08:47 +01:00
James Benton
ea009ce10b wutcrt: Forward newlib _exit to the coreinit.rpl _Exit 2018-09-30 08:40:38 +01:00
James Benton
b6c024fc5c elf2rpl: Set file offset to 0 for the SHT_NOBITS and SHT_NULL sections. 2018-09-30 08:40:38 +01:00
James Benton
400318c3d1 Rename rpl_main to rpl_entry. 2018-09-30 08:40:38 +01:00
James
9a3483638e
Merge pull request #86 from QuarkTheAwesome/master
include/sysapp: Add basic documentation
2018-09-17 10:43:29 +01:00
James Benton
74a29ac77a elf2rpl: Fix calculateSectionOffsets. 2018-09-17 10:40:30 +01:00
James Benton
7a29fb7c85 readrpl: Fix verifyFileBounds. 2018-09-17 10:40:17 +01:00
James Benton
e0c27d8a2f Fix IOSVec. 2018-09-14 11:39:03 +01:00
James Benton
3605823849 Add missing datamem section allocation for .bss
Only worked before out of luck with the ALIGNs!
2018-09-14 09:53:06 +01:00
James Benton
7c9120db96 Add alignas specifiers for OSContext, OSSpinLock, OSThread. 2018-09-14 09:02:46 +01:00
James Benton
f9fb0d8f24 Remove alignment for data sections from linker script. 2018-09-14 08:45:05 +01:00
James Benton
bc9ececcc1 Add some missing fields in FSStat. 2018-09-14 08:43:46 +01:00
James Benton
a5053a2a1a Fix padding in sockaddr_storage 2018-09-02 09:33:56 +01:00
Ash
6db746212c include/sysapp: Add basic documentation 2018-08-28 19:50:41 +10:00
James
4ff6c40f2c
Merge pull request #83 from QuarkTheAwesome/master
COS Docs: Enable JAVADOC_AUTOBRIEF
2018-07-26 00:26:44 -07:00
Ash
c9b2013b72 include/coreinit: Fix up some more Doxygen briefs 2018-07-25 10:45:06 +10:00