Subject: elf problems?
To: Jonathan Stone <jonathan@dsg.stanford.edu>
From: Simon Burge <simonb@telstra.com.au>
List: port-pmax
Date: 06/19/1996 12:17:34
I think there's something a bit fishy with the new ELF stuff that went
in a day or two ago. All my xntpd stuff compiled under NetBSD last
September now gives "Exec format error. Wrong Architecture" errors. I
think I was using Jonathan's tool-chain back then? An xntpd binary
compiled on March 4 this year works ok. My "as" and "ld" have
timestamps of Nov 26, 1995, but I honestly can't remember where they
came from.
Below I've included the first few lines of elfdump for a working and a
non-working binary. Also notice that the second elfdump took .22 wall
clock seconds, but used over an hour of CPU time :-)
Simon.
mona:/usr/local/libexec 50> elfdump < ../sbin/xntpdc | head
magic 127 ELF 10101 0 0
type 2 machine 8 version 1
entry point 10a0 phoff 34 shoff 56af0 flags 0
ehsize 34 phsize 20 phcount 3
shsize 28 shcount d shstrndx a
Section 0 at a0, len 2aae8 addr 10a0 size 2aae8
Section 1 at 2b000, len 49f0 addr 2d000 size 4ae8
Section 2 at 56af0, len 0 addr 31af0 size 67f0
name type 0 flags 0 addr 0
offset 0 size 0 link 0 info 0
mona:/usr/local/libexec 51> elfdump < xntpd | head
magic 127 ELF 10101 0 0
type 2 machine 8 version 1
entry point 400080 phoff 34 shoff a8d84 flags 0
ehsize 34 phsize 20 phcount 2
shsize 28 shcount d shstrndx a
Section 0 at 80, len 50428 addr 400080 size 50428
Section 1 at 60000, len 6ae0 addr 10000000 size 1f140
name type 0 flags 0 addr 0
offset 0 size 0 link 0 info 0
align 0 esize 0
324.164u 3971.114s 0:00.22 1952395.4% 0+0k 0+0io 0pf+0w