]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
MIPS/LD/testsuite: Adapt VxWorks segment matching for PR ld/20815 fix
authorMaciej W. Rozycki <macro@orcam.me.uk>
Mon, 6 Oct 2025 20:37:28 +0000 (21:37 +0100)
committerMaciej W. Rozycki <macro@orcam.me.uk>
Mon, 6 Oct 2025 20:37:28 +0000 (21:37 +0100)
Adjust segment addresses in the program header dump to account for the
inclusion of the program headers in the segment, removing a regression
from commit 1a9ccd70f9a7 ("Fix the linker so that it will not silently
generate ELF binaries with invalid program headers.  Fix readelf to
report such invalid binaries."):

mips-vxworks  -FAIL: VxWorks executable test 2 (dynamic)
mipsel-vxworks  -FAIL: VxWorks executable test 2 (dynamic)

ld/testsuite/ld-mips-elf/vxworks2.sd

index 5ff87d3bef81d14e73d9a80f8ef1bb79c58cd05e..4f56f2ac7ec1b98b2394fffadafb44977016ddcd 100644 (file)
@@ -6,7 +6,7 @@ Program Headers:
   Type .*
   PHDR .*
 #...
-  LOAD .* 0x00080000 0x00080000 .* R E 0x1000
+  LOAD .* 0x0007f000 0x0007f000 .* R E 0x1000
   LOAD .* 0x00081000 0x00081000 .* RW  0x1000
   DYNAMIC .*