diff options
author | Steve Reinhardt <stever@eecs.umich.edu> | 2004-01-20 13:53:18 -0500 |
---|---|---|
committer | Steve Reinhardt <stever@eecs.umich.edu> | 2004-01-20 13:53:18 -0500 |
commit | 946b481831e813126de94d3c2c2001c2d51ccdee (patch) | |
tree | 13da969b1b8dc84f95149c753ee1f8987d405e47 | |
parent | c9f2aa8c1888aef0f383bdda0ce6d7d7b5a0c7fc (diff) | |
download | gem5-946b481831e813126de94d3c2c2001c2d51ccdee.tar.xz |
Set LIBELF_LINUX to 0 to build on zax. Builds
but did not test... however the only thing this
affects in libelf is the header, so I don't expect
any functional problems.
base/loader/elf_object.cc:
Set LIBELF_LINUX to 0 to build on zax.
--HG--
extra : convert_revision : d024b33deff6fc8ea6f1d465f76dc8d9d63254ab
-rw-r--r-- | base/loader/elf_object.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/base/loader/elf_object.cc b/base/loader/elf_object.cc index 93313fac6..f2a67f22e 100644 --- a/base/loader/elf_object.cc +++ b/base/loader/elf_object.cc @@ -30,7 +30,11 @@ // Because of the -Wundef flag we have to do this #define __LIBELF_INTERNAL__ 0 -#define __LIBELF64_LINUX 1 +// 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 #include <libelf/libelf.h> |