Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F111897535
D33702.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1011 B
Referenced Files
None
Subscribers
None
D33702.diff
View Options
Index: lib/libc/gen/auxv.c
===================================================================
--- lib/libc/gen/auxv.c
+++ lib/libc/gen/auxv.c
@@ -70,7 +70,7 @@
static int pagesize, osreldate, canary_len, ncpus, pagesizes_len, bsdflags;
static int hwcap_present, hwcap2_present;
static char *canary, *pagesizes, *execpath;
-static void *ps_strings, *timekeep;
+static void *kpreload, *ps_strings, *timekeep;
static u_long hwcap, hwcap2;
static void *fxrng_seed_version;
@@ -144,6 +144,11 @@
case AT_FXRNG:
fxrng_seed_version = aux->a_un.a_ptr;
break;
+
+ case AT_KPRELOAD:
+ kpreload = aux->a_un.a_ptr;
+ break;
+
#ifdef __powerpc__
/*
* Since AT_STACKPROT is always set, and the common
@@ -370,6 +375,16 @@
} else
res = EINVAL;
break;
+ case AT_KPRELOAD:
+ if (buflen == sizeof(void *)) {
+ if (kpreload != NULL) {
+ *(void **)buf = kpreload;
+ res = 0;
+ } else
+ res = ENOENT;
+ } else
+ res = EINVAL;
+ break;
default:
res = ENOENT;
break;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 10, 11:31 PM (13 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17091085
Default Alt Text
D33702.diff (1011 B)
Attached To
Mode
D33702: libc: Let elf_aux_info() handle AT_KPRELOAD
Attached
Detach File
Event Timeline
Log In to Comment