Changeset 60

Show
Ignore:
Timestamp:
06/26/10 23:00:02 (4 years ago)
Author:
wez
Message:

Change the constructor attribute to putting this function in the
.init section.

The constructor is called too late, and clobbers state, leading
to heap corruption later.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/umem.c

    r59 r60  
    33293329} 
    33303330 
    3331 void __attribute__((constructor)) 
     3331void 
     3332__attribute__((section(".init"))) 
    33323333__umem_init (void) 
    33333334{