191 Commits

Author SHA1 Message Date
Mikael Pettersson
a67a1afce9 pdp10_elf36.hrl: initial PDP10 ELF relocation types 2020-01-19 20:38:10 +01:00
Mikael Pettersson
14eb0ad1ed as: parse: handle parenthesized exprs 2020-01-12 23:14:42 +01:00
Mikael Pettersson
09016f7e2e as: parse: handle symbol +/- offset exprs 2020-01-12 23:14:42 +01:00
Mikael Pettersson
8ddaa532e8 as: parse: handle negated integers in exprs 2020-01-12 23:14:23 +01:00
Mikael Pettersson
dbcb93dc2c as: parse: handle indirect EA without preceding accumulator 2020-01-12 18:38:28 +01:00
Mikael Pettersson
6895fef758 as: parse: parse <expr> properly while parsing <insn> 2020-01-12 18:27:24 +01:00
Mikael Pettersson
dae3d2d768 as: parse: stmt_after_uinteger/3: move out of insn parsing block, correct diagnostic 2020-01-12 18:27:24 +01:00
Mikael Pettersson
1f89281c1e as: tunit: change exprs to be symbol+offset 2020-01-12 18:27:24 +01:00
Mikael Pettersson
e1fda8a177 as: parse: tidy construction of exprs 2020-01-12 18:27:24 +01:00
Mikael Pettersson
5d346bd28a as: parse: simplify <expr_list> and <expr> parsning 2020-01-12 18:27:24 +01:00
Mikael Pettersson
726098c315 readelf: don't crash on absent symtab 2020-01-03 21:42:17 +01:00
Mikael Pettersson
e144176d1c as: handle the .rodata section 2020-01-03 21:41:52 +01:00
Mikael Pettersson
8d2b402d69 as: handle .pushsection as a special case of .section 2020-01-03 21:40:02 +01:00
Mikael Pettersson
14184eb4cd as: handle .section directive 2020-01-03 21:39:43 +01:00
Mikael Pettersson
72df4dc2b3 as: handle .ascii and .asciz directives 2019-12-31 16:09:43 +01:00
Mikael Pettersson
9f51730200 as: handle .byte, .hword, .short, and .word directives 2019-12-30 22:00:12 +01:00
Mikael Pettersson
896378c3b5 as: handle .data section 2019-12-30 17:10:49 +01:00
Mikael Pettersson
6f966758eb as: input: .data directive bug fix 2019-12-30 17:08:44 +01:00
Mikael Pettersson
4850c75237 as: handle .long directive 2019-12-30 17:08:31 +01:00
Mikael Pettersson
b96d413aaf escript_runtime: remove support for OTP < 21 2019-12-30 17:01:05 +01:00
Mikael Pettersson
3727dfbcc9 as: scan: add support for one-token pushback 2019-12-28 22:03:36 +01:00
Mikael Pettersson
a2b3770956 as: scan: rename ungetc field in #scan_state{} to charbuf, drop redundant comment 2019-12-28 22:03:36 +01:00
Mikael Pettersson
9ff138e590 as: scan: change ungetc/2 to crash on error, remove error check from callers 2019-12-28 22:03:36 +01:00
Mikael Pettersson
ac426a91f8 as: scan: move scan_state handling here; scan_state: delete 2019-12-27 21:52:28 +01:00
Mikael Pettersson
0f121165fc as: scan_state: stop being a gen_server, store state in caller's process dictionary, simplify 2019-12-27 21:52:28 +01:00
Mikael Pettersson
539ebe91db as: input: use scan not scan_state 2019-12-27 17:44:08 +01:00
Mikael Pettersson
f6533ce53d as: parse: use scan not scan_state 2019-12-27 17:44:08 +01:00
Mikael Pettersson
711710fe4b as: scan: add API to wrap scan_state 2019-12-27 17:44:03 +01:00
Mikael Pettersson
dfc3da824a as: scan_state: export type location/0 2019-12-27 17:38:20 +01:00
Mikael Pettersson
084b3b4e8f as: parse: tag returned statements with start locations; input: use it 2019-12-26 21:16:03 +01:00
Mikael Pettersson
589e2c40bb as: parse: use tokens' location tags for diagnostics 2019-12-26 21:16:03 +01:00
Mikael Pettersson
34202b2e2f as: scan: tag returned tokens with start locations; parse: ignore them 2019-12-26 21:15:35 +01:00
Mikael Pettersson
f676ed8428 as: input: handle .data directive and section 2019-12-25 17:27:27 +01:00
Mikael Pettersson
24753d5e6d as: parse: handle .data directive 2019-12-25 17:27:27 +01:00
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