flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > [bug][Solved in FASM 1.71.16] invalid ELF file generated |
Author |
|
JohnFound 29 Oct 2013, 21:41
Hi, Tomasz.
It is very old problem, that I get from time to time invalid ELF file generated. The sources where this happened were pretty big and it was impossible to search the reasons for such strange behavior. Fortunately, today I managed to construct very small source, where the bug appears and can be reproduced. The example is artificial and does not compile to valid program: Code: format ELF executable 3 entry start segment readable writeable executable start: int3 align 4 ; comment this line in order to get valid elf. rb 16 segment interpreter readable db '******************', 0 segment dynamic readable db 8 dup('.') segment readable writeable db 8 dup '?' The source is compiled to ELF file with size 197 bytes, where the asterisk string '******************',0 misses at all. After commenting out the 'align 4' directive, the source compiles to ELF file with size 216 bytes (!) where the mentioned string exists. _________________ Tox ID: 48C0321ADDB2FE5F644BB5E3D58B0D58C35E5BCBC81D7CD333633FEDF1047914A534256478D9 Last edited by JohnFound on 30 Oct 2013, 12:46; edited 2 times in total |
|||
29 Oct 2013, 21:41 |
|
HaHaAnonymous 29 Oct 2013, 22:24
[ Post removed by author. ]
Last edited by HaHaAnonymous on 28 Feb 2015, 19:15; edited 1 time in total |
|||
29 Oct 2013, 22:24 |
|
revolution 30 Oct 2013, 01:27
Confirmed. I made it sticky.
|
|||
30 Oct 2013, 01:27 |
|
JohnFound 30 Oct 2013, 12:18
Everything seems to be OK now. Two bugs less in FASM - one more step towards the perfect assembler.
|
|||
30 Oct 2013, 12:18 |
|
HaHaAnonymous 30 Oct 2013, 15:00
[ Post removed by author. ]
Last edited by HaHaAnonymous on 28 Feb 2015, 19:14; edited 1 time in total |
|||
30 Oct 2013, 15:00 |
|
revolution 30 Oct 2013, 15:05
HaHaAnonymous wrote: Humans will never meet perfection. |
|||
30 Oct 2013, 15:05 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.