From owner-freebsd-current@FreeBSD.ORG Fri Feb 22 19:57:49 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 71EC279F for ; Fri, 22 Feb 2013 19:57:49 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id 2CEC1889 for ; Fri, 22 Feb 2013 19:57:49 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:509e:5349:4e7a:bf0a]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id E92F14AC57; Fri, 22 Feb 2013 23:57:47 +0400 (MSK) Date: Fri, 22 Feb 2013 23:57:42 +0400 From: Lev Serebryakov Organization: FreeBSD X-Priority: 3 (Normal) Message-ID: <781694121.20130222235742@serebryakov.spb.ru> To: Dimitry Andric Subject: Re: r245741 (clang as cc) can not build binaries for GEODE processor In-Reply-To: <5127997A.2000901@andric.com> References: <108875110.20130222104603@serebryakov.spb.ru> <51277EFE.4000703@andric.com> <15917508.20130222194954@serebryakov.spb.ru> <5127997A.2000901@andric.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: lev@FreeBSD.org List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Feb 2013 19:57:49 -0000 Hello, Dimitry. You wrote 22 =D1=84=D0=B5=D0=B2=D1=80=D0=B0=D0=BB=D1=8F 2013 =D0=B3., 20:14= :50: DA> As Joerg Sonnenberger mentioned to me, the address 0x10351d6 you show in DA> the gdb session seems to be quite high, possibly pointing to some shared DA> library. Maybe you can try to figure out which library it is? Ok, very simple "hello, world!" program crashes too! And I have debug symbols for it ;-) Program terminated with signal 4, Illegal instruction. Reading symbols from /lib/libc.so.7...done. Loaded symbols for /lib/libc.so.7 Reading symbols from /libexec/ld-elf.so.1...done. Loaded symbols for /libexec/ld-elf.so.1 #0 0x080483e9 in _start1 () (gdb) where #0 0x080483e9 in _start1 () #1 0x08048398 in _start () #2 0x00000000 in ?? () (gdb) x/i $pc 0x80483e9 <_start1+73>: nopl 0x0(%eax) (gdb) This program was built with: cc -O99 -g -o test test.c cc --version FreeBSD clang version 3.2 (tags/RELEASE_32/final 170710) 20121221 Target: i386-unknown-freebsd10.0 Thread model: posix test.c could consist of empty main() function. So, by default clang from r247144 still (or again?) has problems with long NOPs. --=20 // Black Lion AKA Lev Serebryakov