elfload.c (7dd47667b9b0b23807fc1a550644fc2427462f41) | elfload.c (b4916d7b9d6b086d653db090d366ffe2f44c1323) |
---|---|
1/* This is the Linux kernel elf-loading code, ported into user space */ 2#include <sys/time.h> 3#include <sys/param.h> 4 5#include <stdio.h> 6#include <sys/types.h> 7#include <fcntl.h> 8#include <errno.h> --- 2325 unchanged lines hidden (view full) --- 2334 int i, len; 2335 2336 /* 2337 * Auxiliary vector is stored in target process stack. It contains 2338 * {type, value} pairs that we need to dump into note. This is not 2339 * strictly necessary but we do it here for sake of completeness. 2340 */ 2341 | 1/* This is the Linux kernel elf-loading code, ported into user space */ 2#include <sys/time.h> 3#include <sys/param.h> 4 5#include <stdio.h> 6#include <sys/types.h> 7#include <fcntl.h> 8#include <errno.h> --- 2325 unchanged lines hidden (view full) --- 2334 int i, len; 2335 2336 /* 2337 * Auxiliary vector is stored in target process stack. It contains 2338 * {type, value} pairs that we need to dump into note. This is not 2339 * strictly necessary but we do it here for sake of completeness. 2340 */ 2341 |
2342 /* find out lenght of the vector, AT_NULL is terminator */ | 2342 /* find out length of the vector, AT_NULL is terminator */ |
2343 i = len = 0; 2344 do { 2345 get_user_ual(val, auxv); 2346 i += 2; 2347 auxv += 2 * sizeof (elf_addr_t); 2348 } while (val != AT_NULL); 2349 len = i * sizeof (elf_addr_t); 2350 --- 404 unchanged lines hidden --- | 2343 i = len = 0; 2344 do { 2345 get_user_ual(val, auxv); 2346 i += 2; 2347 auxv += 2 * sizeof (elf_addr_t); 2348 } while (val != AT_NULL); 2349 len = i * sizeof (elf_addr_t); 2350 --- 404 unchanged lines hidden --- |