Tru64 executeables
Richard Henderson
rth@twiddle.net
Sat Aug 7 14:29:00 GMT 1999
On Sat, Aug 07, 1999 at 03:04:56AM -0400, Greg Lindahl wrote:
> Well, I did that, but it still gives > 2GB return values. I even
> edited /usr/share/magic to confirm that I was setting the right bit.
> 2.2.5-16 kernel, which means it's the source shipped with RH 6.0.
Bugger it all for a lark. Glibc is being "helpful":
execve("./a.out", ["./a.out"], [/* 24 vars */]) = 0
brk(0) = 0x120100c20
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 4
fstat(4, {st_mode=01, st_size=934060944, ...}) = 0
mmap(0, 2147480832, PROT_READ, 0 /* MAP_??? */, 0, 0) = 0x40010000
close(4) = 0
open("/lib/libc.so.6.1", O_RDONLY) = 4
mmap(0, 0, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x40014000
munmap(0x40014000, 8192) = 0
mmap(0, 8192, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x40110000
mprotect(0x401d8000, 1153256, PROT_NONE) = 0
mmap(0x402d0000, 1153256, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x402d0000
mmap(0x402e8000, 1153256, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x402e8000
close(4) = 0
munmap(0x40010000, 14596) = 0
personality(PER_LINUX) = 8388608
Whee. We've just reset 32bit mode.
In the meantime, drop `personality(0x800000)' somewhere
near the beginning of main.
r~
More information about the Libc-hacker
mailing list