Commit Graph
20 Commits
Author SHA1 Message Date
Ryan Houdek a28df9f5c1 Moves SonicUtils in to FEXCore
Removes the extraneous and dead VM CPU backend
2020-11-29 00:30:28 -08:00
Ryan Houdek 6605c6e6eb Removes dead TLS setting code
This is no longer necessary now that phire fixed mapping of static elfs
2020-11-25 13:18:57 -08:00
Scott Mansell f29e0441e3 Fix mapping of static elfs.
We were previously relocating them up 16KB,
which can cause them to break.
2020-11-26 09:56:22 +13:00
Ryan Houdek 07310bc24a Fixes long messages passed through logman
Default to 1024 bytes in the working string, but if something exceeds it
then try again.

Not common that we are passing through a large string but debug strings
can hit that limit
2020-11-16 20:46:06 -08:00
Ryan Houdek 177cf1979f Switches SonicUtils over to be a static library
Removes installing since it doens't make sense anymore
2020-10-20 19:16:22 -07:00
Ryan Houdek 7a62fad444 Fixes 32bit ELF Loading
This requires some changes to how the ELF memory bases are calculated
and which auxp variables are passed in
2020-10-13 15:46:27 -07:00
Ryan Houdek 36d9d9a7c5 Updates ELFSymbolDatabase for 32bit library paths
Doesn't really matter but let's put it there
2020-10-06 20:14:10 -07:00
Ryan Houdek 74a310eeb2 Enables assertions option from cmake 2020-08-29 23:35:26 -07:00
Stefanos Kornilios Mitsis Poiitidis 8206aa0413 Add ERROR_AND_DIE, use it on unhandled syscalls 2020-05-28 18:47:24 +03:00
Ryan Houdek cff34909a8 Adds a WARN_ONCE macro
There are cases where a WARN_ONCE macro that warns about one thing is
very nice to have.
Add the macro so we can use it later
2020-05-25 21:42:39 -07:00
Ryan Houdek 7128f1fa46 Initial 32bit SonicUtils ELFLoader support 2020-05-14 00:55:52 -07:00
woachk 595df184f7 x86_64 build fix, by reordering KVM initialisation values 2020-05-04 16:58:45 +02:00
Ryan Houdek 3528b30684 Fixes loading EXEC applications in to memory.
If we are loading EXEC then we actually need to start loading in to the
lower 32bits of memory.
This lets the frontend code loader handle the memory base instead of
hiding it behind some core magic instead.

This lets us get EXEC programs working.
So now we support EXEC, DYN, and static applications
2020-04-26 18:11:48 -07:00
Ryan Houdek 986263bccc Fixes ELFLoader's check for dynamic program
This wasn't right in a case that a program would load the dynamic
linker.
The dynamic linker can be a dynamic program which was causing some
problems and the dynamic Program will then just be set based on the
header type
2020-04-26 18:04:10 -07:00
Stefanos Kornilios Mitsis Poiitidis 80fa73868e Merge pull request #82 from Sonicadvance1/rootfs_elfloader
Adds RootFS search path in ELFLoader
2020-04-05 13:00:49 +03:00
Ryan Houdek 15d5ba6fc1 Adds RootFS search path in ELFLoader
Fixes #69, makes it less annoying to run things on non x86 hosts
2020-04-04 23:17:40 -07:00
Ryan Houdek f78773c2ee Removes debug logs from the frontend ELF loader 2020-03-27 18:08:50 -07:00
Ryan Houdek e5dc72ad69 Fixes the dynamic linker detection
Fixes #49

Makes it so we no longer have to pass in the ld location to the
ELFLoader application.

Once we switch over to the dynamic linker, the program being executed to
us is no longer a dynamic program.
But the frontend ELF loader also still needs to know that we are
executing the dynamic linker so it can append the linker to the
arguments.
2020-03-20 13:08:33 -07:00
Ryan Houdek a247dfe9b9 Adds noop VM source file
This is necessary to fix building on non-x86 platforms.
2020-03-15 00:24:11 -07:00
Stefanos Kornilios Mitsis Poiitidis a468d10d56 SonicUtils: Move to External/SonicUtils 2020-03-06 07:24:46 +02:00