Where a tool has reported its version compare it to the library and report
any disparity.
Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]>
---
elflink.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/elflink.c b/elflink.c
index b1195fa..fc85b7f 100644
--- a/elflink.c
+++ b/elflink.c
@@ -1098,6 +1098,9 @@ static int check_env(void)
extern Elf_Ehdr __executable_start __attribute__((weak));
DEBUG("Version: " VERSION "\n");
+ env = getenv("HUGETLB_VERSION");
+ if (env && strcmp(env, VERSION) != 0)
+ WARNING("version missmatch library=%s tool=%s\n", VERSION, env);
env = getenv("HUGETLB_ELFMAP");
if (env && (strcasecmp(env, "no") == 0)) {
--
1.5.6.GIT
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Libhugetlbfs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel