Commit Graph

2894 Commits

Author SHA1 Message Date
Nikita Smith bddf088df1 collect type indices in L_THREAD32 2025-06-25 10:53:24 -07:00
Nikita Smith c7d6145ec9 print section contributions in RAD_MAP 2025-06-25 10:53:24 -07:00
Nikita Smith 1fde5a5120 linker natvis 2025-06-25 10:53:24 -07:00
Nikita Smith 06e844abaa remove default delay bind table 2025-06-25 10:53:24 -07:00
Nikita Smith 048600260c special case fill for bss contribs 2025-06-25 10:53:24 -07:00
Nikita Smith a4b4d5799a fixes for delay import by ordinal and null terminate ILT, IAT, BIAT, and UIAT 2025-06-25 10:53:24 -07:00
Nikita Smith 8ba64238a2 delay load test 2025-06-25 10:53:24 -07:00
Nikita Smith 3c4edba465 validate section flags on merge 2025-06-25 10:53:24 -07:00
Nikita Smith cccbbfc74c do not patch debug section symbols and patch replaced COMDATs in separate
pass
2025-06-25 10:53:24 -07:00
Nikita Smith b19be0574c function pad min - final pass over 2025-06-25 10:53:24 -07:00
Nikita Smith bbb825adf4 extract hotpatch flag from compile symbol 2025-06-25 10:53:24 -07:00
Nikita Smith a5119e3b51 WIP function pad min 2025-06-25 10:53:24 -07:00
Nikita Smith d7b8de5998 test empty section and section with removed flag 2025-06-25 10:53:24 -07:00
Nikita Smith 5fb0d978b9 WIP function pad min 2025-06-25 10:53:24 -07:00
Nikita Smith 9d93eda3ed simplify section table 2025-06-25 10:53:24 -07:00
Nikita Smith ecdee57c60 move helpers to COFF layer 2025-06-25 10:53:24 -07:00
Nikita Smith a484906cf9 create section contribution for common block 2025-06-25 10:53:24 -07:00
Nikita Smith 95bea877ab merge .bss with custom section to simplify linker output verification 2025-06-25 10:53:24 -07:00
Nikita Smith 15836572f4 factor out section sort index into contribution chunk and simplify
contribution sorting
2025-06-25 10:53:24 -07:00
Nikita Smith f64265aafe typo in contrib sort 2025-06-25 10:53:24 -07:00
Nikita Smith 246bbf1e23 fix common block patch 2025-06-25 10:53:24 -07:00
Nikita Smith 490b22f6f9 put common blocks in .bss 2025-06-25 10:53:24 -07:00
Nikita Smith 626d94104d atomic contrib push 2025-06-25 10:53:24 -07:00
Nikita Smith b3aadbd49a store first data node in section contrib 2025-06-25 10:53:24 -07:00
Nikita Smith 3fb5e21d73 profiler markup 2025-06-25 10:53:24 -07:00
Nikita Smith 439fd0324d typos 2025-06-25 10:53:24 -07:00
Nikita Smith 75d02f1c1e check symbol presence using stable name pointer 2025-06-25 10:53:24 -07:00
Nikita Smith 5fd06f4466 do not push section contribs for sections without bytes 2025-06-25 10:53:24 -07:00
Nikita Smith af00acd0f5 add missing symbol replacement logic 2025-06-25 10:53:24 -07:00
Nikita Smith 205723f8d6 parallelize symbol tables patching 2025-06-25 10:53:24 -07:00
Nikita Smith d604456def align sizeofs 2025-06-25 10:53:24 -07:00
Nikita Smith 32a22779da fix run 2025-06-25 10:53:24 -07:00
Nikita Smith 7d77210a5f run test after build 2025-06-25 10:53:24 -07:00
Nikita Smith 25710d39b7 test optional header fields 2025-06-25 10:53:24 -07:00
Nikita Smith fe967a3d36 more validity checks in simple_link_test 2025-06-25 10:53:24 -07:00
Nikita Smith c4a36f73dc redirect stdout and stderr to a file 2025-06-25 10:53:24 -07:00
Nikita Smith 1c08db2705 move image, import lib, and debug info builders outside of the state machine 2025-06-25 10:53:24 -07:00
Nikita Smith e971db7fdd remove unused layout flag in section struct 2025-06-25 10:53:24 -07:00
Nikita Smith 47ef37ed8e fix section order 2025-06-25 10:53:24 -07:00
Nikita Smith 881050addf add default merges and section removes 2025-06-25 10:53:23 -07:00
Nikita Smith a4b2d40d15 fix sizeof section headers 2025-06-25 10:53:23 -07:00
Nikita Smith 578a7ebdee factor out pdata code to PE layer 2025-06-25 10:53:23 -07:00
Nikita Smith f055267e59 remove double init and equip of thread contexts 2025-06-25 10:53:23 -07:00
Nikita Smith aae3874521 disable TLS merge for now 2025-06-25 10:53:23 -07:00
Nikita Smith c82b98cd49 assign section index to .reloc 2025-06-25 10:53:23 -07:00
Nikita Smith e1278a6545 null terminate static imports 2025-06-25 10:53:23 -07:00
Nikita Smith e65d1536b6 dynamic loader crashes if the import data is not in a stand-alone section 2025-06-25 10:53:23 -07:00
Nikita Smith 54e7f9aafc appease ASAN 2025-06-25 10:53:23 -07:00
Nikita Smith 1c656979d2 move MSVC lib symbols to CRT layer 2025-06-25 10:53:23 -07:00
Nikita Smith 47e123221a minor fixes 2025-06-25 10:53:23 -07:00