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"

On Fri, Jul 14, 2017 at 08:15:00AM +0000, Andreas Gustafsson wrote:
> Since joerg's commit of 2017., the sparc tests on
> are failing with "init died" at the install stage:
> I am also seeing a similar issue with hpcmips (on qemu), which leads
> me to believe the issue is not specific to sparc.  The PR category
> "lib" is my best guess based on the files changed by the commit.

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.

Index: crunchgen/crunchgen.c
RCS file: /home/joerg/repo/netbsd/src/usr.bin/crunch/crunchgen/crunchgen.c,v
retrieving revision 1.84
diff -u -p -r1.84 crunchgen.c
--- crunchgen/crunchgen.c	29 May 2016 16:12:58 -0000	1.84
+++ crunchgen/crunchgen.c	14 Jul 2017 13:51:23 -0000
@@ -958,7 +958,6 @@ top_makefile_rules(FILE *outmk)
     fprintf(outmk, "\t@[ -f ${PROG}.unstripped -a ! ${PROG} -nt ${PROG}.unstripped ] || { \\\n");
     fprintf(outmk, "\t\t${_MKSHMSG:Uecho} \"  strip \" ${PROG}; \\\n");
     fprintf(outmk, "\t\tcp ${PROG} ${PROG}.unstripped && \\\n");
-    fprintf(outmk, "\t\t${OBJCOPY} -S -R .eh_frame -R .eh_frame_hdr -R .note -R .note.netbsd.mcmodel -R .note.netbsd.pax -R .ident -R .comment -R .copyright ${PROG} && \\\n");
     fprintf(outmk, "\t\ttouch ${PROG}.unstripped; \\\n");
     fprintf(outmk, "\t}\n");
     fprintf(outmk, "objs: $(SUBMAKE_TARGETS)\n");

Home | Main Index | Thread Index | Old Index