diff options
author | Nate Williams <nate@FreeBSD.org> | 1994-02-16 19:26:39 +0000 |
---|---|---|
committer | Nate Williams <nate@FreeBSD.org> | 1994-02-16 19:26:39 +0000 |
commit | 17682d01994894f05392b1ce05d0e7dfd08a2cb9 (patch) | |
tree | ade2da80193334b0bb5786b190e22fae08215c52 /lib/csu | |
parent | e08bc68368d14fd52826a8df4df77bce8f968bcd (diff) | |
download | src-17682d01994894f05392b1ce05d0e7dfd08a2cb9.tar.gz src-17682d01994894f05392b1ce05d0e7dfd08a2cb9.zip |
Allow NetBSD (old style) shared binaries to work. Probably not the
final solution but at least this gets folks running -current up again.
Notes
Notes:
svn path=/head/; revision=1164
Diffstat (limited to 'lib/csu')
-rw-r--r-- | lib/csu/i386/crt0.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/csu/i386/crt0.c b/lib/csu/i386/crt0.c index 2b8c123bc48b..38fd64c6b23d 100644 --- a/lib/csu/i386/crt0.c +++ b/lib/csu/i386/crt0.c @@ -27,7 +27,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: crt0.c,v 1.12 1994/01/29 01:58:44 jtc Exp $ + * $Id: crt0.c,v 1.8 1994/02/13 20:53:11 jkh Exp $ */ @@ -197,7 +197,7 @@ __do_dynamic_link () if (read(crt.crt_ldfd, &hdr, sizeof hdr) < sizeof hdr) { _FATAL("Failure reading ld.so\n"); } - if (N_GETMAGIC(hdr) != ZMAGIC && N_GETMAGIC(hdr) != QMAGIC) { + if ((N_GETMAGIC_NET(hdr) != ZMAGIC) && (N_GETMAGIC(hdr) != QMAGIC)) { _FATAL("Bad magic: ld.so\n"); } |