diff options
author | Steve Reinhardt <stever@eecs.umich.edu> | 2006-05-22 21:51:59 -0400 |
---|---|---|
committer | Steve Reinhardt <stever@eecs.umich.edu> | 2006-05-22 21:51:59 -0400 |
commit | a7c95f702c73a332ae2d2283e7bc445876f07bc7 (patch) | |
tree | ebd97163e6af98dd259d9a605a3705b61200497e /src/base | |
parent | c88f0810c05c5e206baf561f56225a41c776b38f (diff) | |
download | gem5-a7c95f702c73a332ae2d2283e7bc445876f07bc7.tar.xz |
Clean up libelf handling.
SConstruct:
Clean up libelf handling. Required better handling of
per-build-root stuff in general (though libelf is the
only thing in that category currently).
src/SConscript:
No libelf-specific stuff in here anymore.
src/base/loader/elf_object.cc:
Just need to include gelf.h... it includes libelf.h.
--HG--
extra : convert_revision : 3d6bdcf8233bda0ac8d08ff777de323df8aa45ae
Diffstat (limited to 'src/base')
-rw-r--r-- | src/base/loader/elf_object.cc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/base/loader/elf_object.cc b/src/base/loader/elf_object.cc index 165501e1c..79601e9d1 100644 --- a/src/base/loader/elf_object.cc +++ b/src/base/loader/elf_object.cc @@ -30,16 +30,10 @@ // Because of the -Wundef flag we have to do this #define __LIBELF_INTERNAL__ 0 -// counterintuitive, but the flag below causes libelf to define -// 64-bit elf types that apparently didn't exist in some older -// versions of Linux. They seem to be there in 2.4.x, so don't -// set this now (it causes things to break on 64-bit platforms). -#define __LIBELF64_LINUX 0 #define __LIBELF_NEED_LINK_H 0 #define __LIBELF_SYMBOL_VERSIONS 0 -#include "libelf/libelf.h" -#include "libelf/gelf.h" +#include "gelf.h" #include "base/loader/elf_object.hh" #include "base/misc.hh" |