From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26605 invoked by alias); 3 Jun 2009 10:33:10 -0000 Received: (qmail 26490 invoked by uid 22791); 3 Jun 2009 10:32:49 -0000 X-SWARE-Spam-Status: No, hits=1.6 required=5.0 tests=BAYES_50,DEAR_SOMETHING,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mp.nii.ac.jp (HELO mp.nii.ac.jp) (136.187.17.6) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 03 Jun 2009 10:32:43 +0000 Received: from p2088-ipngn1108marunouchi.tokyo.ocn.ne.jp (EHLO _118.22.233.88_) ([118.22.233.88]) by mp.nii.ac.jp (MOS 3.8.7a FastPath queued) with ESMTP id ASH17444 (AUTH vijay@nii.ac.jp); Wed, 03 Jun 2009 19:32:38 +0900 (JST) Message-ID: <4A265143.6010104@nii.ac.jp> Date: Wed, 03 Jun 2009 10:33:00 -0000 From: Vijay Reply-To: vijay@nii.ac.jp User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: mukti jain CC: gcc@gcc.gnu.org Subject: Re: Enquiry References: <4A252E88.2010004@nii.ac.jp> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2009-06/txt/msg00036.txt.bz2 Thanks for the response Mukti. I think the options could be: |-mlong-calls -mno-ep and ||-mno-prolog-function. Could please tell me how to sepcify these options in makefile? Because I use gmake (in Cygwin shell) Thanks, -Vijay | mukti jain wrote: > Can you experiment with optionmization options and -m850 and -m850e? > have a look at this too if you are looking for quick fix. > http://sourceware.org/ml/binutils/2005-08/msg00214.html > > Thanks, > Mukti > > On Tue, Jun 2, 2009 at 11:18 PM, mukti jain > wrote: > > > > On Tue, Jun 2, 2009 at 7:22 PM, Vijay Holimath > wrote: > > Dear Sir, > > I am using gcc compiler for v850e cpu. When I use the > arrtribute: __attribute__ ((interrupt_handler)) or > __attribute__ ((interrupt); for interrupt function, say for > example > > void swnmi() __attribute__ ((interrupt_handler)); > > void swnmi() > { > ... > .. > } > > main() > { > .. > .. > } > > I am getting following error messages when I compile: > > main.o (.text+0xea): In function 'swnmi': undefined reference > to '__ep' > > main.o (.text+0xee): In function 'swnmi': undefined reference > to '__ep' > > collect2: Id returned 1 exit status > > > I will be grateful to you if you could help me to get rid of > these error messages. Probably I have to link some libraries? > > No, __ep is a linker variable. > > man page says.. > (http://ftp.gnu.org/pub/pub/old-gnu/Manuals/gas-2.9.1/html_chapter/as_24.html) > > This can either be set up automatically by the linker, or > specifically set by using the -defsym __ep= command > line option]. > > > > Thanks, > Mukti > > > > Many thanks, > -Vijay > > -- > Vijay Holimath, Ph.D > National Institute of Informatics > 2-1-2 Hitotsubashi Chiyoda-ku Tokyo 101-8430, Japan > Tel: +81-3-4212-2662 |Fax:+81-3-3556-1916 > Mobile: +81-80-3542-1560 > e-mail: vijay@nii.ac.jp > http://www.linkedin.com/in/vijayholimath > Skype name: vijay.holimath > > >