lkml.org 
[lkml]   [1999]   [May]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Capabilities done right [diff against 2.3.1]
Date
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/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.026 / U:0.944 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site