git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
AcessNative - Fixing crashes
[tpg/acess2.git]
/
AcessNative
/
ld-acess_src
/
elf_load.c
diff --git
a/AcessNative/ld-acess_src/elf_load.c
b/AcessNative/ld-acess_src/elf_load.c
index
590da37
..
8cafc01
100644
(file)
--- a/
AcessNative/ld-acess_src/elf_load.c
+++ b/
AcessNative/ld-acess_src/elf_load.c
@@
-190,9
+190,9
@@
void *Elf64Load(int FD, Elf64_Ehdr *hdr)
\r
ENTER("iFD", FD);
\r
\r
\r
ENTER("iFD", FD);
\r
\r
- #if BITS <= 32
\r
- Warning("ELF64 being loaded in 32-bit env, this may not work");
\r
- #endif
\r
+ if( sizeof(void*) == 4) {
\r
+
Warning("ELF64 being loaded in 32-bit env, this may not work");
\r
+ }
\r
\r
// Check for a program header
\r
if(hdr->e_phoff == 0) {
\r
\r
// Check for a program header
\r
if(hdr->e_phoff == 0) {
\r
UCC
git Repository :: git.ucc.asn.au