Messages in this thread | | | From | Bernd Eckenfels <> | Subject | Re: Capabilities done right [diff against 2.3.1] | Date | Fri, 21 May 1999 02:02:15 +0200 |
| |
In article <199905182034.QAA13787@dcl.MIT.EDU> you wrote: > I just came up with a random thought ---- and I'd need to do more > investigating about the ELF format to make sure this is actually doable, > but I believe we can control the order in which constructurs get run, > yes?
4ecki@calista:~> strace /bin/ls 2>&1 | head -2 execve("/bin/ls", ["/bin/ls"], [/* 45 vars */]) = 0 brk(0) = 0x80548c0 4ecki@calista:~> strace /bin/ls 2>&1 | head -3 execve("/bin/ls", ["/bin/ls"], [/* 45 vars */]) = 0 brk(0) = 0x80548c0 open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory) 4ecki@calista:~> ltrace /bin/ls 2>&1 | head -3 atexit(0x4000adc0) = 0 __libc_init_first(1, 0xbffffb34, 0, 0xbffffb3c, 0xbffffb4b) = 0x4000adc0 atexit(0x080513d0) = 0
I think the first thing which gets run is something like crt.0. But this is linked hard in the bin.
Greetings Bernd
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |