aboutsummaryrefslogtreecommitdiff
path: root/elf/dl-minimal.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/dl-minimal.c')
-rw-r--r--elf/dl-minimal.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/elf/dl-minimal.c b/elf/dl-minimal.c
index 486e5bc608..a76e01dcb8 100644
--- a/elf/dl-minimal.c
+++ b/elf/dl-minimal.c
@@ -23,7 +23,7 @@
#include <assert.h>
#include <string.h>
#include <link.h>
-#include "../stdio-common/_itoa.h"
+#include <stdio-common/_itoa.h>
/* Minimal `malloc' allocator for use while loading shared libraries.
Only small blocks are allocated, and none are ever freed. */
@@ -43,9 +43,6 @@ malloc (size_t n)
#define MAP_ANON 0
#endif
- if (_dl_pagesize == 0)
- _dl_pagesize = __getpagesize ();
-
if (alloc_end == 0)
{
/* Consume any unused space in the last page of our data segment. */
@@ -115,10 +112,16 @@ realloc (void *ptr, size_t n)
int weak_function
__sigjmp_save (sigjmp_buf env, int savemask)
-{ env[0].__mask_was_saved = savemask; return 0; }
+{
+ env[0].__mask_was_saved = savemask;
+ return 0;
+}
void weak_function
-longjmp (jmp_buf env, int val) { __longjmp (env[0].__jmpbuf, val); }
+longjmp (jmp_buf env, int val)
+{
+ __longjmp (env[0].__jmpbuf, val);
+}
/* Define our own stub for the localization function used by strerror.
English-only in the dynamic linker keeps it smaller. */