flat assembler
Message board for the users of flat assembler.
Index
> Linux > Can't declare sections |
Author |
|
baldr 16 Dec 2013, 01:06
fasm manual wrote: To create executable file, follow the format choice directive with the executable keyword and optionally the number specifying the brand of the target operating system (for example value 3 would mark the executable for Linux systems). With this format selected it is allowed to use entry directive followed by the value to set as entry point of program. On the other hand it makes extrn and public directives unavailable, and instead of section there should be the segment directive used, followed by one or more segment permission flags and optionally a marker of special ELF executable segment, which can be interpreter, dynamic or note. The origin of segment is aligned to page (4096 bytes), and available permission flags are: readable, writeable and executable. |
|||
16 Dec 2013, 01:06 |
|
flynet 16 Dec 2013, 08:42
Then it's impossible to name a section and to have sections like .data, .text, etc... ? I have tried to use the -s option to create symbolic info but gdb says that it can't recognize the executable format.
|
|||
16 Dec 2013, 08:42 |
|
randall 16 Dec 2013, 08:57
You can still use gdb declaring only segments.
|
|||
16 Dec 2013, 08:57 |
|
flynet 16 Dec 2013, 09:22
But I can't put breakpoints since I don't have the debugging infos....
|
|||
16 Dec 2013, 09:22 |
|
randall 16 Dec 2013, 12:24
You can use memory address to put breakpoint:
For example: b *0x4003d |
|||
16 Dec 2013, 12:24 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.