aboutsummaryrefslogtreecommitdiff
path: root/src/core/loader/elf.cpp
AgeCommit message (Collapse)Author
2018-07-23core: Make converting constructors explicit where applicableLioncash
Avoids unwanted implicit conversions. Thankfully, given the large amount of cleanup in past PRs, only this tiny amount is left over to cover.
2018-07-18Virtual Filesystem 2: Electric Boogaloo (#676)Zach Hilman
* Virtual Filesystem * Fix delete bug and documentate * Review fixes + other stuff * Fix puyo regression
2018-07-07Revert "Virtual Filesystem (#597)"bunnei
This reverts commit 77c684c1140f6bf3fb7d4560d06d2efb1a2ee5e2.
2018-07-06Virtual Filesystem (#597)Zach Hilman
* Add VfsFile and VfsDirectory classes * Finish abstract Vfs classes * Implement RealVfsFile (computer fs backend) * Finish RealVfsFile and RealVfsDirectory * Finished OffsetVfsFile * More changes * Fix import paths * Major refactor * Remove double const * Use experimental/filesystem or filesystem depending on compiler * Port partition_filesystem * More changes * More Overhaul * FSP_SRV fixes * Fixes and testing * Try to get filesystem to compile * Filesystem on linux * Remove std::filesystem and document/test * Compile fixes * Missing include * Bug fixes * Fixes * Rename v_file and v_dir * clang-format fix * Rename NGLOG_* to LOG_* * Most review changes * Fix TODO * Guess 'main' to be Directory by filename
2018-07-02Update clang formatJames Rowe
2018-07-02Rename logging macro back to LOG_*James Rowe
2018-04-24loader: Move old logging macros over to new fmt-capable onesLioncash
2018-03-31memory: Fix stack region.bunnei
2018-03-16kernel: Move stack region outside of application heap.bunnei
2018-03-14core: Move process creation out of global state.bunnei
2018-03-01Kernel: Store the program id in the Process class instead of the CodeSet class.Subv
There may be many CodeSets per Process, so it's wasteful and overcomplicated to store the program id in each of them.
2018-01-20Merge pull request #117 from jroweboy/clang-formatbunnei
Clang format as a build target
2018-01-20Format: Run the new clang format on everythingJames Rowe
2018-01-20loader: Clean up ctors and includes.bunnei
2018-01-20loader: Refactor to also pass filepath into IdentifyType.bunnei
2017-10-15core: Refactor MakeMagic usage and remove dead code.bunnei
2017-10-09Merge remote-tracking branch 'upstream/master' into nxbunnei
# Conflicts: # src/core/CMakeLists.txt # src/core/arm/dynarmic/arm_dynarmic.cpp # src/core/arm/dyncom/arm_dyncom.cpp # src/core/hle/kernel/process.cpp # src/core/hle/kernel/thread.cpp # src/core/hle/kernel/thread.h # src/core/hle/kernel/vm_manager.cpp # src/core/loader/3dsx.cpp # src/core/loader/elf.cpp # src/core/loader/ncch.cpp # src/core/memory.cpp # src/core/memory.h # src/core/memory_setup.h
2017-09-30nso: Refactor and allocate .bss section.bunnei
2017-09-30elf: Check if machine is ARM.bunnei
2017-09-26Loaders: Don't automatically set the current process every time we load an ↵Subv
application. The loaders will now just create a Kernel::Process, construct it and return it to the caller, which is responsible for setting it as the current process and configuring the global page table.
2017-09-24memory: Add GetCurrentPageTable/SetCurrentPageTableMerryMage
Don't expose Memory::current_page_table as a global.
2017-09-10Kernel/Memory: Give each Process its own page table.Subv
The loader is in charge of setting the newly created process's page table as the main one during the loading process.
2017-05-07Remove ability to load symbol mapsYuri Kunde Schlesner
This was now mostly unused except by thread creation, which used a symbol of the entrypoint, if available, to name the thread.
2016-09-21Use negative priorities to avoid special-casing the self-includeYuri Kunde Schlesner
2016-09-21Remove empty newlines in #include blocks.Emmanuel Gil Peyrot
This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
2016-09-18Sources: Run clang-format on everything.Emmanuel Gil Peyrot
2016-01-25elf: Don't cast away constLioncash
2015-07-13Loader: Fix variable type and remove unused variableYuri Kunde Schlesner
2015-07-13Loader: Remove unnecessary pointer indirection to IOFileYuri Kunde Schlesner
2015-07-11Core: Properly configure address space when loading a binaryYuri Kunde Schlesner
The code now properly configures the process image to match the loaded binary segments (code, rodata, data) instead of just blindly allocating a large chunk of dummy memory.
2015-06-28CitraQt: Cleanup includes.Emmanuel Gil Peyrot
2015-05-14Core/ResourceLimits: Implemented the basic structure of ResourceLimits.Subv
Implemented svcs GetResourceLimit, GetResourceLimitCurrentValues and GetResourceLimitLimitValues. Note that the resource limits do not currently keep track of used objects, since we have no way to distinguish between an object created by the application, and an object created by some HLE module once we're inside Kernel::T::Create.
2015-05-15Memmap: Re-organize memory function in two filesYuri Kunde Schlesner
memory.cpp/h contains definitions related to acessing memory and configuring the address space mem_map.cpp/h contains higher-level definitions related to configuring the address space accoording to the kernel and allocating memory.
2015-05-09Memory: Re-organize and rename memory area address constantsYuri Kunde Schlesner
2015-05-08Process: Rename StaticAddressMapping => AddressMappingYuri Kunde Schlesner
2015-05-08Process: Support parsing of exheader kernel capsYuri Kunde Schlesner
2015-05-08Kernel: Introduce skeleton Process class to hold process dataYuri Kunde Schlesner
2015-05-07Common: Remove common.hYuri Kunde Schlesner
2015-01-30Silence a few warnings.Rohit Nirmal
2015-01-15Loader: Clean up the ELF AppLoader.Emmanuel Gil Peyrot
2015-01-15Loader: Guess filetype from the magic, or fallback to the extension.Emmanuel Gil Peyrot
2015-01-15Loader: Don’t assume the file hasn’t been read before.Emmanuel Gil Peyrot
2015-01-15Loader: Keep a reference to the file and pass it to the correct AppLoader, ↵Emmanuel Gil Peyrot
instead of loading it multiple times.
2015-01-15Loader: Never forget to change is_loaded.Emmanuel Gil Peyrot
2015-01-15Loader: Don’t duplicate the docstring into the cpp file.Emmanuel Gil Peyrot
2015-01-02elf: Make DidRelocate constLioncash
2014-12-20License changepurpasmart96
2014-12-13Convert old logging calls to new logging macrosYuri Kunde Schlesner
2014-11-19Remove trailing spaces in every file but the ones imported from SkyEye, AOSP ↵Emmanuel Gil Peyrot
or generated
2014-09-17Common: Rename the File namespace to FileUtil, to match the filename and ↵Emmanuel Gil Peyrot
prevent collisions.