From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1154 invoked by alias); 22 Apr 2010 16:39:17 -0000 Received: (qmail 1136 invoked by uid 22791); 22 Apr 2010 16:39:16 -0000 X-SWARE-Spam-Status: No, hits=-0.4 required=5.0 tests=BAYES_05,TW_YC X-Spam-Check-By: sourceware.org Received: from rt3bb246-84-50.routit.net (HELO xsrv1.herveille.net) (84.246.3.50) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 22 Apr 2010 16:39:09 +0000 Received: from localhost (xsrv1.herveille.net [127.0.0.1]) by xsrv1.herveille.net (Postfix) with ESMTP id 79F32F10136 for ; Thu, 22 Apr 2010 18:39:07 +0200 (CEST) Received: from xsrv1.herveille.net ([127.0.0.1]) by localhost (xsrv1.herveille.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zC+3IOr9D1DY for ; Thu, 22 Apr 2010 18:38:55 +0200 (CEST) Received: from [172.16.9.125] (compaqportable.herveille.net [172.16.9.125]) by xsrv1.herveille.net (Postfix) with ESMTP id E4FD1F101BE for ; Thu, 22 Apr 2010 18:38:55 +0200 (CEST) Message-ID: <4BD07B40.8020405@herveille.net> Date: Thu, 22 Apr 2010 16:39:00 -0000 From: Richard Herveille User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: cgen@sources.redhat.com Subject: unresolved symbols during binutils linking Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cgen-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cgen-owner@sourceware.org X-SW-Source: 2010-q2/txt/msg00001.txt.bz2 Hi, I am trying to port binutils to a new CPU using CGEN. My approach ... start with a basic/simple .cpu file (with limited opcodes) and add instructions once it all starts working. I think I modified all configure/makefiles in binutils; at least it is alive :-) I can also see that cgen gets called and generates the files without issuing any errors. I can also see the opcode definitions in teh fiels. However I am getting errors during compilation (actually during linking); Example: libtool: link: gcc -W ... ../opcodes/.libs/libopcodes.a(mycpu-dis.o): In function 'mycpu_cgen_init_dis': ... mycpu-dis.c:148 undefined reference to 'mycpu_cgen_init_ibld_table' other undefined references: mycpu_cgen_cpu_open, mycpu_cgen_opval_h_gpr, mycpu_cgen_opval_h_gpar, mycpu_cgen_init_opcode_table, mycpu_cgen_build_insn_regex I can see all of these functions being defined in the generated C files. I can also see that the names are present in libopcodes.a. Does anybody have any clue what is going wrong? I tried other targets and they work out of the box. So it must be something in my CPU's setup. Thanks, Richard