[binutils-gdb] MIPS/LD/testsuite: Adapt VxWorks segment matching for PR ld/20815 fix

Maciej W. Rozycki macro@sourceware.org
Mon Oct 6 20:39:51 GMT 2025


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=c13c7174e1cdf191fa958809df56fe114ac488fe

commit c13c7174e1cdf191fa958809df56fe114ac488fe
Author: Maciej W. Rozycki <macro@orcam.me.uk>
Date:   Mon Oct 6 21:37:28 2025 +0100

    MIPS/LD/testsuite: Adapt VxWorks segment matching for PR ld/20815 fix
    
    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)

Diff:
---
 ld/testsuite/ld-mips-elf/vxworks2.sd | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ld/testsuite/ld-mips-elf/vxworks2.sd b/ld/testsuite/ld-mips-elf/vxworks2.sd
index 5ff87d3bef8..4f56f2ac7ec 100644
--- a/ld/testsuite/ld-mips-elf/vxworks2.sd
+++ b/ld/testsuite/ld-mips-elf/vxworks2.sd
@@ -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 .*


More information about the Binutils-cvs mailing list