Changeset 14630


Ignore:
Timestamp:
Feb 2, 2011, 4:59:46 AM (8 years ago)
Author:
gb
Message:

Look for MACHO_MAGIC in header.
Initialize next_section_ordinal.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/lisp-kernel/mach-o-image.c

    r14609 r14630  
    482482    dynamic_section_ordinal = 0,
    483483    static_section_ordinal = 0,
    484     next_section_ordinal;
     484    next_section_ordinal = 0;
    485485  natural nrefbytes, first_external_symbol, num_external_symbols, i, j;
    486486   
     
    721721        macho_header *h = (macho_header *)p;
    722722       
    723         if ((h->magic == MH_MAGIC) &&
     723        if ((h->magic == MACHO_MAGIC) &&
    724724            (h->cputype ==
    725725#ifdef X8632
Note: See TracChangeset for help on using the changeset viewer.