flat assembler
Message board for the users of flat assembler.
Index
> Main > Invalid use of symbol using format elf and use16 |
Author |
|
Tomasz Grysztar 24 Sep 2006, 23:03
This is actually the same thing that was discussed here: http://board.flatassembler.net/topic.php?t=5703
|
|||
24 Sep 2006, 23:03 |
|
MAD_DËMON 25 Sep 2006, 16:45
I have found how to fix this issue hopefully, declaring 'org $0' inside the text section, so it compiles fine now
|
|||
25 Sep 2006, 16:45 |
|
Tomasz Grysztar 25 Sep 2006, 17:32
However this way you disable the relocations. And if you don't need the relocations, why not use direct binary output instead of object?
|
|||
25 Sep 2006, 17:32 |
|
MAD_DËMON 25 Sep 2006, 18:11
Tomasz Grysztar wrote: However this way you disable the relocations. And if you don't need the relocations, why not use direct binary output instead of object? becuase binary format in fasm doesn't allow me the use of sections, I think that nasm was able of this, I need to keep the code and data isolated in format binary, without matterring in which place of the source they are declared, as I'm trying to keep my sources in modules and each source module has code and data. |
|||
25 Sep 2006, 18:11 |
|
LocoDelAssembly 25 Sep 2006, 18:17
I think he means using "format elf executable" (which allows the use of sections too).
|
|||
25 Sep 2006, 18:17 |
|
Tomasz Grysztar 25 Sep 2006, 18:23
MAD_DËMON wrote: becuase binary format in fasm doesn't allow me the use of sections, I think that nasm was able of this, I need to keep the code and data isolated in format binary, without matterring in which place of the source they are declared, as I'm trying to keep my sources in modules and each source module has code and data. So you link the few objects, each with code and data section into one? The you won't be able to cross-reference the code and data between different files if you disable the relocations. |
|||
25 Sep 2006, 18:23 |
|
MAD_DËMON 25 Sep 2006, 20:07
well, so then I think that the best solution is that I need a way for put all declared data in a position ahead of all code, without mattering the place where the data is declared using format binary directive.
|
|||
25 Sep 2006, 20:07 |
|
Tomasz Grysztar 25 Sep 2006, 20:51
The idea of flat binary formatter is that the structure and order of the source exactly reflects the structure and order of the resulting file. This is a kind of WYSIWYG applied to assembly.
|
|||
25 Sep 2006, 20:51 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.