thinkpol has quit [Remote host closed the connection]
thinkpol has joined #osdev
itrsea has quit [Quit: leaving]
theruran has quit [Quit: Connection closed for inactivity]
mrpops2ko has quit [Ping timeout: 248 seconds]
itrsea has joined #osdev
mrpops2ko has joined #osdev
averymt_ has joined #osdev
nur has quit [Quit: Leaving]
averymt has quit [Ping timeout: 252 seconds]
gog has quit [Quit: byee]
jcea has quit [Ping timeout: 276 seconds]
vdamewood has joined #osdev
\Test_User has quit [Ping timeout: 252 seconds]
\Test_User has joined #osdev
edr has quit [Quit: Leaving]
Bonstra has quit [Ping timeout: 265 seconds]
Bonstra has joined #osdev
averymt_ is now known as averymt
dude12312414 has quit [Remote host closed the connection]
dude12312414 has joined #osdev
xvmt has quit [Read error: Connection reset by peer]
xvmt has joined #osdev
<chiselfuse>
does doing `/usr/lib/ld-linux-x86-64.so.2 --argv0 elf_file elf_file foo bar` result in the exact same image/entry that would result from doing `elf_file foo bar` given that `elf_file` has `/usr/lib/ld-linux-x86-64.so.2` set as its interpreter? or are there subtle differences?
<Mutabah>
I think it's the same? I've use a similar trick to run apps in a different environment (e.g. compiled for a different glibc)
<chiselfuse>
i have an idea
<chiselfuse>
i'll load both in gdb and break at the entry address
<chiselfuse>
but wait, when i do `elf_file foo bar` can i tell it to break at the entry address of ld.so?
<chiselfuse>
perhaps if i turn off aslr, check the address, then execute again with a breakpoint there?
<chiselfuse>
but then that would write an INT3 and get rewritten when it mmaps ld.so over it, wouldn't it?
<chiselfuse>
oh i forgot to say i'd then dump both memory images and compare them to check if they result in the same one
<chiselfuse>
man i hate gdb
<chiselfuse>
there is no distinction of what inferior, target or anything are
<chiselfuse>
haywire
hazard_hitman has quit [Quit: Konversation terminated!]
<chiselfuse>
so why is it that when i let the kernel figure out the interpreter, the main elf is mmaped immediately before the _start of the interpreter?
<chiselfuse>
btw i double checked and 0x7ffff7fe35c0 is indeed the _start of ld.so every time
<chiselfuse>
i think i'm missing so much info
<chiselfuse>
like why is ld.so always loaded in the 7fff* range even when i exec it directly
<chiselfuse>
oh i guess that's just where the kernel loads PIEs that dont' have an interpreter
itrsea has quit [Quit: leaving]
osmten has joined #osdev
ThinkT510 has quit [Read error: Connection reset by peer]
k0valski18891621 has quit [Read error: Connection reset by peer]