mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:37:45 +00:00
Userspace: Add missing #includes now that AK/StdLibExtras.h is smaller
This commit is contained in:
parent
35d88f536c
commit
37fc6c117c
44 changed files with 67 additions and 25 deletions
|
@ -32,6 +32,7 @@
|
|||
#include <mman.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#define DYNAMIC_LOAD_DEBUG
|
||||
//#define DYNAMIC_LOAD_VERBOSE
|
||||
|
@ -163,8 +164,7 @@ void ELFDynamicLoader::load_program_headers(const ELFImage& elf_image)
|
|||
text_region_ptr = ®ion;
|
||||
else
|
||||
data_region_ptr = ®ion;
|
||||
}
|
||||
else if (region.is_dynamic()) {
|
||||
} else if (region.is_dynamic()) {
|
||||
dynamic_region_desired_vaddr = region.desired_load_address();
|
||||
}
|
||||
});
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
#include <LibELF/ELFDynamicObject.h>
|
||||
#include <LibELF/exec_elf.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
static const char* name_for_dtag(Elf32_Sword d_tag);
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <AK/Memory.h>
|
||||
#include <AK/StringBuilder.h>
|
||||
#include <LibELF/ELFImage.h>
|
||||
|
||||
|
|
|
@ -26,13 +26,14 @@
|
|||
|
||||
#include "ELFLoader.h"
|
||||
#include <AK/Demangle.h>
|
||||
#include <AK/Memory.h>
|
||||
#include <AK/QuickSort.h>
|
||||
|
||||
#ifdef KERNEL
|
||||
#include <Kernel/VM/MemoryManager.h>
|
||||
#define do_memcpy copy_to_user
|
||||
# include <Kernel/VM/MemoryManager.h>
|
||||
# define do_memcpy copy_to_user
|
||||
#else
|
||||
#define do_memcpy memcpy
|
||||
# define do_memcpy memcpy
|
||||
#endif
|
||||
|
||||
//#define ELFLOADER_DEBUG
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue