54 Commits

Author SHA1 Message Date
Mikael Pettersson
c0c4f491ca pdp10_elf36: add support for reading program header tables 2020-06-07 21:18:47 +02:00
Mikael Pettersson
d235aac0cd pdp10_elf36: add Ehdr and Phdr write support 2020-06-06 14:31:38 +02:00
Mikael Pettersson
198bf54c7c pdp10_elf36: read_Ehdr/1: more sanity checks 2020-06-06 14:31:38 +02:00
Mikael Pettersson
ca515b376e pdp10_elf36.hrl: define ELF36_PHDR_SIZEOF 2020-06-06 14:31:38 +02:00
Mikael Pettersson
5c99f6bafc pdp10_elf36.hrl: fix typo in description for STV_HIDDEN 2020-03-23 00:37:58 +01:00
Mikael Pettersson
de6db33f71 strtol: include Base in invalid_base errors 2020-03-16 22:49:17 +01:00
Mikael Pettersson
7964864840 getopt: an argument inexactly matching two different but equivalent options is considered a match 2020-03-16 22:49:17 +01:00
Mikael Pettersson
c9993fca72 pdp10_stdio: tidy source code file header 2020-03-14 18:08:39 +01:00
Mikael Pettersson
b370ab9452 escript_runtime: add specs for exported functions 2020-03-14 18:08:39 +01:00
Mikael Pettersson
1fd3a7c0b4 getopt: when OptString starts with '-' tag non-options also after '--' 2020-03-14 18:08:39 +01:00
Mikael Pettersson
ecda1ffaad getopt: opt-in support for single-dash options, e.g. ld's -nostdlib 2020-03-12 22:33:05 +01:00
Mikael Pettersson
a83fb418b1 getopt: change per-element parsing to return new state instead of tail-calling parse_argv/5 2020-03-12 22:33:05 +01:00
Mikael Pettersson
4e30e25a89 getopt: factor out duplicated code for non-options 2020-03-12 22:33:05 +01:00
Mikael Pettersson
2a0f15ac52 getopt: throw badarg on invalid LongOpts instead of returning error tuple 2020-03-12 22:33:05 +01:00
Mikael Pettersson
aaca744f1c pdp10_stdio: be more careful not to create duplicate Modes for file:open/2 2020-03-12 19:52:45 +01:00
Mikael Pettersson
4b627eaf78 pdp10_stdio: source code formatting fixes 2020-03-12 19:52:45 +01:00
Mikael Pettersson
43f78e318a pdp10_elf36.hrl: sync with binutils-2.34 ELF definitions 2020-03-04 16:24:22 +01:00
Mikael Pettersson
70c63cdfad pdp10_stdio: fix dialyzer errors 2020-03-01 19:18:30 +01:00
Mikael Pettersson
800a950210 pdp10_elf36: add support for reading relocation sections 2020-03-01 18:07:59 +01:00
Mikael Pettersson
721a5a2e3e pdp10_elf36.hrl: define ELF36_RELA_SIZEOF 2020-02-26 17:27:12 +01:00
Mikael Pettersson
b799f7a55a pdp10_elf36.hrl: add relocations for literals 2020-02-22 16:42:29 +01:00
Mikael Pettersson
41a26ca60a pdp10_stdint.hrl: add ranges and types for 9- and 18-bit signed integers 2020-02-16 21:39:35 +01:00
Mikael Pettersson
a67a1afce9 pdp10_elf36.hrl: initial PDP10 ELF relocation types 2020-01-19 20:38:10 +01:00
Mikael Pettersson
b96d413aaf escript_runtime: remove support for OTP < 21 2019-12-30 17:01:05 +01: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
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
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
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
c184c9b4a8 pdp10_elf36.hrl: sync with binutils-2.32 ELF definitions 2019-07-31 17:23:21 +02:00
Mikael Pettersson
730bffc28b pdp10_opcodes: rewrite in Erlang, resolve ambiguities 2019-07-30 18:24:38 +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
a05674438f pdp10_stdio.erl: rename fwrite/2 to fputs/2 2019-07-20 19:49:23 +02:00
Mikael Pettersson
b37c24d009 pdp10_stdio:fseek/2: correct -spec 2019-02-24 13:39:55 +01:00
Mikael Pettersson
d394dc856a pdp10_stdio.erl: fix typo and grammar 2019-02-10 22:20:09 +01:00
Mikael Pettersson
fbd15cc2ba pdp10_elf36.hrl: sync with binutils-2.31.1 ELF definitions 2019-01-27 21:09:32 +01:00
Mikael Pettersson
12a96bd910 pdp10_elf36.hrl: Erlang version of pdp10-elf36.h 2019-01-27 17:47:49 +01:00
Mikael Pettersson
0e363453b0 pdp10_stdint.hrl: Erlang version of pdp10-stdint.h 2019-01-27 17:46:38 +01:00
Mikael Pettersson
a005109a33 change licence of Erlang bits to the GPL, matching the rest of the project 2018-12-26 17:51:03 +01:00
Mikael Pettersson
ea4861ad33 getopt: correct parsing of options with optional arguments 2018-12-26 13:40:32 +01:00
Mikael Pettersson
0f5fb79ddd implement strtol clone for Erlang 2018-12-26 11:03:05 +01:00