Commit Graph

61 Commits

Author SHA1 Message Date
James Benton
5ce21d4fdc rplgen: Fix section flags for dimport section. 2018-05-29 10:52:40 +01:00
James Benton
c412250d48 tools/rplgen: Move trim to utils.h 2018-05-29 10:52:40 +01:00
James Benton
607b59fb1b Skip zlib install. 2018-05-25 14:48:13 +01:00
James Benton
35c9b5bfdd Do not use ExternalProject_Add for tools. 2018-05-25 13:58:07 +01:00
James Benton
17ea24cdb0 Add zlib as a submodule. 2018-05-25 13:57:47 +01:00
James Benton
11adfb8f07 elf2rpl: Change fixLoaderVirtualAddress to use section type instead of name. 2018-05-25 00:17:22 +01:00
James Benton
a1072fc729 elf2rpl: Fix .rodata section flags to have WRITE.
Yes, READ ONLY data requires a WRITE flag.
2018-05-25 00:16:57 +01:00
James Benton
0a4a7c66b3 elf2rpl: Process sections by type, not by name. 2018-05-24 23:48:33 +01:00
James Benton
d6478d831e elf2rpl: Add support for section deflation. 2018-05-24 23:32:35 +01:00
James Benton
55b2695eaf Add some .rpl verification to readrpl 2018-05-24 23:32:08 +01:00
James Benton
8add0d0503 elf2rpl: Align textSize, dataSize, loadSize. 2018-05-23 17:32:12 +01:00
James Benton
bc12c9abef elf2rpl: Fix REL32 -> REL16 conversion. 2018-05-23 16:11:50 +01:00
James Benton
c7325899be readRpl: Add SHT_RPL_CRCS value check 2018-05-23 15:36:25 +01:00
James Benton
541676ce38 elf2rpl: Fix SHT_RPL_CRCS section 2018-05-23 15:36:07 +01:00
James Benton
9bcf22e40f Add tools readrpl, udplogserver. 2018-05-23 12:35:24 +01:00
James Benton
959e4897c1 Fix type cast warnings in elf2rpl. 2018-05-23 11:25:49 +01:00
James Benton
09606f873e tools: Add be_val.h 2018-05-23 11:25:38 +01:00
James Benton
fc10605172 Rewrite! 2018-05-23 09:47:28 +01:00
CreeperMario
76a8b8e292 readrpl: Return -1 instead of false in main()
* This suppresses a compiler warning emitted by clang, about returning a
boolean value when an integer is expected.
2017-10-10 09:12:54 +10:30
CreeperMario
d44b7f774e Update cppformat v2 to fmtlib v4
* I did this mainly to remove some build warnings that were showing up
in cppformat v2 underneath clang (the default macOS compiler)
* At this point, WUT will build on macOS with no warnings whatsoever.
2017-08-27 18:41:08 +09:30
CreeperMario
ac4ce95f84 udplogserver: Flush output buffer when sent a message
* Because we are no longer adding a new line, which automatically
flushes the buffer.
2017-08-20 17:51:45 +09:30
CreeperMario
84d1957066 udplogserver: Do not automatically add a new line to log outputs. 2017-08-19 21:23:20 +09:30
James Benton
c265a9f4db Fix udplogserver Linux build 2017-06-02 13:54:55 +01:00
James Benton
43e1b0ab4f Add UDP log server. 2017-06-02 11:52:30 +01:00
James Benton
bfeac63818 Rearrange source tree. 2017-05-07 01:37:13 +01:00
James Benton
def87c9bc8 Fix zlib debug library path. 2017-05-05 16:59:24 +01:00
James Benton
8af0ffe9c7 Move wut to using CMake instead of Makefiles.
The old makefile solution will still be around on branch "make".
2017-03-23 12:18:02 +00:00
CreeperMario Games
d7a2af2a0b Added ICInvalidateRange to coreinit and modified Makefiles 2016-11-06 09:48:30 +10:30
James Benton
3aab93aa14 Makefile: Build tools into tools/bin 2016-10-11 22:41:28 +01:00
James Benton
07fafab7b4 tools: Update implcheck to compare rpl exports with an exports.h file.
Will verify that you do not have any extra exports which should not exist.
Can optionally print unimplemented / implemented function & data exports.
2016-10-11 22:17:24 +01:00
dimok789
be3bcba701 - added missing gcc_except_table section
- added ignore of paddings in elf2rpl
2016-10-11 19:04:55 +02:00
shinyquagsire23
e0f2125068 Move rodata into text so that jump tables work properly without -fno-jump-tables 2016-09-28 23:50:17 -06:00
James Benton
e4c91162d4 Add support for specifying install directory with "make install DESTDIR=x" 2016-08-25 12:07:34 +01:00
James Benton
e6e886bdbd Update cygwin makefile shenanigans. 2016-08-19 00:34:39 +01:00
James Benton
23987e8bc3 Fix handling of TLS export names in readrpl.
They have the high bit set for some odd reason...!
2016-08-16 11:38:52 +01:00
shinyquagsire23
52d09f5a7b tempSize is based on all sections with a 0 address except RPL_CRCS and RPL_FILEINFO 2016-08-13 11:47:17 -07:00
shinyquagsire23
23dff0fe81 Have elf2rpl write in same allignments as reflected in rpl.ld, fix issue with .tbss where GCC is dumb and doesn't increment the address 2016-07-30 16:56:25 -07:00
shinyquagsire23
07245cf136 Fix issue with import handling where import section symbols were indexed incorrectly 2016-07-24 17:05:44 -07:00
James Benton
a3f9fb0564 Add command line options to readrpl. 2016-07-24 11:45:30 +01:00
shinyquagsire23
91b00dcab2 Assume largest possible size increase after alignment for tempSize 2016-07-23 19:57:59 -07:00
shinyquagsire23
2574e29958 Fix corner case with findSymbol in elf2rpl 2016-07-23 18:01:54 -07:00
shinyquagsire23
9173f0f6c3 Adjustments for linking, rpx/rpl generation 2016-07-22 20:35:20 -07:00
James
2c69f7d9be Merge pull request #10 from shinyquagsire23/elf2rpl-fixes
Collective fixes for elf2rpl
2016-07-17 22:37:11 +01:00
shinyquagsire23
072063e9d0 Tweaks to elf2rpl in order to pass all loader checks 2016-07-16 17:29:20 -07:00
shinyquagsire23
6825b2b108 Write in data in the order that loader expects it 2016-07-15 20:32:12 -07:00
shinyquagsire23
74de2a77dc Fix elf2rpl CRC section endianness 2016-07-15 15:06:47 -07:00
shinyquagsire23
77dee438d8 Add SHT_RPL_IMPORT signatures to elf2rpl 2016-07-14 14:27:15 -07:00
shinyquagsire23
9e4bd3a8b5 Fix readrpl temp zlib buffer size 2016-07-13 17:28:40 -07:00
James Benton
469b69d11f Fix elf2rpl incorrect section type output for bss. 2016-06-08 01:11:23 +01:00
James Benton
dd32ac1e70 Update tools vcxproj to add missing includes. 2016-06-03 00:04:27 +01:00