Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 May 2014 21:29:18 +0100
From:      Bruce Simpson <bms@fastmail.net>
To:        Mark Johnston <markj@freebsd.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers <src-committers@freebsd.org>
Subject:   Re: svn commit: r265456 - head/libexec/rtld-elf
Message-ID:  <536A979E.7060302@fastmail.net>
In-Reply-To: <CAMw1wOyMgx9fVWDgg8qzxwkhoaPmWAsMiUx9dNOXeov0Lf_qwQ@mail.gmail.com>
References:  <201405061807.s46I7xxt048377@svn.freebsd.org>	<536A239A.8020502@fastmail.net> <CAMw1wOyMgx9fVWDgg8qzxwkhoaPmWAsMiUx9dNOXeov0Lf_qwQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 07/05/2014 18:31, Mark Johnston wrote:
> The Linuxulator makes use of Linux's loader rather than rtld; this was 
> the source of the problem fixed in r254018, for example. Static 
> binaries are not invoked through rtld either, so I don't think this 
> change would have helped anyway.

I'm aware that the rtld code is otherwise unrelated to how Linux ELF 
images are activated, and should have been clearer in my original 
message. Sorry about that.

My question is really: is there an easy way of setting a "start of 
program" breakpoint for such binaries  e.g. where "_start" and/or "main" 
are not exposed in the (nonexistent) symbol table?

Currently I have to inspect the ELF load address and set a breakpoint 
manually in such cases. This is something which might be addressed by a 
GDB macro, although we may not always be using GDB.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?536A979E.7060302>