Browse Source

fix 32-bit not working

pull/15/head
PoroCYon 2 years ago
committed by PoroCYon
parent
commit
48fa48e797
2 changed files with 3 additions and 1 deletions
  1. +1
    -1
      Makefile
  2. +2
    -0
      rt/loader32.asm

+ 1
- 1
Makefile View File

@ -42,7 +42,7 @@ CXXFLAGS += -m$(BITS) $(shell pkg-config --cflags sdl2)
LIBS=-lc
SMOLFLAGS +=
ASFLAGS += -DUSE_INTERP -DNO_START_ARG -DUNSAFE_DYNAMIC -DUSE_DNLOAD_LOADER #-DALIGN_STACK
ASFLAGS += -DALIGN_STACK -DUSE_INTERP #-DUSE_DNLOAD_LOADER
#-DUSE_DNLOAD_LOADER #-DUSE_DT_DEBUG #-DUSE_DL_FINI #-DNO_START_ARG #-DUNSAFE_DYNAMIC
NASM ?= nasm


+ 2
- 0
rt/loader32.asm View File

@ -19,6 +19,8 @@ _smol_linkoff:
%endif
_smol_start:
mov eax, [esp - 32] ; ???
%ifdef USE_DL_FINI
push edx ; _dl_fini
%endif


Loading…
Cancel
Save