PATCH: Fix ld-elf/seg.d on MIPS
Mark Mitchell
mark@codesourcery.com
Fri Feb 22 23:13:00 GMT 2008
I noticed recently that ld-elf/seg was failing on MIPS GNU/Linux
platforms because of the special ".reginfo" section (and corresponding
segment) on that platform.
Daniel Jacobowitz approved this patch off-list, so I've committed it.
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713
2008-02-20 Mark Mitchell <mark@codesourcery.com>
ld/testsuite/
* ld-elf/seg.d: Expect .reginfo section on MIPS.
Index: ld-elf/seg.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-elf/seg.d,v
retrieving revision 1.3
retrieving revision 1.4
diff -c -5 -p -r1.3 -r1.4
*** ld-elf/seg.d 20 Dec 2007 11:36:56 -0000 1.3
--- ld-elf/seg.d 22 Feb 2008 23:10:45 -0000 1.4
***************
*** 4,15 ****
#readelf: -l --wide
#...
Program Headers:
Type Offset VirtAddr.*
LOAD .*
LOAD 0x0*001000 0xf*fffff000 0xf*fffff000 0x0*1000 0x0*1000 .*
Section to Segment mapping:
Segment Sections...
00 .*
! 01 reset boot
--- 4,19 ----
#readelf: -l --wide
#...
Program Headers:
Type Offset VirtAddr.*
+ # On MIPS, the first segment is for .reginfo.
+ #...
LOAD .*
LOAD 0x0*001000 0xf*fffff000 0xf*fffff000 0x0*1000 0x0*1000 .*
Section to Segment mapping:
Segment Sections...
00 .*
! # On MIPS, the first segment is for .reginfo.
! #...
! 0. reset boot
More information about the Binutils
mailing list