[PATCH/RFA] Don't relocate SunOS-style a.out dynamic executables
Mark Kettenis
kettenis@gnu.org
Wed Sep 8 14:32:00 GMT 2004
Date: Tue, 24 Aug 2004 16:39:45 -0700
From: Kevin Buettner <kevinb@redhat.com>
On Sun, 22 Aug 2004 20:56:34 +0200 (CEST)
Mark Kettenis <kettenis@chello.nl> wrote:
> Since I was curious whether our SunOS-style a.out shared library
> support still worked, I fired up my virtual VAX[1] and installed
> NetBSD 1.5.2 on it. Alas, GDB didn't quite work, and indeed the
> solib-sunos.c code is to blame. Some debugging revealed that the code
> was relocating the main executable over two bytes. If you know a bit
> about the VAX and look at the code it is pretty easy to see why. VAX
> functions start at an offset of two bytes from the function's address.
Those two bytes are a register save mask? (Not that it matters; just
trying to remember something that I knew a very long time ago.)
Yup.
> If so, I'd like to apply the attached patch.
Sure. It's okay with me.
Committed now, thanks (and sorry for the delay),
Mark
More information about the Gdb-patches
mailing list