path: root/Makefile
diff options
authorAdam Litke <agl@us.ibm.com>2008-07-24 18:12:02 +0000
committerNishanth Aravamudan <nacc@us.ibm.com>2008-07-24 16:59:51 -0700
commit287d1b278aaf4d6b975629354e35f4d75f5b8db4 (patch)
treefa016ba514af226d76d62ddf175b7d31bd73a3e1 /Makefile
parentaa6f2b5df51703e61a00619fa52dbd8d543f7593 (diff)
tools: hugeedit: Modify binaries to set default remapping behavior
The recently added relinking method makes it possible to choose from multiple ways to remap segments at run-time via the HUGTLB_ELFMAP environment variable. If nothing is specified in that variable, then no remapping will occur. Sometimes it is desirable to set a default remapping mode so that HUGETLB_ELFMAP does not need to be set. This semantic applied to the original remapping algorithm. This patch adds a utility that can modify the PF_LINUX_HUGETLB segment flags in the ELF haeder of a binary to control which segments will be remapped by default. The tool will also display this information. [Plus fix for argc comparison by Andy W.] Signed-off-by: Adam Litke <agl@us.ibm.com> Tested-by: Andy Whitcroft <apw@shadowen.org> Acked-by: Andy Whitcroft <apw@shadowen.org> Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Diffstat (limited to 'Makefile')
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8030d30..f1f83fa 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ EXEDIR = /bin
LIBOBJS = hugeutils.o version.o init.o morecore.o debug.o alloc.o
INSTALL_OBJ_LIBS = libhugetlbfs.so libhugetlbfs.a
-INSTALL_BIN = hugectl
+INSTALL_BIN = hugectl hugeedit
INSTALL_HEADERS = hugetlbfs.h
LDSCRIPT_DIST_ELF = elf32ppclinux elf64ppc elf_i386 elf_x86_64