111 Commits

Author SHA1 Message Date
Mikael Pettersson
fc81f546bf readelf: move uint36_from_s64 conversion to extint 2025-08-14 16:38:47 +02:00
Mikael Pettersson
0667130fc4 elf2boot: move uint36_to_c36 conversion to extint 2025-08-14 16:04:45 +02:00
Mikael Pettersson
1e92b66d9c Revert "pdp10_opcodes: use BASIC format with separate flag for A_UNUSED insns"
This reverts commit 3f80870025.
2025-08-13 14:34:19 +02:00
Mikael Pettersson
6fd5956c8c Revert "pdp10_opcodes: mark more insns as A_UNUSED and/or E_UNUSED"
This reverts commit b5e2857116.
2025-08-13 14:34:19 +02:00
Mikael Pettersson
e4e66c08c2 libelf: enable opening files with autodetect of ELF class, readelf: use it 2025-08-13 14:34:19 +02:00
Mikael Pettersson
9dca28c776 libelf: handle ELFCLASS64, adjust integer widths and field orders 2025-08-13 14:34:19 +02:00
Mikael Pettersson
fff8acaec7 libelf: handle ELFCLASS32, adjust integer widths, use stdio8 2025-08-13 14:34:19 +02:00
Mikael Pettersson
20feac56d9 libelf: add ELF class param to I/O entry points, propagate to scalar accessors and I/O dispatch 2025-08-13 14:34:19 +02:00
Mikael Pettersson
3d89447f26 libelf: rename inner read loops to distinguish them from API entry points 2025-08-13 14:34:19 +02:00
Mikael Pettersson
7998bf4ce2 libelf: rename integer read/write routines to indicate how many _bytes_ are transferred not bits 2025-08-13 14:34:19 +02:00
Mikael Pettersson
51c58652b3 libelf: centralise dispatch to I/O implementation module 2025-08-13 14:34:19 +02:00
Mikael Pettersson
75feec1d16 readelf: implement read_uint36/1 ourselves, do not abuse libelf for that 2025-08-13 14:34:19 +02:00
Mikael Pettersson
c396f4f0cf libelf: replace fgetc loop with fread 2025-08-13 14:34:19 +02:00
Mikael Pettersson
5ac34d7cea libelf:read_sint36/1: simplify 2025-08-13 14:34:19 +02:00
Mikael Pettersson
fc3bd12e7c factor out duplicated sign-extension code to new sext module 2025-08-13 14:34:19 +02:00
Mikael Pettersson
1f230f9e61 extint.erl: add support for converting between octets and 16/32/64-bit types 2025-08-13 14:34:19 +02:00
Mikael Pettersson
d9055597f9 rename pdp10_extint.erl to extint.erl 2025-08-13 14:34:19 +02:00
Mikael Pettersson
4206dc5415 stdint.hrl: also support 8/16/32/64-bit integers 2025-08-13 14:34:19 +02:00
Mikael Pettersson
dcc1e86f5d stdint.hrl: move size-dependent min/max computations to helper macros 2025-08-13 14:34:19 +02:00
Mikael Pettersson
7348b7776b rename pdp10_stdint.hrl to stdint.hrl, drop PDP10_ prefixes from macros 2025-08-13 14:34:19 +02:00
Mikael Pettersson
a52866cd52 rename pdp10_elf36.elf to libelf.erl 2025-08-13 14:34:19 +02:00
Mikael Pettersson
c6091d8803 libelf.hrl: move PDP-10 reloc declarations to new pdp10_relocs.hrl 2025-08-13 14:34:19 +02:00
Mikael Pettersson
77d7658247 rename pdp10_elf36.hrl to libelf.hrl 2025-08-13 14:29:21 +02:00
Mikael Pettersson
78a2a4f827 pdp10_elf36: make types and macros generic ELF and not ELF-36 specific 2025-08-11 20:22:37 +02:00
Mikael Pettersson
f02023c9b0 stdio8: new, stdio API for octet-based files 2025-08-11 18:32:42 +02:00
Mikael Pettersson
f3e9c62191 pdp10_stdio: new, provide compatibility wrapper around stdio9 2025-08-11 18:32:42 +02:00
Mikael Pettersson
c150b7bd35 stdio9: simplify fread/3 to /2 2025-08-11 18:32:38 +02:00
Mikael Pettersson
a23ea12844 rename pdp10_stdio to stdio9 2025-08-09 12:51:33 +02:00
Mikael Pettersson
c21cf1422a pdp10_elf36.hrl: sync with binutils-2.45 ELF definitions 2025-08-09 12:08:59 +02:00
Mikael Pettersson
b5e2857116 pdp10_opcodes: mark more insns as A_UNUSED and/or E_UNUSED 2025-07-21 16:14:46 +02:00
Mikael Pettersson
3f80870025 pdp10_opcodes: use BASIC format with separate flag for A_UNUSED insns
This matches reality better: A is may-be-zero (preferred) not must-be-zero.
2025-07-21 15:56:23 +02:00
Mikael Pettersson
1e8dc3468f pdp10_opcodes: fix typos in comments 2025-07-21 14:11:19 +02:00
Mikael Pettersson
52ad811aa0 pdp10_opcodes: fix dialyzer error with OTP-28.0-rc3 2025-04-20 12:19:50 +02:00
Mikael Pettersson
63746bbc93 pdp10_elf36.hrl: sync with binutils-2.44 ELF definitions 2025-04-19 23:43:00 +02:00
Mikael Pettersson
4edce6a058 pdp10_elf36.hrl: sync with binutils-2.43 ELF definitions 2025-04-19 19:56:32 +02:00
Mikael Pettersson
80e12bf0c8 pdp10_elf36.hrl: add missing AT_HWCAP2 macro 2025-04-19 15:59:20 +02:00
Mikael Pettersson
829dddbe69 pdp10_elf36.hrl: sync with binutils-2.42 ELF definitions 2025-04-19 15:57:07 +02:00
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