Skip to content

Commit 11ac466

Browse files
committed
Fixed #654. Make sure the gotoblas_init function is run before all other static initializations.
1 parent c666158 commit 11ac466

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

driver/others/memory.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
139139

140140
#define BITMASK(a, b, c) ((((a) >> (b)) & (c)))
141141

142-
#define CONSTRUCTOR __attribute__ ((constructor))
143-
#define DESTRUCTOR __attribute__ ((destructor))
142+
#define CONSTRUCTOR __attribute__ ((constructor(101)))
143+
#define DESTRUCTOR __attribute__ ((destructor(101)))
144144

145145
#ifdef DYNAMIC_ARCH
146146
gotoblas_t *gotoblas = NULL;

0 commit comments

Comments
 (0)