mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:38:11 +00:00
LibELF+Lagom: Work towards getting LibELF in Lagom
Mostly -Wformat fixes, some of which pointed out real (if benign) bugs.
This commit is contained in:
parent
872834320a
commit
0586924bbd
6 changed files with 33 additions and 32 deletions
|
@ -30,10 +30,10 @@
|
|||
|
||||
#include <assert.h>
|
||||
#include <dlfcn.h>
|
||||
#include <mman.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/mman.h>
|
||||
|
||||
#define DYNAMIC_LOAD_DEBUG
|
||||
//#define DYNAMIC_LOAD_VERBOSE
|
||||
|
@ -46,6 +46,13 @@
|
|||
} while (0)
|
||||
#endif
|
||||
|
||||
#ifndef __serenity__
|
||||
static void* mmap_with_name(void* addr, size_t length, int prot, int flags, int fd, off_t offset, const char*)
|
||||
{
|
||||
return mmap(addr, length, prot, flags, fd, offset);
|
||||
}
|
||||
#endif
|
||||
|
||||
namespace ELF {
|
||||
|
||||
static bool s_always_bind_now = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue