From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21456 invoked by alias); 8 Sep 2004 14:32:04 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 21448 invoked from network); 8 Sep 2004 14:32:01 -0000 Received: from unknown (HELO server7.nfra.nl) (192.87.1.57) by sourceware.org with SMTP; 8 Sep 2004 14:32:01 -0000 Received: from juw15.nfra.nl [10.87.8.15] by server7.nfra.nl; Wed, 08 Sep 2004 16:31:05 +0200 Received: from juw15.nfra.nl (localhost [127.0.0.1]) by juw15.nfra.nl (8.12.2+Sun/8.11.1) with ESMTP id i88EVKCu023178; Wed, 8 Sep 2004 16:31:20 +0200 (CEST) Received: (from kettenis@localhost) by juw15.nfra.nl (8.12.2+Sun/8.12.2/Submit) id i88EVKPc023175; Wed, 8 Sep 2004 16:31:20 +0200 (CEST) Date: Wed, 08 Sep 2004 14:32:00 -0000 Message-Id: <200409081431.i88EVKPc023175@juw15.nfra.nl> From: Mark Kettenis To: kevinb@redhat.com CC: gdb-patches@sources.redhat.com In-reply-to: <20040824163945.35ee121a@saguaro> (message from Kevin Buettner on Tue, 24 Aug 2004 16:39:45 -0700) Subject: Re: [PATCH/RFA] Don't relocate SunOS-style a.out dynamic executables References: <200408221856.i7MIuYAT034596@elgar.kettenis.dyndns.org> <20040824163945.35ee121a@saguaro> X-SW-Source: 2004-09/txt/msg00123.txt.bz2 Date: Tue, 24 Aug 2004 16:39:45 -0700 From: Kevin Buettner On Sun, 22 Aug 2004 20:56:34 +0200 (CEST) Mark Kettenis 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