flat assembler
Message board for the users of flat assembler.
Index
> Main > link win32coff -> bin |
Author |
|
maslan 16 Jul 2004, 06:59
is there is a linker that can output Binary form Win32 PE COFF _________________ Maslan I'm searching for perfection so, even if u need portability u 've to use Assembly --- http://www.maslanlab.org --- http://libosdk.berlios.de http://maslanedit.sf.net http://maslancms.sf.net |
|||
16 Jul 2004, 06:59 |
|
Vortex 16 Jul 2004, 09:55
Why should be necessary such a tool?
_________________ Code it... That's all... |
|||
16 Jul 2004, 09:55 |
|
fasm9 16 Jul 2004, 21:55
debian:~#sr debpackages mingw
|
|||
16 Jul 2004, 21:55 |
|
f0dder 17 Jul 2004, 02:14
does mingw use ms-coff or "regular" coff?
|
|||
17 Jul 2004, 02:14 |
|
maslan 17 Jul 2004, 05:09
thnx but can u send me a sample code to convert pe to bin
_________________ Maslan I'm searching for perfection so, even if u need portability u 've to use Assembly --- http://www.maslanlab.org --- http://libosdk.berlios.de http://maslanedit.sf.net http://maslancms.sf.net |
|||
17 Jul 2004, 05:09 |
|
maslan 20 Jul 2004, 19:07
ok if u don't have code then do any 1 knows a program that do so (extract bin code from pe ignoring the resources)
_________________ Maslan I'm searching for perfection so, even if u need portability u 've to use Assembly --- http://www.maslanlab.org --- http://libosdk.berlios.de http://maslanedit.sf.net http://maslancms.sf.net |
|||
20 Jul 2004, 19:07 |
|
pelaillo 20 Jul 2004, 19:31
If I understand you correctly, you need to extract the ".code" section on PE. You can use OllyDbg or any hex editor or a pe editor/viewer such as LordPE.
What I don't understand is why you need it. You can't do nothing with it alone. |
|||
20 Jul 2004, 19:31 |
|
maslan 21 Jul 2004, 19:02
pelaillo wrote: If I understand you correctly, you need to extract the ".code" section on PE. You can use OllyDbg or any hex editor or a pe editor/viewer such as LordPE. F0dder said: If you want to convert a PE executable to binary form, you'll have to write some code of your own. In case you don't need resources, imports, exports (etc) it's pretty easy, allocate a memory buffer the size PEheader.SizeOfImage, then read all sections physical data into that buffer, offset by their memory RVA. i need a program that does what he said _________________ Maslan I'm searching for perfection so, even if u need portability u 've to use Assembly --- http://www.maslanlab.org --- http://libosdk.berlios.de http://maslanedit.sf.net http://maslancms.sf.net |
|||
21 Jul 2004, 19:02 |
|
pelaillo 21 Jul 2004, 21:13
All you need to do this is inside imports.asm that you could find here:
http://board.flatassembler.net/topic.php?t=1068 But then, what do you expect to do with this? |
|||
21 Jul 2004, 21:13 |
|
maslan 22 Jul 2004, 20:03
i wanna to play with pe generated by most windows compilers as os toy
coz i played with elf and it's perfect while i do know nothing about pe exe so i just wanna create pe exe with no imports from any dlls and boot it using grub so i think grub don't run pe exe so i wanna convert it to binary without any dlls imports. any other comments ,or solutions ???? _________________ Maslan I'm searching for perfection so, even if u need portability u 've to use Assembly --- http://www.maslanlab.org --- http://libosdk.berlios.de http://maslanedit.sf.net http://maslancms.sf.net |
|||
22 Jul 2004, 20:03 |
|
pelaillo 22 Jul 2004, 20:57
PE with imported functions will not work at all without import section.
You will need at least to grab the code from inside dlls for all used functions, producing a plain binary file. A sort of statically link your program. But you should use dlls from wine project, because doing this on windows' dlls is considered a crime And don't forget to relocate the data and to replace resources for a similar method. Keep a look at for near all PEs you will risk to redo whole wine project. |
|||
22 Jul 2004, 20:57 |
|
fasm9 22 Jul 2004, 21:12
also check reactos [to me :BAD_feeling]
|
|||
22 Jul 2004, 21:12 |
|
maslan 23 Jul 2004, 09:27
i've found a program called pe2bin at http://ybx.narod.ru
which create grub mutliboot form pe but how can i tell HLL compiler to only use on section for all text,data,bss coz this program remove all section except the first 1 which is the code(text).? _________________ Maslan I'm searching for perfection so, even if u need portability u 've to use Assembly --- http://www.maslanlab.org --- http://libosdk.berlios.de http://maslanedit.sf.net http://maslancms.sf.net |
|||
23 Jul 2004, 09:27 |
|
decard 23 Jul 2004, 10:03
using GCC proably editing linker scripts could help, you should ask on some GCC-related forum
|
|||
23 Jul 2004, 10:03 |
|
maslan 23 Jul 2004, 12:30
can any body tell me how to adjust any HLL to generate pe with only 1 section
_________________ Maslan I'm searching for perfection so, even if u need portability u 've to use Assembly --- http://www.maslanlab.org --- http://libosdk.berlios.de http://maslanedit.sf.net http://maslancms.sf.net |
|||
23 Jul 2004, 12:30 |
|
fasm9 23 Jul 2004, 17:49
Again, i don't know what you want, but, Please, ask your question here.
http://reactos.com/en/content/view/full/64 that forum allows anonymous question. |
|||
23 Jul 2004, 17:49 |
|
maslan 24 Jul 2004, 10:51
fasm9 wrote: Again, i don't know what you want, but, Please, ask your question here. i said before i wanna generate binary from pe which can be loaded by a boot loader or generate multiboot to run with grub all of this using a HLL like C or Pascal i know elf is good and always use them but i wanna try os developement on win32 (just a toy) _________________ Maslan I'm searching for perfection so, even if u need portability u 've to use Assembly --- http://www.maslanlab.org --- http://libosdk.berlios.de http://maslanedit.sf.net http://maslancms.sf.net |
|||
24 Jul 2004, 10:51 |
|
fasm9 24 Jul 2004, 18:04
sorry me: simple noob.
if you think if i don't bug you, can you look these kind of things? http://mobius.sf.net http://www2.skyos.org http://dmoz.org/Computers/Software/Operating_Systems/x86/ |
|||
24 Jul 2004, 18:04 |
|
maslan 25 Jul 2004, 12:33
hey i checked ur sites although the last 2 i knew before
but they didn't help here is what i decided now i wanna write just helloworld kernel which can be loaded by any boot loader or multiboot kernel which can be loaded by grub i wanna write the kernel by any compiler which works on windows and produce pe exe. (Pascal : FreePascal , C : Borland C) so how can i use each one of them rto create that shit helloworld , i know it an adventure , please don't point for linux coz i already use it and love it more than any other OS but i need something new like what i said before . bye _________________ Maslan I'm searching for perfection so, even if u need portability u 've to use Assembly --- http://www.maslanlab.org --- http://libosdk.berlios.de http://maslanedit.sf.net http://maslancms.sf.net |
|||
25 Jul 2004, 12:33 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.