Ash Logan
f92657e8b5
coreinit: Use rplwrap for exit (__rplwrap_exit)
2019-04-22 12:43:37 +10:00
Ash Logan
4278819a01
samples: make WUT_ROOT makefile-local, always rely on DEVKITPRO
2019-04-09 20:59:32 +10:00
Ash Logan
09c16421d8
samples: Add explicit rules for .elf intermediates
2019-04-09 20:44:54 +10:00
Ash Logan
fb9b7ab3fb
wutstdc++: remove volatile keyword
...
Who knows? not me. Seems to work okay without it
wut_stdcpp.cpp
/home/ash/src/wut/libraries/wutstdc++/wut_stdcpp.cpp:3:9: error:
expected '(' before '__volatile__'
__asm__ __volatile__(
^~~~~~~~~~~~
(
/home/ash/src/wut/libraries/wutstdc++/wut_stdcpp.cpp:4:4: error:
expected unqualified-id before string constant
"\t.section\t.text.__wrap___gxx_personality_v0,\"ax\",@progbits\n"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ash/src/wut/libraries/wutstdc++/wut_stdcpp.cpp:3:22: error:
expected ')' before string constant
__asm__ __volatile__(
~^
)
"\t.section\t.text.__wrap___gxx_personality_v0,\"ax\",@progbits\n"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [/opt/devkitpro/devkitPPC/base_rules:13: wut_stdcpp.o]
Error 1
2019-04-09 20:41:45 +10:00
Ash Logan
869fe709ea
Revert "wutstdc++: Move __gxx_personality to dedicated Assembly file"
...
This reverts commit 370eeb28e9
.
I didn't know what this did, sorry.
2019-04-09 20:26:35 +10:00
Ash Logan
81285c71f6
samples: port helloworld_cpp to make
2019-04-09 19:28:27 +10:00
Ash Logan
b7a12a04a7
travis: Update WUT_ROOT temporary location
2019-04-09 19:25:27 +10:00
Ash Logan
592110eeb3
travis: remove spurious cd
2019-04-09 19:21:17 +10:00
Ash Logan
aa122e0366
travis: Fixups for new build system
2019-04-09 19:17:52 +10:00
Ash Logan
37afdf9095
samples: port helloworld to make
2019-04-09 19:15:24 +10:00
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