Mikael Pettersson
|
effc77d47a
|
as: tunit: handle .data directive
|
2019-12-25 17:27:27 +01:00 |
|
Mikael Pettersson
|
3030d31385
|
as: token: handle .data directive
|
2019-12-25 17:27:27 +01:00 |
|
Mikael Pettersson
|
d18a218203
|
as: input: handle unknown section error in .pushsection
|
2019-12-25 17:27:19 +01:00 |
|
Mikael Pettersson
|
f07d47b9dd
|
as: input: extend sectionsmap() to also record a #section{}
|
2019-12-25 17:26:41 +01:00 |
|
Mikael Pettersson
|
1d0f244efa
|
as: input: clean up section and subsection switching
|
2019-12-25 17:26:25 +01:00 |
|
Mikael Pettersson
|
8acfabae2b
|
as: input: rename Section to SectionName and Subsection to SubsectionNr
|
2019-12-25 17:26:12 +01:00 |
|
Mikael Pettersson
|
dbc357c556
|
as: input: correct type of sections_map field in #ctx{}
|
2019-12-25 16:56:49 +01:00 |
|
Mikael Pettersson
|
761a62817d
|
as: support subsections and section stack directives
|
2019-12-08 17:01:35 +01:00 |
|
Mikael Pettersson
|
273ce47561
|
as: scan_state: replace filename/1 and linenr/1 with location/1
|
2019-12-08 16:59:33 +01:00 |
|
Mikael Pettersson
|
5c633b99f4
|
as: scan: accept semi-colon as statement separator
|
2019-12-08 16:59:33 +01:00 |
|
Mikael Pettersson
|
19e8c9fe7d
|
erlang: add xref checks to compile step
|
2019-09-09 17:52:55 +02:00 |
|
Mikael Pettersson
|
c172f2df4b
|
as: use pdp10_extint:uint{18,36}_to_ext/1
|
2019-09-09 17:48:24 +02:00 |
|
Mikael Pettersson
|
a4d6d2ffff
|
getopt: remove unused parse/2 API function
|
2019-09-09 17:39:20 +02:00 |
|
Mikael Pettersson
|
858cec95bb
|
pdp10_stdio:fopen/2: silence unwanted crash report on failure; scan_state:fopen/1: likewise
|
2019-09-08 19:06:29 +02:00 |
|
Mikael Pettersson
|
d3e5383f36
|
as: support local labels
|
2019-09-08 17:48:18 +02:00 |
|
Mikael Pettersson
|
162faefd81
|
as: tunit: correct type of address field in #s_insn{}
|
2019-09-08 17:48:08 +02:00 |
|
Mikael Pettersson
|
c41caee3ba
|
as: support symbols in instruction displacement operands
|
2019-09-07 13:44:51 +02:00 |
|
Mikael Pettersson
|
af93b5caab
|
as: parse: Accumulator is not mandatory in PDP10_INSN_BASIC instructions
|
2019-09-07 13:41:27 +02:00 |
|
Mikael Pettersson
|
c6c6aeeee4
|
as: tunit.erl: add missing -spec:s
|
2019-09-07 13:41:27 +02:00 |
|
Mikael Pettersson
|
c1bd54af52
|
as: parse: correct reference to stack pointer in example
|
2019-09-07 11:06:40 +02:00 |
|
Mikael Pettersson
|
3cfa254f46
|
as: macro10.txt: use consistent and less archaic terminology, tidy
|
2019-09-07 11:06:19 +02:00 |
|
Mikael Pettersson
|
704fdf995e
|
as: add some docs on MACRO-10 syntax
|
2019-09-02 22:07:24 +02:00 |
|
Mikael Pettersson
|
e410aa86da
|
readelf: rewrite in Erlang
|
2019-09-01 17:03:53 +02:00 |
|
Mikael Pettersson
|
a255160ff7
|
pdp10_elf36: export read_uint36/1
|
2019-09-01 17:03:53 +02:00 |
|
Mikael Pettersson
|
9c98a4c3b8
|
pdp10_elf36:read_SymTab/2: also return the ShNdx of the SymTab; nm: adjust
|
2019-09-01 17:03:47 +02:00 |
|
Mikael Pettersson
|
aa8791f897
|
pdp10_elf36: return {Sh,Sym}Tab with s{h,t}_name:s already translated, do not return {Sh,}StrTab; nm: adjust
|
2019-08-28 21:11:45 +02:00 |
|
Mikael Pettersson
|
cb450ce096
|
pdp10_elf36:format_error/1: handle eof from read_uint9/1
|
2019-08-28 21:09:22 +02:00 |
|
Mikael Pettersson
|
e2ea928b58
|
TODO: adjust library names for Erlang migration, bump Copyright year range
|
2019-08-22 20:46:16 +02:00 |
|
Mikael Pettersson
|
c53d8167c9
|
nm: use pdp10_elf36 library, use error:format/1 to format error reasons
|
2019-08-22 20:46:05 +02:00 |
|
Mikael Pettersson
|
c150845358
|
pdp10_elf36: start rewrite in Erlang, move Elf36 I/O operations from nm to here
|
2019-08-22 20:41:40 +02:00 |
|
Mikael Pettersson
|
54cb1c0a94
|
pdp10_extint: rewrite in Erlang
|
2019-08-22 20:41:40 +02:00 |
|
Mikael Pettersson
|
07d88d7697
|
as: fix missed call to error:format/1
|
2019-08-17 18:37:15 +02:00 |
|
Mikael Pettersson
|
026bc3b8e2
|
as: correct .file symbols to be SHN_ABS, init sh_link with SHN_UNDEF not 0, add FIXME to symbols_image/0
|
2019-08-17 17:49:47 +02:00 |
|
Mikael Pettersson
|
295a44f67d
|
as: convert to module-tagged errors, format_error/1, and error:format/1; improve specs
|
2019-08-16 21:43:04 +02:00 |
|
Mikael Pettersson
|
5e34a16dec
|
od: use error:format/1, remove pointless check of skip_bytes/4 return value
|
2019-08-16 17:57:25 +02:00 |
|
Mikael Pettersson
|
f2efa4979f
|
8to9: use error:format/1, break long line
|
2019-08-16 17:42:07 +02:00 |
|
Mikael Pettersson
|
369668d362
|
error: new module to format error terms for diagnostics
|
2019-08-16 15:06:59 +02:00 |
|
Mikael Pettersson
|
887fdf0d93
|
format_error/1 implementations: remove lists:flatten/1 calls, correct return value spec
|
2019-08-16 15:06:25 +02:00 |
|
Mikael Pettersson
|
2b1022dd03
|
pdp10_stdio: add format_error/1, tag own and file errors with originating module
|
2019-08-14 21:24:07 +02:00 |
|
Mikael Pettersson
|
9af4555d3e
|
getopt: add format_error/1, tag error reasons with ?MODULE
|
2019-08-14 21:24:02 +02:00 |
|
Mikael Pettersson
|
880eba4b76
|
strtol: add format_error/1, tag error reasons with ?MODULE
|
2019-08-14 21:23:56 +02:00 |
|
Mikael Pettersson
|
180fcbc1b9
|
change strtol:parse/2 to return a standard {ok,Result} 2-tuple
|
2019-08-14 17:57:27 +02:00 |
|
Mikael Pettersson
|
ce0595ef44
|
as: rewrite in Erlang, initial version
|
2019-08-13 19:21:57 +02:00 |
|
Mikael Pettersson
|
c184c9b4a8
|
pdp10_elf36.hrl: sync with binutils-2.32 ELF definitions
|
2019-07-31 17:23:21 +02:00 |
|
Mikael Pettersson
|
fa0d71dd5a
|
pdp10-elf36.h: sync with binutils-2.32 ELF definitions
|
2019-07-31 16:48:17 +02:00 |
|
Mikael Pettersson
|
730bffc28b
|
pdp10_opcodes: rewrite in Erlang, resolve ambiguities
|
2019-07-30 18:24:38 +02:00 |
|
Mikael Pettersson
|
690a7c86e8
|
ar: rewrite in Erlang, initial version
|
2019-07-20 19:49:23 +02:00 |
|
Mikael Pettersson
|
cc709a7e1c
|
pdp10_stdio.erl: correct return value in fopen failure case
|
2019-07-20 19:49:23 +02:00 |
|
Mikael Pettersson
|
512f2e452d
|
ar.c: correct strftime() format for ar -tv
|
2019-07-20 19:49:23 +02:00 |
|
Mikael Pettersson
|
a05674438f
|
pdp10_stdio.erl: rename fwrite/2 to fputs/2
|
2019-07-20 19:49:23 +02:00 |
|