From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by sourceware.org (Postfix) with ESMTPS id C248F3858C54 for ; Wed, 26 Jul 2023 13:32:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C248F3858C54 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id CC90C1F86C; Wed, 26 Jul 2023 13:32:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1690378376; h=from:from:reply-to: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=ZDXlWB/78UUik1qBL50JECbBdZ19BN54GeddB2XZMEo=; b=jZsKB2eIhHCtmkhkxsjOK3LqRmJjehNfX6LHvr23p/EKVIRmmDnEIUZlo1OujVC7opPvbq FBd2btxNeqJjb/IZTZqvYsiERthAYb3adeV6pKt7MKwsQIDgnmKyC0WlP9Ke5PgAxBi15J jVZ/KRd1Z6RaaYVF4lTsvyIl5LDkaBI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1690378376; h=from:from:reply-to: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=ZDXlWB/78UUik1qBL50JECbBdZ19BN54GeddB2XZMEo=; b=Z26tWA2C200p40fu4O+RtTCktf//tQOO5kCCELO6cdlt1rpFLcE7sj1wY531H0P92Z+5l9 3njET1gQN8vDTCAQ== Received: from wotan.suse.de (wotan.suse.de [10.160.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id BC4F62C142; Wed, 26 Jul 2023 13:32:56 +0000 (UTC) Received: by wotan.suse.de (Postfix, from userid 10510) id A7BA5691F; Wed, 26 Jul 2023 13:32:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by wotan.suse.de (Postfix) with ESMTP id A53E66865; Wed, 26 Jul 2023 13:32:56 +0000 (UTC) Date: Wed, 26 Jul 2023 13:32:56 +0000 (UTC) From: Michael Matz To: Paul Iannetta cc: Nick Clifton , binutils@sourceware.org Subject: Re: [PATCH 0/7] kvx: New port. In-Reply-To: <20230726073623.eaczp74zhock7dj7@ws2202.lin.mbt.kalray.eu> Message-ID: References: <20230721074956.7188-1-piannetta@kalrayinc.com> <7a676623-4084-c210-3dcd-37e813aeb32d@redhat.com> <20230724123338.r27dhowqkwzqgt4u@ws2202.lin.mbt.kalray.eu> <886f77cd-8cee-d530-64f0-c09cb9643a93@redhat.com> <20230726073623.eaczp74zhock7dj7@ws2202.lin.mbt.kalray.eu> User-Agent: Alpine 2.20 (LSU 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE 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: Hello, On Wed, 26 Jul 2023, Paul Iannetta via Binutils wrote: > > Most of the remaining failures appear to be due to this error: > > > > error: PHDR segment not covered by LOAD segment > > > > Which I am guessing is due to some kind of issue with the built in linker script > > for the KVX target. Although I am not sure exactly what the issue might be. > > > This one is due to the fact that we do not generate a PHDR at all > since we only support a very primitive form of dynamic loading (only > through calls to dlopen/dlsym), we do not need a PHDR. You are using the ELF file format right? In the gABI a program header table is actually non-optional for executables and shared libs. Obviously a psABI can do mostly whatever it likes, but not having PHDRs is _very_ unusual. They aren't specific to dynamic linking: after all, even static executables need to be loaded somewhere, by kernel or boot loader or ROM or $othermagic, and the program headers describe what and where to load. So, you really might want to reconsider. At least one PT_LOAD segment covering the whole file would be good. Ciao, Michael.