summaryrefslogtreecommitdiff
path: root/base/loader
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2004-01-08 16:35:47 -0500
committerAli Saidi <saidi@eecs.umich.edu>2004-01-08 16:35:47 -0500
commit98613950a36463ca194ac4878809308e3b2daac7 (patch)
treee55679ae3fa43543c96af6708f0e34663f1b2c1b /base/loader
parente7033f718f3e7913d2b38562b83e6d68e47eafbc (diff)
downloadgem5-98613950a36463ca194ac4878809308e3b2daac7.tar.xz
Fixed another small libelf problem, everything should work now, on any
machine. base/loader/elf_object.hh: put #defines for libelf that normally arn't defined so that -Wundef doesn't cause problems. --HG-- extra : convert_revision : fa2de6aa94c7ddbaa59990db4473402b0df7d93a
Diffstat (limited to 'base/loader')
-rw-r--r--base/loader/elf_object.hh7
1 files changed, 6 insertions, 1 deletions
diff --git a/base/loader/elf_object.hh b/base/loader/elf_object.hh
index afd4cd62b..9f0385d86 100644
--- a/base/loader/elf_object.hh
+++ b/base/loader/elf_object.hh
@@ -29,8 +29,13 @@
#ifndef __ELF_OBJECT_HH__
#define __ELF_OBJECT_HH__
-#include <libelf/gelf.h>
+/* Because of the -Wundef flag we have to do this */
+#define __LIBELF_INTERNAL__ 0
+#define __LIBELF64_LINUX 1
+#define __LIBELF_NEED_LINK_H 0
+
#include <libelf/libelf.h>
+#include <libelf/gelf.h>
#include "base/loader/object_file.hh"
class ElfObject : public ObjectFile