Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant run binded file in memory #50

Open
tentacen opened this issue Dec 18, 2022 · 18 comments
Open

Cant run binded file in memory #50

tentacen opened this issue Dec 18, 2022 · 18 comments

Comments

@tentacen
Copy link

Hi i tried crypting the exe that binder gave me but it doesnt work, why?

@UnamSanctam
Copy link
Owner

No idea, what are your settings?

@tentacen
Copy link
Author

image

@UnamSanctam
Copy link
Owner

What's your file settings?

@tentacen
Copy link
Author

file settings?
both 64x native and i compile the runpe in 64x

@UnamSanctam
Copy link
Owner

The bound file you added, for example what drop location did you choose? And the native built file is 32-bit for maximum compatibility.

@tentacen
Copy link
Author

oh so it is the output exe problem right?

@tentacen
Copy link
Author

how can i make it x64

@UnamSanctam
Copy link
Owner

If you're doing something that requires a 64-bit file then yes. You'd have to change the tcc compilation command, might work if you change -m32 to -m64 here:

string.Format("-Wall -Wl,-subsystem=windows \"{0}\" {1} -luser32 -lshell32 -m32", paths["filename"] + ".c", "resource.o"),

@tentacen
Copy link
Author

resource.o: error: resource.o: unrecognized file type

@UnamSanctam
Copy link
Owner

Right, might have to remove pe-i386 from here:

string.Format("cmd /c \"{0}\" --input resource.rc --output resource.o -O coff -F pe-i386 {1}", paths["windres"], defs),

@tentacen
Copy link
Author

Compilers\MinGW64\bin\windres.exe: supported targets: pe-i386 pei-i386 elf32-i386 elf32-iamcu elf32-little elf32-big plugin srec symbolsrec verilo

@tentacen
Copy link
Author

string.Format("cmd /c \"{0}\" --input resource.rc --output resource.o -O coff -F {1}", paths["windres"], defs),

@tentacen
Copy link
Author

in\Debug\Compilers\MinGW64\bin\windres.exe: option requires an argument -- F

@UnamSanctam
Copy link
Owner

Try removing the -F as well if you haven't.

@tentacen
Copy link
Author

i tried and after removing -F
resource.o: error: resource.o: unrecognized file type

@UnamSanctam
Copy link
Owner

So the full string is "cmd /c \"{0}\" --input resource.rc --output resource.o -O coff {1}" now? Can't remember if that windres is only 32-bit or not.

@tentacen
Copy link
Author

yes thats right

@UnamSanctam
Copy link
Owner

You might have to replace the windres then, you could copy over the one from the miner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants