Nikita Smith
47ac1796a9
use build string literal from base context
2024-12-06 11:53:16 -08:00
Nikita Smith
c037d6ad75
WIP function padding
2024-11-21 01:05:33 -08:00
Nikita Smith
816d8e88bf
remove warning pragma around radsort
2024-11-18 16:26:42 -08:00
Nikita Smith
31f536334e
third party include fixups
2024-11-18 16:17:26 -08:00
Nikita Smith
e44dd3aa07
instead of searching for manifest tool manually punt the job to CreateProcess
2024-11-18 15:38:00 -08:00
Nikita Smith
435f6c4ef6
append .lib to defaultlibs
2024-11-15 16:14:00 -08:00
Nikita Smith
b631d431fa
create section layout without copying chunk data and perform chunk data
...
copy in parallel given layout
2024-11-15 16:14:00 -08:00
Ryan Fleury
26be351354
eliminate per-build version numbers, just use base layer to define defaults; bump to 14
2024-11-15 15:36:12 -08:00
Nikita Smith
2bbf3ff987
switch to data size formatter
2024-11-12 10:36:45 -08:00
Nikita Smith
3d7fc6fce5
moved memory and count string formatters to the main layer and
...
replaced str8_from_memory_size with more accurate data size units
2024-11-12 10:36:44 -08:00
Nikita Smith
0d0951bf08
squash some image-related steps into finalize image
2024-11-12 10:36:44 -08:00
Nikita Smith
3a190ae2c3
show an early warning for /DEBUG:FASTLINK
2024-11-12 10:36:44 -08:00
Nikita Smith
776c8daa27
updated build.sh to define git hash
2024-11-08 11:43:05 -08:00
Ryan Fleury
158dd742ad
eliminate entry point 'mode'/type; just gather argc/argv as part of command line parse
2024-11-08 10:33:28 -08:00
Nikita Smith
15d43d7c99
removed dependency on os_ext
2024-11-07 14:12:41 -08:00
Nikita Smith
ef5287d2a9
switch to os_full_path_from_path
2024-11-07 13:41:47 -08:00
Nikita Smith
214be8c433
moved Guid struct and related helpers to base
2024-11-07 11:54:25 -08:00
Nikita Smith
f807dc4785
override entry point
2024-11-07 11:54:25 -08:00
Nikita Smith
0886963d93
promote section definition number to 32-bit when linking big obj
2024-11-07 11:54:25 -08:00
Nikita Smith
1d42f1bd66
speed up export table build with hash table
2024-11-07 11:54:24 -08:00
Nikita Smith
f3a36ece13
rebase fixes
2024-10-30 15:56:55 -07:00
Nikita Smith
c5d198e3e9
build linker with branch name and full commit hash
2024-10-30 15:56:10 -07:00
Nikita Smith
eba7500f73
/rad_pdb_hash_type_names:lenient
...
Less aggressive optimization for type names. When lenient enabled, linker
replaces only mangled names and compiler generated lambda types.
2024-10-30 15:56:10 -07:00
Nikita Smith
f3fbf10754
replace type names with hashes
2024-10-30 15:56:09 -07:00
Nikita Smith
4a2e1dd8d0
switch to thread safe hash trie map
...
Initial implementation of the symbol table allowed us to push symbols
from one thread at a time and required a wonky lock-step and spread out
logic for replacing symbols. And because it was a externally chained
hash table we had to guesstimate optimal capacity for small and big targets.
We erred on the side of larger capacity to prevent degradation and
rehashing, however this meant small targets had to spent unreasonable
amount of time memory allocing slots. With hash trie we can dynamically
scale up to 4 ^ 32 items and atomically replace symbols when needed. Neat!
2024-10-30 15:43:53 -07:00
Nikita Smith
baead67a99
minor fixes
2024-10-30 15:42:39 -07:00
Nikita Smith
e1166abc63
typo in str8 compar name
2024-10-30 15:42:39 -07:00
Nikita Smith
340396f9f7
fix arena usage
2024-10-22 15:07:49 -07:00
Nikita Smith
9ec7fb61ed
implemented /noimplib /noexp
2024-10-22 11:02:59 -07:00
Nikita Smith
5be2b5dfd9
alias for amd64 machine
2024-10-22 10:19:37 -07:00
Nikita Smith
7260baea85
implemented /PDBALTPATH and /RAD_DEBUGALTPATH
2024-10-21 18:03:28 -07:00
Nikita Smith
26611c5454
moved IO related code to stand-alone file, piped all read/and writes
...
through new API, /rad_log now can enable read and/or write logs with
"io", "io_reads", "io_writes" parameters.
2024-10-19 16:36:32 -07:00
Nikita Smith
d5c2e50e9a
rename import table regular -> static
2024-10-19 15:11:51 -07:00
Nikita Smith
800a2349e5
pass over COFF resource reader and writer
2024-10-19 13:44:36 -07:00
Nikita Smith
46390ba0b8
reworked manifest handling
...
- manifest files wont be created unless symbols are resolved
- delay mt.exe presence check until we launch it
- create explicit case that writes manifests to disk
- moved manifest dependency collection step to happen after obj input
- removed /rad_delete_manifest
2024-10-18 23:37:30 -07:00
Nikita Smith
f792da5d31
manifest...
2024-10-18 16:53:30 -07:00
Ryan Fleury
1344270b5a
adjust versions
2024-10-18 16:40:25 -07:00
Nikita Smith
d04e86c007
rename merged manifest
2024-10-18 16:23:51 -07:00
Nikita Smith
2f5e55d52f
switch check typo
2024-10-18 16:01:17 -07:00
Nikita Smith
36f3924160
don't allocate .reloc section when there are no pages
2024-10-18 11:05:51 -07:00
Nikita Smith
00dd4ad6ec
check if subsystem was specified
2024-10-18 11:05:01 -07:00
Nikita Smith
648fa7cdab
update hash in config
2024-10-16 10:23:53 -07:00
Nikita Smith
6612f4a32d
hash image only when we have debug info building
2024-10-16 10:15:16 -07:00
Nikita Smith
932df7bf68
linker
2024-10-15 17:25:22 -07:00