From owner-freebsd-arch@FreeBSD.ORG Sun Nov 22 11:27:49 2009 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 18A08106566B for ; Sun, 22 Nov 2009 11:27:49 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: from onelab2.iet.unipi.it (onelab2.iet.unipi.it [131.114.59.238]) by mx1.freebsd.org (Postfix) with ESMTP id D55BE8FC12 for ; Sun, 22 Nov 2009 11:27:48 +0000 (UTC) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id 45802730DA; Sun, 22 Nov 2009 12:17:32 +0100 (CET) Date: Sun, 22 Nov 2009 12:17:32 +0100 From: Luigi Rizzo To: arch@freebsd.org Message-ID: <20091122111732.GA45909@onelab2.iet.unipi.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Cc: Subject: anyone interested in helping fixing the 'tcc' compiler ? X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Nov 2009 11:27:49 -0000 Hi, I have recently started playing with the Tiny C Compuler (lang/tcc) which is amazingly useful for prototyping, but has problem generating non-static binaries in FreeBSD -- basically it produces a bogus elf file which our loader does not like. Static binaries work fine, as well as 'tcc -run ' (compile and run on the fly -- you should really try it if you haven't yet). There is an open PR on this http://www.freebsd.org/cgi/query-pr.cgi?pr=138481 and the problem is known upstream but no fix http://lists.gnu.org/archive/html/tinycc-devel/2005-07/msg00070.html However, from the description it does not seem a horribly hard problem. Perhaps someone with a bit of knowledge on how our ld-elf.so works should not have a hard time pinpointing the problem so that other people can fix it ? Any takers ? cheers luigi