From patchwork Wed Dec 5 01:50:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xianmiao Qu X-Patchwork-Id: 1007956 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-491675-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=c-sky.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="rR0YZk4r"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 438hWp6Lknz9s9h for ; Wed, 5 Dec 2018 12:50:28 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :content-type:content-transfer-encoding:mime-version:subject :message-id:date:cc:to; q=dns; s=default; b=vpNWhGV3TzGpn6mDoY9L x7v6TWFpWADdW8HsdUeLWW2JRk0aGc6VpY1L9+Z1QtaT2x1n8QutuoT79dp5Hi48 sSwGb5f84U0z/M2q0TT7HZZADZsDJlg2R5z4a8EpU3QH5Cv7BKEHrTDphVztPSpF bMtrknsUOG3DhjlcyNoHlt8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :content-type:content-transfer-encoding:mime-version:subject :message-id:date:cc:to; s=default; bh=0h1Fu+TqafkiQMUkbBHZbtv3Zu w=; b=rR0YZk4rcThH1iqFE2uc6XClt7pqSCSMepJErZzF7FX5pHEKyPehF27A1f mc/jODpRSoqkOEsqryHJDOkfJGwhYhxOYmUqigY6LIQC09fo0URPuPvijHNr/lvr aqtOJY4+/bWLG07DCH3r0/PSRqCc0Mf6xdah6R1gAknO8TnCc= Received: (qmail 37852 invoked by alias); 5 Dec 2018 01:50:21 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 37664 invoked by uid 89); 5 Dec 2018 01:50:20 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=BAYES_00, CHARSET_FARAWAY_HEADER, FROM_EXCESS_BASE64, GIT_PATCH_2, GIT_PATCH_3, KAM_ASCII_DIVIDERS, KAM_LAZY_DOMAIN_SECURITY, UNPARSEABLE_RELAY autolearn=ham version=3.3.2 spammy=Hx-languages-length:1050 X-HELO: smtp2200-217.mail.aliyun.com Received: from smtp2200-217.mail.aliyun.com (HELO smtp2200-217.mail.aliyun.com) (121.197.200.217) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 05 Dec 2018 01:50:18 +0000 X-Alimail-AntiSpam: AC=CONTINUE; BC=0.1836978|-1; CH=green; FP=0|0|0|0|0|-1|-1|-1; HT=e02c03305; MF=xianmiao_qu@c-sky.com; NM=1; PH=DS; RN=4; RT=4; SR=0; TI=SMTPD_---.DST3BVF_1543974613; Received: from 172.16.170.201(mailfrom:xianmiao_qu@c-sky.com fp:SMTPD_---.DST3BVF_1543974613) by smtp.aliyun-inc.com(10.147.41.158); Wed, 05 Dec 2018 09:50:14 +0800 From: =?gb2312?b?9sTPye21?= Mime-Version: 1.0 (Mac OS X Mail 12.1 \(3445.101.1\)) Subject: [PATCH, csky] Force .init_array suppor for GLIBC Message-Id: <77BFB1AF-86C3-4F40-ADDC-94784368DF45@c-sky.com> Date: Wed, 5 Dec 2018 09:50:28 +0800 Cc: yunhai_shang , Han Mao , Sandra Loosemore To: GCC Patches Hi, I have submitted a patch to force .init_array suppor for GLIBC Index: gcc/ChangeLog =================================================================== --- gcc/ChangeLog (revision 266812) +++ gcc/ChangeLog (working copy) @@ -1,3 +1,7 @@ +2018-12-05 Xianmiao Qu + + * config.gcc (csky-*-linux-gnu*): Force .init_array support. + 2018-12-05 Segher Boessenkool * config/rs6000/rs6000.c (rs6000_function_arg): Only do the special Index: gcc/config.gcc =================================================================== --- gcc/config.gcc (revision 266812) +++ gcc/config.gcc (working copy) @@ -1356,6 +1356,9 @@ csky-*-*) case ${target} in csky-*-linux-gnu*) tm_defines="$tm_defines DEFAULT_LIBC=LIBC_GLIBC" + # Force .init_array support. The configure script cannot always + # automatically detect that GAS supports it, yet we require it. + gcc_cv_initfini_array=yes ;; csky-*-linux-uclibc*) tm_defines="$tm_defines DEFAULT_LIBC=LIBC_UCLIBC"