mirror of
git://sourceware.org/git/glibc.git
synced 2025-04-24 14:41:06 +08:00
hurd: Fix rtld link
* sysdeps/mach/hurd/dl-sysdep.c (__sbrk): New function.
This commit is contained in:
parent
819ea3347e
commit
b96aca4d05
@ -18,7 +18,8 @@
|
||||
Fix <unistd.h> inclusion.
|
||||
* sysdeps/posix/pwritev2.c: Include <errno.h>.
|
||||
* sysdeps/posix/pwritev64v2.c: Include <errno.h>.
|
||||
* sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): New function.
|
||||
* sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk): New
|
||||
functions.
|
||||
|
||||
2017-09-01 Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
|
@ -591,6 +591,16 @@ __getcwd (char *buf, size_t size)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* This is used by dl-tunables.c to strdup strings. We can just make this a
|
||||
mere allocation. */
|
||||
void *
|
||||
__sbrk (intptr_t increment)
|
||||
{
|
||||
vm_address_t addr;
|
||||
__vm_allocate (__mach_task_self (), &addr, increment, 1);
|
||||
return (void *) addr;
|
||||
}
|
||||
|
||||
void weak_function attribute_hidden
|
||||
_exit (int status)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user