ld: Sort section contributions in PDB files
authorMark Harmstone <mark@harmstone.com>
Mon, 20 Feb 2023 14:10:05 +0000 (14:10 +0000)
committerMark Harmstone <mark@harmstone.com>
Tue, 28 Feb 2023 00:28:26 +0000 (00:28 +0000)
commit38395c77d7619fb32885468f52edf566ab84d411
treef8a2da77c9ce6c16ec506d451a2fabab2a964a10
parent3a850a365aa2578830dd9ce0c8e3421c586da86f
ld: Sort section contributions in PDB files

Microsoft's DIA library, and thus also MSVC and WinDbg, expects section
contributions to be ordered by section number and offset, otherwise it's
unable to resolve line numbers.
ld/pdb.c
ld/testsuite/ld-pe/pdb2-section-contrib.d