From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 51FE020D4F8 for ; Mon, 16 Jun 2025 09:10:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.227.126.134 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750065023; cv=none; b=lFvRZE6/BkTnh3mbeohqc5WPIS5+DABxaFfhGyyVmFix9guBab3jAPxYsODLz5C5IppC4jyN+YJhRP3cNLNi3mhdixI9Pn9H6aOY9IhXPBe1n1roSYHC5gi5mZXXa66Xy7g7PLXEm31ArnlhC3lhULpFHJwaBNc97tDCIrkXWN0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750065023; c=relaxed/simple; bh=GKmyICiNw23m3Ons6Wh8UHdhUxvXHNyp+ZHThgKd2UU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=NBGTA/rD1RdDwKJqs2U1F72nuLKlejVcsbYIYOJRo9v6vk5vRAiqIww/M/mJFOZYuHIzvoS1m4pup50zQyEPj4Eift/p4U+OKVZhTctenbiWlsVNa0alAF1/7KK3BEr5IiTew/huSn4H5CpoUClF74YSlKiY3IoFrOaQ8Tv72oU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=vivier.eu; spf=pass smtp.mailfrom=vivier.eu; arc=none smtp.client-ip=212.227.126.134 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=vivier.eu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=vivier.eu Received: from [192.168.100.1] ([82.64.211.94]) by mrelayeu.kundenserver.de (mreue011 [213.165.67.103]) with ESMTPSA (Nemesis) id 1N6bTa-1urpzz34vu-010Wnv; Mon, 16 Jun 2025 11:10:17 +0200 Message-ID: <7a80e6f1-1ac8-4082-b37f-f577ca0bdd5d@vivier.eu> Date: Mon, 16 Jun 2025 11:10:17 +0200 Precedence: bulk X-Mailing-List: linux-m68k@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Question on BIGGEST_ALIGNMENT in GCC on NetBSD/m68k To: John Paul Adrian Glaubitz Cc: port-m68k , debian-68k , linux-m68k References: <49a62eda6aea856df248aa223365b5230020d829.camel@physik.fu-berlin.de> <569d73fb-8ad5-46f0-bf4c-568919f319e7@helsinkinet.fi> <022ab204-7be9-4f6a-a92f-2601fae1f146@vivier.eu> <5d8619dfe4134319b558684209f2b89c5c1447cf.camel@physik.fu-berlin.de> <479479a8-a315-4687-af2b-4fc0efed7a6b@vivier.eu> <708ea8ed-c1b3-4f9a-83fe-af979bc194b1@vivier.eu> <0cf54bd607a7926414d6c9a0350fe93898a235ce.camel@physik.fu-berlin.de> <1960b583-2100-468e-8e1e-face3f7f10d6@vivier.eu> <5d8b1560fb29bec6d56ff6d8aafb4931a7079b63.camel@physik.fu-berlin.de> Content-Language: en-US, fr-FR From: Laurent Vivier In-Reply-To: <5d8b1560fb29bec6d56ff6d8aafb4931a7079b63.camel@physik.fu-berlin.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:bIiy1vzpilPXhd/Qg8QWvIO1kVBAJ5WBQP93mjEi6lhqZg27PxW r4QEpeJLwWHnNUv6SI71cKDACY4TF4Qp5lZm0ConVrzMrK0D+VeS1o3rbYxJAq8cW3P5hqq DBM7/bAAtkKSvJ9vpbHoBQcr+ZL5tYYkYc3jtFP/VMbo/KGKrUW5+U0lFpv7h1Zvi5WmuUt KKkB93ssaLxxAOHO3gDCg== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:GSV3BbcShLE=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+I4mthP39XERhDepgrv0Gcwhh0lw4dCxjuDM/ya7qRUyi0BF UPS8Ez90YI6hZlI1b9/Dy7NmI2aJ6Fi/JbYLgFlavV7wLeozgnIXshkiNICukOyn7EDy9sXUP oN/ojEtIV+dWTKz7Wa0jn32soBl1bHWU+ivAUP2t83HFMzKw3bG7kVdkSdqJmxcpbDUQIFCRj TDvRIMQevcCCS6xyBcQt18BG8krsDzbDXMpi2CHaCnaaZJpKgWAW23wI49YCO0R/GvAg+v+QU dcmRjH8+CNS/zhJgL/4O6qX1NnWyvAA1m/CZelg7X82FzzlYTX/JhR4McQhFPqdHdoNACQMIG B54BLTJHCJByfVBfekTbUzJ7Ko0QvnYM1Aj5g= Le 16/06/2025 à 11:00, John Paul Adrian Glaubitz a écrit : >> And there will be a problem with binfmt_misc because we can't rely on >> the ELF signature to know which qemu-user to run, the one with 2byte >> alignment or the one with 4byte alignment? > What about the ELF note [1] that David Brownlee suggested? Can these be used? > > Adrian > >> [1]https://www.netbsd.org/docs/kernel/elf-notes.html binfmt_misc doesn't use the sections to select the interpreter, but the 128 first bytes of the file. I think you need to change the ABI type in the ELF header: https://fr.wikipedia.org/wiki/Executable_and_Linkable_Format Thanks, Laurent