summaryrefslogtreecommitdiff
path: root/src/port.h
diff options
context:
space:
mode:
authorXavier ASUS <xavi92psx@gmail.com>2019-10-24 06:19:28 +0200
committerXavier ASUS <xavi92psx@gmail.com>2019-10-24 06:19:28 +0200
commitd5577a84aadd0195a95b5b4d83e49b40af49425b (patch)
tree39ef608e0743b5e2fdc09fa9f3bc113272a5713c /src/port.h
parent8eeb5d5444b2f29aa56fb1f0f8f20955c160e99e (diff)
downloadsdcc-gas-d5577a84aadd0195a95b5b4d83e49b40af49425b.tar.gz
Got hi8/lo8 asm instructions working
GNU as does not support the #</#> notation asxxx uses to determine address LSB and MSB. Instead, two instructions have been created on GNU as and ld (see my stm8-binutils-gdb fork) for this purpose. On the other hand, I'm upset to see gen.c does not provide an assembler-agnostic implementation when SDCCasm.c already provides tools already meant for this. OTOH, support for the "-C" has been added for --gas.
Diffstat (limited to 'src/port.h')
-rw-r--r--src/port.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/port.h b/src/port.h
index fb9f442..478fe3e 100644
--- a/src/port.h
+++ b/src/port.h
@@ -139,6 +139,8 @@ typedef struct
const char *file_ext;
/** If non-null will be used to execute the assembler. */
void (*do_assemble) (set *);
+ /** Command to run the GNU assembler. */
+ const char **binutils_cmd;
}
assembler;
@@ -157,6 +159,8 @@ typedef struct
const int needLinkerScript;
const char *const *crt;
const char *const *libs;
+ /** Extension for ELF object files generated using GNU binutils (.o) */
+ const char *o_ext;
}
linker;