From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 78403 invoked by alias); 27 Mar 2017 07:12:28 -0000 Mailing-List: contact newlib-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-owner@sourceware.org Received: (qmail 78381 invoked by uid 89); 27 Mar 2017 07:12:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.0 required=5.0 tests=AWL,BAYES_40,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=H*M:china, H*MI:china, sk:softwar, H*RU:14.03.0301.000 X-HELO: dggrg01-dlp.huawei.com Received: from szxga01-in.huawei.com (HELO dggrg01-dlp.huawei.com) (45.249.212.187) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 27 Mar 2017 07:12:24 +0000 Received: from 172.30.72.53 (EHLO DGGEML403-HUB.china.huawei.com) ([172.30.72.53]) by dggrg01-dlp.huawei.com (MOS 4.4.6-GA FastPath queued) with ESMTP id ALO30657; Mon, 27 Mar 2017 15:12:21 +0800 (CST) Received: from DGGEML504-MBS.china.huawei.com ([169.254.11.99]) by DGGEML403-HUB.china.huawei.com ([::1]) with mapi id 14.03.0301.000; Mon, 27 Mar 2017 15:12:16 +0800 From: "Zhangwen (Esan)" To: "newlib@sourceware.org" Subject: newlib-2.2.0/libgloss/mips/crt0.S:161: undefined reference to `hardware_hazard_hook' Date: Mon, 27 Mar 2017 07:12:00 -0000 Message-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090206.58D8BB55.028F,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=169.254.11.99, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 392b8a754dcd47df5212d2eff057145d X-IsSubscribed: yes X-SW-Source: 2017/txt/msg00225.txt.bz2 I found the mips compile with newlib-2.2.0 can report the error message whe= n linking with crt0.o manually: ./install/bin/mips-sde-elf-ld: warning: cannot find entry symbol __start; d= efaulting to 00000000004000d4 newlib-2.2.0/libgloss/mips/crt0.S:161: undefined reference to `hardware_haz= ard_hook' newlib-2.2.0/libgloss/mips/crt0.S:161: undefined reference to `hardware_haz= ard_hook' newlib-2.2.0/libgloss/mips/crt0.S:195: undefined reference to `get_mem_info' newlib-2.2.0/libgloss/mips/crt0.S:198: undefined reference to `__stack' newlib-2.2.0/libgloss/mips/crt0.S:198: undefined reference to `__stack' newlib-2.2.0/libgloss/mips/crt0.S:227: undefined reference to `hardware_ini= t_hook' newlib-2.2.0/libgloss/mips/crt0.S:227: undefined reference to `hardware_ini= t_hook' newlib-2.2.0/libgloss/mips/crt0.S:231: undefined reference to `software_ini= t_hook' newlib-2.2.0/libgloss/mips/crt0.S:231: undefined reference to `software_ini= t_hook' newlib-2.2.0/libgloss/mips/crt0.S:301: undefined reference to `hardware_exi= t_hook' newlib-2.2.0/libgloss/mips/crt0.S:301: undefined reference to `hardware_exi= t_hook' Coud you know the reason for the error and the solution? I have no change f= or newlib source code. Cheers, Zhangwen