From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id B0929385841C for ; Fri, 4 Nov 2022 07:12:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B0929385841C Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1667545934; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=US+0KPTdOzMuWktraK6BKVMOc9LZBrc88D2AVy6bDQQ=; b=XCfuHTp51GM4T/JEfXKCV3ojM5juDZutQSrQcVT06DAOOStjnlDan8ziEio341SYhcD1S5 YHnRGhc2S2CJsX7km65fCkPLKP+VbVMmp41CDfP7yqgSYdeHHnQYZyq5Heq9Q4petGPWTU 8RH0xJxj5lankRFWUgA3BHxFRY2BWSE= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-22-QpEgk6hsNyGfkG68AZgIHg-1; Fri, 04 Nov 2022 03:12:11 -0400 X-MC-Unique: QpEgk6hsNyGfkG68AZgIHg-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 15D4F38041CB; Fri, 4 Nov 2022 07:12:11 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.2.16.19]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BE3EA2166B26; Fri, 4 Nov 2022 07:12:09 +0000 (UTC) From: Florian Weimer To: "H.J. Lu" Cc: Joseph Myers , Subject: Re: x86_64 / i686 no-PIE failures References: Date: Fri, 04 Nov 2022 08:12:07 +0100 In-Reply-To: (Joseph Myers's message of "Wed, 17 Aug 2022 22:27:09 +0000") Message-ID: <87a6572ny0.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: * Joseph Myers: > Now that the uchar.h failures with mainline GCC are fixed, other failures > show up for x86_64 / i686 no-PIE with mainline GCC and binutils (I don't > know how long these have been there): > > /scratch/jmyers/glibc-bot/install/compilers/x86_64-linux-gnu/lib/gcc/x86_64-glibc-linux-gnu/13.0.0/../../../../x86_64-glibc-linux-gnu/bin/ld: /scratch/jmyers/glibc-bot/build/glibcs/x86_64-linux-gnu-no-pie/glibc/elf/ifuncmain1.o: non-canonical reference to canonical protected function `foo_protected' in /scratch/jmyers/glibc-bot/build/glibcs/x86_64-linux-gnu-no-pie/glibc/elf/ifuncmod1.so > /scratch/jmyers/glibc-bot/install/compilers/x86_64-linux-gnu/lib/gcc/x86_64-glibc-linux-gnu/13.0.0/../../../../x86_64-glibc-linux-gnu/bin/ld: failed to set dynamic section sizes: bad value > collect2: error: ld returned 1 exit status > ../Rules:238: recipe for target '/scratch/jmyers/glibc-bot/build/glibcs/x86_64-linux-gnu-no-pie/glibc/elf/ifuncmain1' failed > make[3]: *** [/scratch/jmyers/glibc-bot/build/glibcs/x86_64-linux-gnu-no-pie/glibc/elf/ifuncmain1] Error 1 > make[3]: Leaving directory '/scratch/jmyers/glibc-bot/src/glibc/elf' H.J., this test no longer seems valid with current binutils (or current binutils is broken). ifuncmain1.o has X86_64_32S and X86_64_PLT32 relocations for foo_protected, so the main program must contain a PLT stub for foo_protected. Apparently, ld no longer produces such binaries. What should we do about this? Thanks, Florian