Commit Graph

2763 Commits

Author SHA1 Message Date
Nikita Smith 40fda5335c move default section flags to separate file to use them in torture 2025-06-25 10:53:22 -07:00
Nikita Smith bd830a6023 test case for relocation to undefined section with base relocations 2025-06-25 10:53:22 -07:00
Nikita Smith f25dc5cc8d pack export table into obj and input back to the linker 2025-06-25 10:53:22 -07:00
Nikita Smith c5164bd490 discard null data nodes 2025-06-25 10:53:22 -07:00
Nikita Smith 3ffd8c19ea helper for querying machine specific relocation for virtual offset relocation 2025-06-25 10:53:22 -07:00
Nikita Smith c55c60549e export virtual ranges for data directories 2025-06-25 10:53:22 -07:00
Nikita Smith f37f94a2b9 minor fixes 2025-06-25 10:53:22 -07:00
Nikita Smith 4161dd0440 check export table entries 2025-06-25 10:53:22 -07:00
Nikita Smith 9bcb227ed9 test imports and exports 2025-06-25 10:53:22 -07:00
Nikita Smith 35e6b4a9f9 linker directive header fix 2025-06-25 10:53:22 -07:00
Nikita Smith e7c808ee69 test simple lib link 2025-06-25 10:53:22 -07:00
Nikita Smith 3a7afcd80c replace linker lib writer with one from COFF 2025-06-25 10:53:22 -07:00
Nikita Smith 120829095b COFF lib writer 2025-06-25 10:53:22 -07:00
Nikita Smith ccf204d2f1 build target for torture 2025-06-25 10:53:22 -07:00
Nikita Smith 7c071e7238 linker checkpoint 2025-06-25 10:53:22 -07:00
Nikita Smith a60216fa9f minor fixes in hash table 2025-06-25 10:53:22 -07:00
Nikita Smith 0f81aae985 extend COFF obj writer with ability to produce linker directive section 2025-06-25 10:53:22 -07:00
Nikita Smith 45ca147579 report test stats, and check the exit code 2025-06-25 10:53:22 -07:00
Nikita Smith b0a652b10b helpers for parsing aux COFF symbols 2025-06-25 10:53:22 -07:00
Nikita Smith f81bab5a4c remove special sort postfix case 2025-06-25 10:53:22 -07:00
Nikita Smith 63a374cf54 simplify COFF reloc apply helper 2025-06-25 10:53:22 -07:00
Nikita Smith a5b3df7d1b check flags on custom bss section 2025-06-25 10:53:22 -07:00
Nikita Smith 5cb682bcb3 check common block relocs and sort 2025-06-25 10:53:22 -07:00
Nikita Smith cede94f8d9 test for conflicting section header flags and common bss and common block
basic tests
2025-06-25 10:53:21 -07:00
Nikita Smith e9d5022a55 test section sorter 2025-06-25 10:53:21 -07:00
Nikita Smith 0772617486 add relocation for shared symbol in abs_vs_regular test
test linker on base relocations to abs symbols
2025-06-25 10:53:21 -07:00
Nikita Smith 2a0929014b test weak tag 2025-06-25 10:53:21 -07:00
Nikita Smith f39397fa78 test cycles made from weak symbols 2025-06-25 10:53:21 -07:00
Nikita Smith 2c6db1b566 update COFF type enum strings 2025-06-25 10:53:21 -07:00
Nikita Smith 174c6ebb7d bugfix data directory range export 2025-06-25 10:53:21 -07:00
Nikita Smith f17ed8485d add tests for symbols with absolute address 2025-06-25 10:53:21 -07:00
Nikita Smith 01c905dbbd reuse import table flags, and parameterize data directory count 2025-06-25 10:53:21 -07:00
Nikita Smith c56cfefe09 move rsp unwrapper to config 2025-06-25 10:53:21 -07:00
Nikita Smith 3875b057d7 delete string compars form linker layer 2025-06-25 10:53:21 -07:00
Nikita Smith c2a0a6f1e1 factored out format specific relocation code to COFF layer 2025-06-25 10:53:21 -07:00
Nikita Smith ada037cb88 export range for data directories, subsystem, and check sum 2025-06-25 10:53:21 -07:00
Nikita Smith f001f08e04 string compar funcs 2025-06-25 10:53:21 -07:00
Nikita Smith 88d34eff54 simple link test 2025-06-25 10:53:21 -07:00
Nikita Smith 19694dac2a test case for merged pdata 2025-06-25 10:53:21 -07:00
Nikita Smith b9768be4ed tester for linkers 2025-06-25 10:53:21 -07:00
Nikita Smith 19a7ada1dc make export table with COFF obj writer,
partially converted import table to COFF obj writer
2025-06-25 10:53:21 -07:00
Nikita Smith 3a2bb318c7 make import lib objs with COFF obj writer 2025-06-25 10:53:21 -07:00
Nikita Smith e580b69180 make linker obj with COFF obj writer 2025-06-25 10:53:21 -07:00
Nikita Smith c45088b546 replaced dependency on linker's chunking for resource serialization
with COFF obj writer
2025-06-25 10:53:21 -07:00
Nikita Smith 55c76db902 handle linker directives in a separate step after obj is initialized,
this way we don't need to store directives in obj struct
2025-06-25 10:53:21 -07:00
Nikita Smith 307d3a7f4b check obj compatibility before initializing them 2025-06-25 10:53:21 -07:00
Nikita Smith 1eca5818a6 removed dependency on relocation list when error checking .drectve 2025-06-25 10:53:21 -07:00
Ryan Fleury 36f5597d8e eliminate unneeded path-renormalization in debug info cache lookup 2025-06-25 10:52:29 -07:00
Ryan Fleury e2eb1cd6d6 do not unnecessarily block on parses when closing modules 2025-06-25 09:41:48 -07:00
Ryan Fleury 10a49ca331 actually, rely on entry point trap calculation to do exe-rdi waiting; adjust default fonts to be more consistent with windows 2025-06-25 08:32:48 -07:00