Message board for the users of flat assembler.
> Compiler Internals > 16-bit relocations in ELF
format elf section '.text' use32 public foo foo: mov al, [var] mov al, [ebx+var] ret use16 public foo16 foo16: mov al, [var] ; uses address prefix and 32-bit displacement ; mov al, [bx+var] ; error: address sizes do not agree. ret section '.data' var db 0
FASM seems to only support 32-bit relocations in the ELF format:
#define R_386_32 1
#define R_386_PC32 2
NASM and GNU as support 16-bit ones as well:
#define R_386_16 20
#define R_386_PC16 21
Could FASM support 16-bit relocations in ELF too?
|08 Jun 2015, 00:49||
< Last Thread | Next Thread >
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.