flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
l_inc 21 Sep 2012, 20:46
Blank
This has been discussed so many times... A section should not be empty. But your relocations section becomes empty because there are no relocations to apply. Besides the relocations section should have the attribute readable. Code: format pe dll gui entry start include 'win32ax.inc' section '.edata' export readable writable export 'testdll.dll',\ start, 'test' section '.text' code readable executable start: mov eax,1 ret section '.reloc' data readable discardable data fixups end data dd ? P.S. And there's no bug now. There was a bug in fasm versions, which created a loadable library by putting invalid data into the relocations directory. |
|||
![]() |
|
Blank 21 Sep 2012, 21:14
Thank you for help.
"There was a bug in fasm versions, which created a loadable library by putting invalid data into the relocations directory." - I'll would miss for it - that bug was so useful. |
|||
![]() |
|
l_inc 21 Sep 2012, 21:20
Blank
Quote: that bug was so useful If you don't like the solution I provided in the previous post, you can always force creation of a dummy fixup by putting dd $ somewhere in you source code. But the binary will become 512 bytes larger, if there are no other fixups. |
|||
![]() |
|
LocoDelAssembly 21 Sep 2012, 22:01
You may use this code so you can be sure it will work on both, Win9x and NT line:
Code: section '.reloc' data discardable fixups if ~ $-$$ dd 0,8 ;empty fixups section iff no other fixups end if |
|||
![]() |
|
l_inc 21 Sep 2012, 22:06
LocoDelAssembly
Quote: but I think it is better to not force Windows to relocate if not really needed as that will cause the affected code page to get dirty and not shareable with other processes Nobody said, that dd $ must be put into the code section. Btw. I don't think someone still cares about Win9x. Forgetting it would allow to save 512 bytes. |
|||
![]() |
|
Blank 22 Sep 2012, 07:41
l_inc wrote: Blank No, I mean before was enough one 'section' directive, now also required data block and dword - more routine code to write. Would be nice if more sections(.code and .data exist) were wrapped(out of the box) into macros such as: .import .export .reloc .tls or separate fasm base and includes(and make it available from download page). create several fasm include packages: for each OS or group of users who would be responsible(actualize it, add features, etc.) for package. |
|||
![]() |
|
revolution 22 Sep 2012, 07:55
Blank wrote: ... or separate fasm base and includes(and make it available from download page). http://board.flatassembler.net/topic.php?t=7882 |
|||
![]() |
|
hopcode 22 Sep 2012, 18:39
related to windoze, madmatt's stuff works is very accurated.
i have made some update for my needs, but i dont want to bore madmatt every time, sending him those little updates. also it's difficoult to find update, because it is zipped on "volatile" websites, or referenced from a couple of links somewhere on board (find FASMW64). a repo, i propose Hg, would be 100% suitable for it. madmatt, are you there ? Cheers, _________________ ⠓⠕⠏⠉⠕⠙⠑ |
|||
![]() |
|
madmatt 26 Sep 2012, 14:53
Yep, still here, and your right. It would be better if someone would host the package so that many people could contribute to the project (includes/examples) and have a single place to download the latest in a .rar or .zip file. I'd do this myself, but I'm a complete caveman when it comes to setting up websites or sourceforge.
hopcode: Got your private message, so if your hosting offer still stands then I can email you my latest update. |
|||
![]() |
|
hopcode 27 Sep 2012, 06:18
hi madmatt,
sorry for late response. just uploaded the last zipped release (28 März 2012) i found on esnip some times ago, at [EDIT] repo link to be determined[/EDIT] i used the name "madmatt" for the repo, "the madmatt toolkit" i like the nick ![]() if you decide eventually to push yourself updates on google or where you like (then we will clone from your repo to local, so that i delete that of mine currently online). i send you my email, and some details about the text files. _________________ ⠓⠕⠏⠉⠕⠙⠑ Last edited by hopcode on 27 Sep 2012, 16:08; edited 1 time in total |
|||
![]() |
|
madmatt 27 Sep 2012, 14:05
Ok, that looks better (and simpler) than all the file sharing sites I've been using. Thanks! I'll have a new update shortly, so how would I log in to upload updates?
|
|||
![]() |
|
hopcode 27 Sep 2012, 16:09
a pm in box,
Cheers, _________________ ⠓⠕⠏⠉⠕⠙⠑ |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.