Current-Users archive

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

Re: Build generates broken ELF files



Matthias Scheler wrote:
> my NetBSD/i386 build using today's source generates broken ELF files:
> 
> tron@lyssa:/export/scratch/tron/obj/bin/sync>./sync 
> zsh: exec format error: ./sync
> tron@lyssa:/export/scratch/tron/obj/bin/sync>file sync
> sync: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically 
> linked (uses shared libs), for NetBSD 5.99.27, not stripped
> 
> Installing a new userland turned the machine into a warm door stopper
> and I had to restore it from a backup.
> 
> Has anybody else seen this? I'm using "USE_SSP=yes" and "MKDTRACE=yes"
> but I don't that matters.

I guess that's why my automated build/install test is failing when
booting from the install floopy:

  root on md0a dumps on md0b
  root file system type: ffs
  warning: no /dev/console
  exec /sbin/init: error 8
  init: trying /sbin/oinit
  exec /sbin/oinit: error 2
  init: trying /sbin/init.bak
  exec /sbin/init.bak: error 2

The failures started with the following commit (as determined by
automated binary search):

  Index: src/external/gpl3/binutils/dist/ld/emulparams/elf_i386.sh
  diff -c src/external/gpl3/binutils/dist/ld/emulparams/elf_i386.sh:1.2 
src/external/gpl3/binutils/dist/ld/emulparams/elf_i386.sh:1.3
  *** src/external/gpl3/binutils/dist/ld/emulparams/elf_i386.sh:1.2       Wed 
Aug 19 07:19:31 2009
  --- src/external/gpl3/binutils/dist/ld/emulparams/elf_i386.sh   Tue Apr 20 
22:47:48 2010
  ***************
  *** 12,14 ****
  --- 12,15 ----
    GENERATE_PIE_SCRIPT=yes
    NO_SMALL_DATA=yes
    SEPARATE_GOTPLT=12
  + OTHER_SECTIONS=".note.netbsd.ident 0 : { KEEP(*(.note.netbsd.ident)); }"

-- 
Andreas Gustafsson, gson%gson.org@localhost


Home | Main Index | Thread Index | Old Index