From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by sourceware.org (Postfix) with ESMTPS id BFAEF385842B for ; Wed, 27 Oct 2021 22:39:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org BFAEF385842B Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 19RLluvX006835; Wed, 27 Oct 2021 22:39:19 GMT Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com with ESMTP id 3byf0h8rbs-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 27 Oct 2021 22:39:18 +0000 Received: from m0098414.ppops.net (m0098414.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 19RMXlXc021668; Wed, 27 Oct 2021 22:39:18 GMT Received: from ppma05wdc.us.ibm.com (1b.90.2fa9.ip4.static.sl-reverse.com [169.47.144.27]) by mx0b-001b2d01.pphosted.com with ESMTP id 3byf0h8rbn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 27 Oct 2021 22:39:18 +0000 Received: from pps.filterd (ppma05wdc.us.ibm.com [127.0.0.1]) by ppma05wdc.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 19RMY4SE017019; Wed, 27 Oct 2021 22:39:17 GMT Received: from b01cxnp22036.gho.pok.ibm.com (b01cxnp22036.gho.pok.ibm.com [9.57.198.26]) by ppma05wdc.us.ibm.com with ESMTP id 3bx4em4cw2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 27 Oct 2021 22:39:17 +0000 Received: from b01ledav006.gho.pok.ibm.com (b01ledav006.gho.pok.ibm.com [9.57.199.111]) by b01cxnp22036.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 19RMdHat9110040 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 27 Oct 2021 22:39:17 GMT Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 44BC1AC07A; Wed, 27 Oct 2021 22:39:17 +0000 (GMT) Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A91ABAC075; Wed, 27 Oct 2021 22:39:16 +0000 (GMT) Received: from linux.ibm.com (unknown [9.163.66.200]) by b01ledav006.gho.pok.ibm.com (Postfix) with ESMTP; Wed, 27 Oct 2021 22:39:16 +0000 (GMT) From: Tulio Magno Quites Machado Filho To: Fangrui Song , Adhemerval Zanella Cc: libc-alpha@sourceware.org Subject: Re: [PATCH 0/3] Improve lld support and current status In-Reply-To: <20211026203327.6b2o5k4cmkuzzm6j@google.com> References: <20211026200346.3371750-1-adhemerval.zanella@linaro.org> <20211026203327.6b2o5k4cmkuzzm6j@google.com> User-Agent: Notmuch/0.32.1 (http://notmuchmail.org) Emacs/27.2 (x86_64-redhat-linux-gnu) Date: Wed, 27 Oct 2021 19:39:15 -0300 Message-ID: <87lf2ejdnw.fsf@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-AS-GCONF: 00 X-Proofpoint-GUID: NBLwd4zobUOFTgcYha9xy7ZK-dSwM7Eq X-Proofpoint-ORIG-GUID: 5qTTeLl6BCxx74TpiodXPfh2fdzEQW18 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475 definitions=2021-10-27_06,2021-10-26_01,2020-04-07_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 adultscore=0 spamscore=0 phishscore=0 priorityscore=1501 mlxlogscore=999 mlxscore=0 bulkscore=0 impostorscore=0 suspectscore=0 malwarescore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2110270124 X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP, URIBL_BLACK autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Oct 2021 22:39:21 -0000 Fangrui Song via Libc-alpha writes: > On 2021-10-26, Adhemerval Zanella wrote: >>The powerpc64le fails at libc.so start: >> >> (gdb) bt >> #0 0x00007ffff7f2a980 in __gep_setup___vmx__sigjmp_save () >> from >> /home/azanella/glibc/build/powerpc64le-linux-gnu-power9-lld/libc.so.6 >> #1 0x00007ffff7d7ac5c in __libc_start_call_main () >> from >> /home/azanella/glibc/build/powerpc64le-linux-gnu-power9-lld/libc.so.6 This is a local call from libc.so to libc.so. It should be using the local entry point for __vmx__sigjmp_save. >> #2 0x00007ffff7d7ae90 in __libc_start_main_impl () >> from >> /home/azanella/glibc/build/powerpc64le-linux-gnu-power9-lld/libc.so.6 >> #3 0x0000000000000000 in ?? () >> (gdb) disas >> Dump of assembler code for function __gep_setup___vmx__sigjmp_save: >> => 0x00007ffff7f2a980 <+0>: .long 0x613ffe6 >> 0x00007ffff7f2a984 <+4>: li r12,-1280 This is a pla, but this GDB isn't able to disassemble it. This instruction shouldn't be used unless when configuring glibc using --with-cpu=power10. >>And powerpc64-linux-gnu fails on dynamic loaders start: >> >> (gdb) bt >> #0 0x00007ffff7ffa9a8 in _start () >> (gdb) disas >> Dump of assembler code for function _start: >> => 0x00007ffff7ffa9a8 <+0>: .long 0x0 >> 0x00007ffff7ffa9ac <+4>: .long 0x0 >> 0x00007ffff7ffa9b0 <+8>: .long 0x0 >> 0x00007ffff7ffa9b4 <+12>: .long 0x0 I've been told that LLD doesn't support the powerpc ELFv1 yet. > CCed the powerpc maintainer. Thanks! -- Tulio Magno