summaryrefslogtreecommitdiff
path: root/ld/testsuite
diff options
context:
space:
mode:
authorMark Harmstone <mark@harmstone.com>2023-02-20 14:10:05 +0000
committerMark Harmstone <mark@harmstone.com>2023-02-28 00:28:26 +0000
commit38395c77d7619fb32885468f52edf566ab84d411 (patch)
treef8a2da77c9ce6c16ec506d451a2fabab2a964a10 /ld/testsuite
parent3a850a365aa2578830dd9ce0c8e3421c586da86f (diff)
downloadbinutils-gdb-38395c77d7619fb32885468f52edf566ab84d411.tar.gz
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.
Diffstat (limited to 'ld/testsuite')
-rw-r--r--ld/testsuite/ld-pe/pdb2-section-contrib.d6
1 files changed, 3 insertions, 3 deletions
diff --git a/ld/testsuite/ld-pe/pdb2-section-contrib.d b/ld/testsuite/ld-pe/pdb2-section-contrib.d
index dd9437214bb..65ed76dafdc 100644
--- a/ld/testsuite/ld-pe/pdb2-section-contrib.d
+++ b/ld/testsuite/ld-pe/pdb2-section-contrib.d
@@ -4,9 +4,9 @@ tmpdir/pdb2-sc: file format binary
Contents of section .data:
0000 2dba2ef1 01000000 00000000 10000000 -...............
0010 20000060 00000000 00000000 00000000 ..`............
- 0020 02000000 00000000 3d000000 40000040 ........=...@..@
- 0030 00000000 00000000 00000000 01000000 ................
- 0040 10000000 10000000 20000060 01000000 ........ ..`....
+ 0020 01000000 10000000 10000000 20000060 ............ ..`
+ 0030 01000000 00000000 00000000 02000000 ................
+ 0040 00000000 3d000000 40000040 00000000 ....=...@..@....
0050 00000000 00000000 04000000 00000000 ................
0060 0c000000 40000042 02000000 00000000 ....@..B........
0070 00000000 .... \ No newline at end of file