mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-04 15:13:58 +01:00
HBSD: Revert "_elf_aux_info(3): add support for AT_USRSTACK{BASE,LIM}"
This reverts commit c71b8367de
.
Signed-off-by: Shawn Webb <shawn.webb@hardenedbsd.org>
This commit is contained in:
parent
7080d2c53f
commit
8a3d8c5bed
@ -73,7 +73,6 @@ static char *canary, *pagesizes, *execpath;
|
||||
static void *ps_strings, *timekeep;
|
||||
static u_long hwcap, hwcap2;
|
||||
static void *fxrng_seed_version;
|
||||
static u_long usrstackbase, usrstacklim;
|
||||
|
||||
#ifdef __powerpc__
|
||||
static int powerpc_new_auxv_format = 0;
|
||||
@ -145,14 +144,6 @@ init_aux(void)
|
||||
case AT_FXRNG:
|
||||
fxrng_seed_version = aux->a_un.a_ptr;
|
||||
break;
|
||||
|
||||
case AT_USRSTACKBASE:
|
||||
usrstackbase = aux->a_un.a_val;
|
||||
break;
|
||||
|
||||
case AT_USRSTACKLIM:
|
||||
usrstacklim = aux->a_un.a_val;
|
||||
break;
|
||||
#ifdef __powerpc__
|
||||
/*
|
||||
* Since AT_STACKPROT is always set, and the common
|
||||
@ -379,20 +370,6 @@ _elf_aux_info(int aux, void *buf, int buflen)
|
||||
} else
|
||||
res = EINVAL;
|
||||
break;
|
||||
case AT_USRSTACKBASE:
|
||||
if (buflen == sizeof(u_long)) {
|
||||
*(u_long *)buf = usrstackbase;
|
||||
res = 0;
|
||||
} else
|
||||
res = EINVAL;
|
||||
break;
|
||||
case AT_USRSTACKLIM:
|
||||
if (buflen == sizeof(u_long)) {
|
||||
*(u_long *)buf = usrstacklim;
|
||||
res = 0;
|
||||
} else
|
||||
res = EINVAL;
|
||||
break;
|
||||
default:
|
||||
res = ENOENT;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user