flat assembler
Message board for the users of flat assembler.
Index
> Non-x86 architectures > FASMARM: problem with referencing external symbols |
Author |
|
revolution 24 Jun 2020, 15:13
fasmarm has never officially supported ELF or relocations.
The ARM relocations are vastly different from the simpler x86. Sometimes the linker has to rewrite the code to support the external symbol. |
|||
24 Jun 2020, 15:13 |
|
MazeGen 24 Jun 2020, 16:41
The docs say 'The "format" directive will produce ARM code in all the same formats as the X86 version'. That looks like ELF is supported, even ELF with DWARF is mentioned. What formats are actually officially supported?
|
|||
24 Jun 2020, 16:41 |
|
ProMiNick 24 Jun 2020, 20:05
atleast question should be asked this way
Code: format ELF section 'test' executable extrn test_sym ldr r0, [liter_@1] ldr r0, [r0] liter_@1 dw test_sym argument of ARM instructions COULDN`T BE RELOCATED to 32bit dword, so they should be somewhere near PC as "dw value". In ARM test_sym should have same relocation type index as R_386_32 has. If in fasmarm relocations would copy fasm behavior, ARM ELF should be workable. In ARM only 2 instructions thou should avoid are movw movt, relocation of them is painfull process completely different from x86 relocations. But if relocs cutted off from ELF it is bad. |
|||
24 Jun 2020, 20:05 |
|
revolution 25 Jun 2020, 09:02
MazeGen wrote: The docs say 'The "format" directive will produce ARM code in all the same formats as the X86 version'. That looks like ELF is supported, even ELF with DWARF is mentioned. What formats are actually officially supported? Relocations is on my roadmap. I had started some work on them before my secondment, but they not yet available. |
|||
25 Jun 2020, 09:02 |
|
ProMiNick 25 Jun 2020, 21:56
revolution, when we could expect continue of thour brilliant work with fasmarm.
ARM architecture not died by time, but greatfully evolving. So interest to thour fasmarm would only grow in the future. (Apple start to cancel from x86 to ARM - maybe it would be more global tendention.) |
|||
25 Jun 2020, 21:56 |
|
revolution 26 Jun 2020, 11:00
ProMiNick wrote: revolution, when we could expect continue of thour brilliant work with fasmarm. If you can help me to find a route, any route, from anywhere to anywhere else on this map then it might be a start. Travelling now is almost impossible without a direct flight and 14-day quarantine.
|
||||||||||
26 Jun 2020, 11:00 |
|
DimonSoft 26 Jun 2020, 20:45
<OffTop>Belarus has recently added somewhat between 10 and 20 countries where you can come from without having 14-day quarantine. Might not help you though, unless you’re willing to change your citizenship.</OffTop>
|
|||
26 Jun 2020, 20:45 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.