summaryrefslogtreecommitdiffstats
path: root/src/core/loader/elf.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* core: Refactor MakeMagic usage and remove dead code.bunnei2017-10-151-1/+2
|
* Merge remote-tracking branch 'upstream/master' into nxbunnei2017-10-101-8/+8
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # 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
| * Loaders: Don't automatically set the current process every time we load an application.Subv2017-09-271-8/+7
| | | | | | | | 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.
| * memory: Add GetCurrentPageTable/SetCurrentPageTableMerryMage2017-09-241-1/+1
| | | | | | | | Don't expose Memory::current_page_table as a global.
| * Kernel/Memory: Give each Process its own page table.Subv2017-09-101-0/+1
| | | | | | | | The loader is in charge of setting the newly created process's page table as the main one during the loading process.
* | nso: Refactor and allocate .bss section.bunnei2017-09-301-2/+3
| |
* | elf: Check if machine is ARM.bunnei2017-09-301-2/+9
|/
* Remove ability to load symbol mapsYuri Kunde Schlesner2017-05-081-32/+0
| | | | | This was now mostly unused except by thread creation, which used a symbol of the entrypoint, if available, to name the thread.
* Use negative priorities to avoid special-casing the self-includeYuri Kunde Schlesner2016-09-211-1/+1
|
* Remove empty newlines in #include blocks.Emmanuel Gil Peyrot2016-09-211-3/+1
| | | | | | | This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
* Sources: Run clang-format on everything.Emmanuel Gil Peyrot2016-09-181-104/+127
|
* elf: Don't cast away constLioncash2016-01-251-3/+3
|
* Loader: Fix variable type and remove unused variableYuri Kunde Schlesner2015-07-141-2/+1
|
* Loader: Remove unnecessary pointer indirection to IOFileYuri Kunde Schlesner2015-07-141-4/+4
|
* Core: Properly configure address space when loading a binaryYuri Kunde Schlesner2015-07-121-15/+66
| | | | | | 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.
* CitraQt: Cleanup includes.Emmanuel Gil Peyrot2015-06-281-1/+2
|
* Core/ResourceLimits: Implemented the basic structure of ResourceLimits.Subv2015-05-151-0/+4
| | | | | | 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.
* Memmap: Re-organize memory function in two filesYuri Kunde Schlesner2015-05-151-1/+1
| | | | | | | 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.
* Memory: Re-organize and rename memory area address constantsYuri Kunde Schlesner2015-05-091-1/+1
|
* Process: Rename StaticAddressMapping => AddressMappingYuri Kunde Schlesner2015-05-091-1/+1
|
* Process: Support parsing of exheader kernel capsYuri Kunde Schlesner2015-05-091-0/+1
|
* Kernel: Introduce skeleton Process class to hold process dataYuri Kunde Schlesner2015-05-091-4/+9
|
* Common: Remove common.hYuri Kunde Schlesner2015-05-071-1/+2
|
* Silence a few warnings.Rohit Nirmal2015-01-301-2/+2
|
* Loader: Clean up the ELF AppLoader.Emmanuel Gil Peyrot2015-01-151-40/+33
|
* Loader: Guess filetype from the magic, or fallback to the extension.Emmanuel Gil Peyrot2015-01-151-0/+12
|
* Loader: Don’t assume the file hasn’t been read before.Emmanuel Gil Peyrot2015-01-151-0/+3
|
* Loader: Keep a reference to the file and pass it to the correct AppLoader, instead of loading it multiple times.Emmanuel Gil Peyrot2015-01-151-22/+8
|
* Loader: Never forget to change is_loaded.Emmanuel Gil Peyrot2015-01-151-1/+3
|
* Loader: Don’t duplicate the docstring into the cpp file.Emmanuel Gil Peyrot2015-01-151-6/+0
|
* elf: Make DidRelocate constLioncash2015-01-031-1/+1
|
* License changepurpasmart962014-12-211-2/+2
|
* Convert old logging calls to new logging macrosYuri Kunde Schlesner2014-12-131-8/+8
|
* Remove trailing spaces in every file but the ones imported from SkyEye, AOSP or generatedEmmanuel Gil Peyrot2014-11-191-2/+2
|
* Common: Rename the File namespace to FileUtil, to match the filename and prevent collisions.Emmanuel Gil Peyrot2014-09-171-1/+1
|
* ELF: Refactored LoadInto(..) to use memcpy, removed unnecessary code.bunnei2014-06-251-19/+8
|
* Loader: Refactored use of const.bunnei2014-06-251-2/+2
|
* Loader: Implemented AppLoader interface for abstracting application loading.bunnei2014-06-251-61/+257
| | | | | | | | | | | | | | | | | | - Various cleanups/refactorings to Loader, ELF, and NCCH modules. - Added AppLoader interface to ELF and NCCH. - Updated Qt/GLFW frontends to check AppLoader ResultStatus. NCCH: Removed extra qualification typos. Loader: Removed unnecessary #include's. NCCH: Improved readability of memcmp statements. NCCH: Added missing space. Elf: Removed unnecessary usage of unique_ptr. Loader: Removed unnecessary usage of unique_ptr.
* Loader: Cleaned up and removed unused code, refactored ELF namespace.bunnei2014-06-171-56/+51
|
* Elf: Renamed modules to be consistent with new loader naming, fixed tabs -> spaces.bunnei2014-06-171-0/+190