Skip to content

Commit

Permalink
Fix imports in loader to link Ninja
Browse files Browse the repository at this point in the history
  • Loading branch information
szapp committed Jun 4, 2024
1 parent a26d092 commit c11e4da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -244,13 +244,13 @@ $(SETUP) : $(LOADER) $(TARGET) LICENSE $(SETUPSCR) $(SETUPINI)

$(LOADER) : $(LOADER_OBJ) $(TARGET)
@$(call mkdir,$(BUILDDIR))
$(LINKER) $(FLAGS_L) /fo $@ $^ $(LOADER_SYSDEP)
$(LINKER) $(FLAGS_L) /fo $(call FixPath,$@) $^ $(LOADER_SYSDEP)
$(REPRO) $@
$(PATCHREPRO) $(call FixPath,$@)

$(TARGET) : $(OBJ) $(RSC)
@$(call mkdir,$(BUILDDIR))
$(LINKER) $(FLAGS_L) /fo $@ $^ $(SYSDEP)
$(LINKER) $(FLAGS_L) /fo $(call FixPath,$@) $^ $(SYSDEP)
$(REPRO) $@
$(PATCHREPRO) $(call FixPath,$@)

Expand Down
3 changes: 3 additions & 0 deletions src/dll/BugslayerUtil.asm
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ DllMain:
mov eax, DWORD 0x1
ret 0xC
verifyStackoffset
.reference: ; Never reached
call Ninja ; Force import during linking
ret


; Load library on very first call, after that jump to function directly
Expand Down

0 comments on commit c11e4da

Please sign in to comment.