summaryrefslogtreecommitdiff
path: root/sys/lib
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2010-08-25 16:23:23 +0000
committerchristos <christos@NetBSD.org>2010-08-25 16:23:23 +0000
commitf2af08161f4075102cdf0411292ff7bbd3df13bc (patch)
tree73fdacc6b7d8f54ad4329f11bd5c109a4607234f /sys/lib
parentfa29eada2bfa0fcb4100aca7ba2ce26a74628adb (diff)
Add a new LOAD_MINIMAL flag to avoid loading sections that might seek backwards
and are not really needed like the note and the symbol section.
Diffstat (limited to 'sys/lib')
-rw-r--r--sys/lib/libsa/loadfile.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/lib/libsa/loadfile.h b/sys/lib/libsa/loadfile.h
index acc7f977bda..5c0b71b61a2 100644
--- a/sys/lib/libsa/loadfile.h
+++ b/sys/lib/libsa/loadfile.h
@@ -1,4 +1,4 @@
-/* $NetBSD: loadfile.h,v 1.10 2008/09/25 20:59:38 christos Exp $ */
+/* $NetBSD: loadfile.h,v 1.11 2010/08/25 16:23:23 christos Exp $ */
/*-
* Copyright (c) 1998, 2008 The NetBSD Foundation, Inc.
@@ -51,6 +51,7 @@
#define LOAD_HDR 0x0020
#define LOAD_NOTE 0x0040
#define LOAD_ALL 0x007f
+#define LOAD_MINIMAL 0x002f
#define COUNT_TEXT 0x0100
#define COUNT_TEXTA 0x0200