Allow NetBSD (old style) shared binaries to work. Probably not the

final solution but at least this gets folks running -current up again.
This commit is contained in:
Nate Williams 1994-02-16 19:26:39 +00:00
parent e08bc68368
commit 17682d0199
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=1164

View file

@ -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");
}