From nobody Mon Mar 20 07:56:36 2023 X-Original-To: freebsd-amd64@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Pg6Wc5lhQz40N78 for ; Mon, 20 Mar 2023 07:56:44 +0000 (UTC) (envelope-from dchagin@heemeyer.club) Received: from heemeyer.club (heemeyer.club [195.93.173.158]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Pg6Wc1v3Gz45dq for ; Mon, 20 Mar 2023 07:56:43 +0000 (UTC) (envelope-from dchagin@heemeyer.club) Authentication-Results: mx1.freebsd.org; none Received: from heemeyer.club (localhost [127.0.0.1]) by heemeyer.club (8.17.1/8.16.1) with ESMTP id 32K7uaMU053159; Mon, 20 Mar 2023 10:56:36 +0300 (MSK) (envelope-from dchagin@heemeyer.club) Received: (from dchagin@localhost) by heemeyer.club (8.17.1/8.16.1/Submit) id 32K7uaOR053158; Mon, 20 Mar 2023 10:56:36 +0300 (MSK) (envelope-from dchagin) Date: Mon, 20 Mar 2023 10:56:36 +0300 From: Dmitry Chagin To: Daniel Cervus Cc: "freebsd-amd64@freebsd.org" Subject: Re: Does FB support SysV ABI? Message-ID: References: List-Id: Porting FreeBSD to the AMD64 platform List-Archive: https://lists.freebsd.org/archives/freebsd-amd64 List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-amd64@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Rspamd-Queue-Id: 4Pg6Wc1v3Gz45dq X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:61400, ipnet:195.93.173.0/24, country:RU] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Mon, Mar 20, 2023 at 04:33:37AM +0000, Daniel Cervus wrote: > Hello, everyone. I was writing an assembly language program and I encountered some problem. After some research, I found that FB doesn’t follow the System V ABI standard and seems the system won’t recognize ELFs branding as SVR4. Is there any way to run a program written in SysV ABI? If no, where can I find documentation of FreeBSD ABI? > > hi, https://cgit.freebsd.org/src/tree/sys/kern/imgact_elf.c#n350