diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2017-09-27 15:14:53 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2017-09-27 15:14:53 +0000 |
commit | 61f3b5b70eeb5a975fdbdaae0033ce025d2fd88b (patch) | |
tree | 6fba270bcd83d34a207599f81af541fe673f5ffd /usr.sbin/config/ukc.h | |
parent | 88f5940cc266f9bd4ed4d91c6c8d0dfec8c00ead (diff) |
config -e's adds new devices to an extra locator array, which is accounted
using a variable which started at 0 and hence got planted in .bss.
Refactor that variable to begin at the maximum and decrease, such that it
lands in .data instead.
ok jsg
Diffstat (limited to 'usr.sbin/config/ukc.h')
-rw-r--r-- | usr.sbin/config/ukc.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.sbin/config/ukc.h b/usr.sbin/config/ukc.h index 7dc534ae27c..df78a5834af 100644 --- a/usr.sbin/config/ukc.h +++ b/usr.sbin/config/ukc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ukc.h,v 1.13 2015/09/21 14:45:14 guenther Exp $ */ +/* $OpenBSD: ukc.h,v 1.14 2017/09/27 15:14:52 deraadt Exp $ */ /* * Copyright (c) 1999-2001 Mats O Jansson. All rights reserved. @@ -37,8 +37,8 @@ #define P_KERNEL_TEXT 7 #define P_VERSION 8 #define IA_EXTRALOC 9 -#define I_NEXTRALOC 10 -#define I_UEXTRALOC 11 +#define I_REXTRALOC 10 +#define I_TEXTRALOC 11 #define I_HISTLEN 12 #define CA_HISTORY 13 #define TZ_TZ 14 @@ -62,8 +62,8 @@ struct nlist nl[] = { { "_kernel_text" }, { "_version" }, { "_extraloc" }, - { "_nextraloc" }, - { "_uextraloc" }, + { "_rextraloc" }, + { "_textraloc" }, { "_userconf_histlen" }, { "_userconf_history" }, { "_tz" }, @@ -86,8 +86,8 @@ struct nlist knl[] = { { "_kernel_text" }, { "_version" }, { "_extraloc" }, - { "_nextraloc" }, - { "_uextraloc" }, + { "_rextraloc" }, + { "_textraloc" }, { "_userconf_histlen" }, { "_userconf_history" }, { "_tz" }, |