NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lib/52401: Booting install media fails with "init died"

The following reply was made to PR lib/52401; it has been noted by GNATS.

From: Andreas Gustafsson <>
To: Joerg Sonnenberger <>
Subject: Re: lib/52401: Booting install media fails with "init died"
Date: Fri, 14 Jul 2017 21:33:22 +0300

 Joerg Sonnenberger wrote:
 >  At least the SPARC issue is a bug in objcopy. The attached patch is a
 >  workaround. You can check if the same issue is present on hpcmips by
 >  looking at the 'readelf -l rescue' output. If the TLS segment is
 >  starting at 0 with size 0, it is the culprit.
 Do you mean like this?
 $ /tmp/bracket/build/2017. -l /tmp/bracket/build/2017.
 Elf file type is EXEC (Executable file)
 Entry point 0x400350
 There are 7 program headers, starting at offset 52
 Program Headers:
   Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
   ABIFLAGS       0x01010c 0x00400120 0x00400120 0x00018 0x00018 R   0x8
   REGINFO        0x010124 0x00400138 0x00400138 0x00018 0x00018 R   0x4
   LOAD           0x000000 0x003f0000 0x00400000 0x7a3758 0x7a3758 R E 0x10000
   LOAD           0x7a8f00 0x00c58f00 0x00c58f00 0x56104 0x2f9a50 RW  0x10000
   LOAD           0x808f00 0x00c58f00 0x00c58f00 0x00040 0x00040 RW  0x10000
   NOTE           0x0100f4 0x004000f4 0x004000f4 0x00018 0x00018 R   0x4
   TLS            0x000000 0x00000000 0x00c58f00 0x00000 0x00000 R   0x4
  Section to Segment mapping:
   Segment Sections...
    00     .MIPS.abiflags 
    01     .reginfo 
    02     .note.netbsd.ident .MIPS.abiflags .reginfo .rel.dyn .init .text .fini 
    03     .dtors .jcr .data .got .sbss .bss 
    04     .ctors 
    05     .note.netbsd.ident 
 Andreas Gustafsson,

Home | Main Index | Thread Index | Old Index