Article View: gnu.gdb.bug
Article #516Fix for RS/6000 dynamic linking
From: Robert Andrew Ryan
Date: Thu, 12 Nov 1992 07:35
Date: Thu, 12 Nov 1992 07:35
54 lines
1972 bytes
1972 bytes
Thu Nov 05 23:04:38 EST 1992 Rob Ryan (rr2b@andrew.cmu.edu)
* xcoffexec.c: fixed a bug where if a object has no member, and
the stat pointer passed to vmap_symtab was NULL, the wrong vmap
entries would be modified. Fixes behavior where attempting to
load symbols for a module with no member would mess up already
read in symbols.
*** xcoffexec.c.orig Wed Oct 7 20:31:53 1992
--- xcoffexec.c Thu Nov 5 23:00:56 1992
***************
*** 392,398 ****
} else if (vp->member[0]) {
/* no match, and member present, not this one. */
continue;
! } else {
struct stat si;
FILE *io;
--- 392,401 ----
} else if (vp->member[0]) {
/* no match, and member present, not this one. */
continue;
! } else if (vip) {
! /* if we weren't given a stat structure
! that doesn't mean any old bfd will match...
! -Rob Ryan 11/5/92*/
struct stat si;
FILE *io;
***************
*** 408,417 ****
if (fstat(fileno(io), &si) < 0)
fatal("cannot fstat BFD for sym");
! if (vip && (si.st_dev != vip->st_dev
|| si.st_ino != vip->st_ino))
continue;
! }
if (vp->tstart != old_start) {
--- 411,420 ----
if (fstat(fileno(io), &si) < 0)
fatal("cannot fstat BFD for sym");
! if ((si.st_dev != vip->st_dev
|| si.st_ino != vip->st_ino))
continue;
! } else continue;
if (vp->tstart != old_start) {
Technical Details
Message-ID:
<Ef0dLaW00WoiN32UJY@andrew.cmu.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!know!cass.ma02.bull.com!mips2!news.bbn.com!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!andrew.cmu.edu!rr2b+Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!know!cass.ma02.bull.com!mips2!news.bbn.com!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!andrew.cmu.edu!rr2b+ From: rr2b+@andrew.cmu.edu (Robert Andrew Ryan) Newsgroups: gnu.gdb.bug Subject: Fix for RS/6000 dynamic linking Message-ID: <Ef0dLaW00WoiN32UJY@andrew.cmu.edu> Date: 12 Nov 92 07:35:34 GMT Sender: gnulists@ai.mit.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 54 Approved: bug-gdb@prep.ai.mit.edu