Commit Graph

74 Commits

Author SHA1 Message Date
Mikael Pettersson
1455bfc2e2 opcodes: mark SKIPA as E_UNUSED 2023-10-11 19:03:28 +02:00
Mikael Pettersson
dc517a8710 pdp10_stdio:handle_fopen/2: handling writes after seeks may require reads, so try to get read access even if the user did not ask for it 2023-09-06 20:39:11 +02:00
Mikael Pettersson
61dcfccd0d pdp10_stdio:prepare_to_write/1: fix failure to reload shiftreg after seek 2023-09-06 20:39:04 +02:00
Mikael Pettersson
dfd5ef162e drop 'clone' from tool descriptions 2023-08-19 19:03:47 +02:00
Mikael Pettersson
6b7cc6c9ed ar: move --print-armap support code to archive library 2023-08-07 17:51:46 +02:00
Mikael Pettersson
b0dd5af09e pdp10_elf36: update Copyright year range 2023-08-07 17:51:46 +02:00
Mikael Pettersson
c32f4c9bdd pdp10_elf36.hrl: sync with binutils-2.41 ELF definitions 2023-08-06 14:27:58 +02:00
Mikael Pettersson
e5102b555b ar: move archive I/O code to new archive library 2023-08-05 21:14:27 +02:00
Mikael Pettersson
e7ef52ddab ar: move pdp10_ar.hrl to the lib application 2023-08-05 21:14:27 +02:00
Mikael Pettersson
eb76fcbaa9 pdp10_elf36: enable reading ELF files embedded in other files (e.g. archives) 2023-07-15 17:56:08 +02:00
Mikael Pettersson
3317fa16aa pdp10_stdio: define and export the location/0 type ourselves 2023-07-10 18:18:14 +02:00
Mikael Pettersson
b5582022a9 drop support for OTP < 24, remove escript_runtime:start/2 kludge 2023-07-09 17:38:53 +02:00
Mikael Pettersson
3bd89a566b pdp10_stdio: define and export missing file/0 type 2023-07-09 17:37:03 +02:00
Mikael Pettersson
c0ae20c6e2 pdp10_elf36.hrl: sync with binutils-2.40 ELF definitions 2023-01-22 16:35:18 +01:00
Mikael Pettersson
e561bf30b0 pdp10_elf36.hrl: sync with binutils-2.39 ELF definitions 2022-08-08 18:56:45 +02:00
Mikael Pettersson
97d4fe9564 pdp10_elf36.hrl: sync with binutils-2.38 ELF definitions 2022-02-09 22:17:52 +01:00
Mikael Pettersson
96dd45fc5b pdp10_elf36.hrl: sync with binutils-2.37 ELF definitions 2021-08-12 19:50:06 +02:00
Mikael Pettersson
3d0e06cc71 getopt: rename module to my_getopt due to rebar3 bug 2021-07-21 18:24:53 +02:00
Mikael Pettersson
997a38e612 escript_runtime:main/2: add TODO to remove it when we are on OTP >= 24 2020-10-16 19:01:54 +02:00
Mikael Pettersson
c9e955132b pdp10_elf36.hrl: sync with binutils-2.35 ELF definitions 2020-07-28 14:08:18 +02:00
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