diff options
author | nate <nate@FreeBSD.org> | 1994-02-16 19:26:39 +0000 |
---|---|---|
committer | nate <nate@FreeBSD.org> | 1994-02-16 19:26:39 +0000 |
commit | 88cc102a4d42a45a949d0fd683a3aeb793c5ab46 (patch) | |
tree | ade2da80193334b0bb5786b190e22fae08215c52 | |
parent | 742a6c37805e8bb8e7e55b231af992134cc1edfa (diff) | |
download | FreeBSD-src-88cc102a4d42a45a949d0fd683a3aeb793c5ab46.zip FreeBSD-src-88cc102a4d42a45a949d0fd683a3aeb793c5ab46.tar.gz |
Allow NetBSD (old style) shared binaries to work. Probably not the
final solution but at least this gets folks running -current up again.
-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 2b8c123..38fd64c 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"); } |