246 Commits

Author SHA1 Message Date
Mikael Pettersson
37f13ee351 ld: ld_input: return more data for each input ELF file 2020-03-31 23:27:03 +02:00
Mikael Pettersson
20e6341000 ld: ld_internal.hrl: new, define types for ld_input:input/2 and ld_phase1:phase1/1 2020-03-31 23:26:00 +02:00
Mikael Pettersson
84011377d9 ld: implement input processing logic 2020-03-23 20:56:59 +01:00
Mikael Pettersson
ffa2ab64b6 ld: options processing corrections 2020-03-23 20:56:53 +01:00
Mikael Pettersson
5c99f6bafc pdp10_elf36.hrl: fix typo in description for STV_HIDDEN 2020-03-23 00:37:58 +01:00
Mikael Pettersson
d712c86cf7 ld: top-level structure, options processing 2020-03-17 20:33:08 +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
a8277651b0 nm: correct handling of error Reason from getopt:parse/3 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
5e6a7772d1 erlang: add dialyzer checks to compile step 2020-03-03 23:29:37 +01:00
Mikael Pettersson
84f67a1ad9 as: as: fix dialyzer error 2020-03-03 23:27:59 +01:00
Mikael Pettersson
a20cc87722 as: output: fix dialyzer errors 2020-03-03 23:16:59 +01:00
Mikael Pettersson
b7f51949f6 as: assemble: fix dialyzer errors 2020-03-03 22:21:20 +01:00
Mikael Pettersson
cf296afe52 as: input: fix dialyzer errors 2020-03-03 20:39:23 +01:00
Mikael Pettersson
38ca3f4d40 as: tunit: fix dialyzer error 2020-03-02 21:47:46 +01:00
Mikael Pettersson
629ee7993d ar: fix dialyzer errors 2020-03-02 20:34:10 +01:00
Mikael Pettersson
8d09e668eb nm: fix dialyzer error 2020-03-01 21:55:37 +01:00
Mikael Pettersson
98312be54b od: fix dialyzer error 2020-03-01 21:51:30 +01:00
Mikael Pettersson
5d692fa577 readelf: fix dialyzer errors 2020-03-01 21:47:14 +01:00
Mikael Pettersson
70c63cdfad pdp10_stdio: fix dialyzer errors 2020-03-01 19:18:30 +01:00
Mikael Pettersson
e1e3c5f751 as: add test case exercising relocations 2020-03-01 18:07:59 +01:00
Mikael Pettersson
0cebb8aa46 readelf: add support for printing relocation sections 2020-03-01 18:07:59 +01:00
Mikael Pettersson
800a950210 pdp10_elf36: add support for reading relocation sections 2020-03-01 18:07:59 +01:00
Mikael Pettersson
0f9e54abbc as: assemble: handle relocatable expressions 2020-03-01 18:07:59 +01:00
Mikael Pettersson
09810abe18 as: assemble: create sections for relocations 2020-03-01 18:07:59 +01:00
Mikael Pettersson
09886c1979 as: assemble: accumulate relocations 2020-03-01 18:07:59 +01:00
Mikael Pettersson
bc8d4de675 as: output: encode relocation sections 2020-03-01 18:07:59 +01:00
Mikael Pettersson
30ce007d46 as: output: order symbols and record their symtab indices 2020-03-01 18:07:59 +01:00
Mikael Pettersson
0588bcb38b as: output: ensure symbols in relocations are present in symtab 2020-03-01 18:07:59 +01:00
Mikael Pettersson
364873b7a4 as: output: fix typo in comment 2020-03-01 18:07:59 +01:00
Mikael Pettersson
de753f440b as: tunit: enable representing relocation sections 2020-03-01 18:07:53 +01:00
Mikael Pettersson
c3d2e21dc1 as: assemble: handle context and modifier in expr evaluation 2020-02-26 17:27:12 +01:00
Mikael Pettersson
5c80333d7a as: assemble: pass expr context (ifiw/long/short/byte) to expr evaluation 2020-02-26 17:27:12 +01:00
Mikael Pettersson
642cd9a35e as: assemble: create symbol for section being assembled, pass its name to expr evaluation 2020-02-26 17:27:12 +01:00
Mikael Pettersson
9d646d5fe8 as: correct handling of ABS symbols 2020-02-26 17:27:12 +01:00
Mikael Pettersson
61cf333f58 as: tunit: remove ifiw modifier in expr(), use false for absent modifier 2020-02-26 17:27:12 +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
02a5818496 pdp10-relocation.txt: add relocations for literals, remove :ifiw modifier, tweaks 2020-02-22 16:42:19 +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