From nobody Sun Oct 29 12:07:40 2023 X-Original-To: freebsd-hackers@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 4SJFXY0c4xz4ysDS for ; Sun, 29 Oct 2023 12:07:57 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SJFXY03qyz3NRB; Sun, 29 Oct 2023 12:07:57 +0000 (UTC) (envelope-from dim@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698581277; 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=RuutuODL7HXK7yjYJ97VttkFEJDOGIT+wQpvukwGcBY=; b=CTEY0cv4iCnOWe6AbIjWidIL9qumeTFtQflqodrzStmN+2vnXX+QJQMPYNN/Lrq+RcbTK7 2uXq1xWSXaEamQtdg7WGaFcIyGwe0Te+zvmnBDae2FsIGBNenPUx4ndCWbVk8VhtjMKtFD RDKbuG7LdxYwuDUUj5iBQ14OeZEyI2vDJOsb00OIBln8O/Hh+01EvX23ygsR2RHbvnKQsO 1imrb1cEOYZTp1R4fbbQ+9vOvNkavJRY6z/TH1iuAqzM3B2vNrbNuYzG9UrNL46WXpVe7o MSOd7gw8gOsiQjIIwkW6ZqhdIoVddd/ivvtNKyWwKnP5eYnUx3L2U9eJMqt2FQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698581277; 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=RuutuODL7HXK7yjYJ97VttkFEJDOGIT+wQpvukwGcBY=; b=hivMj66+O4VUhj4w0q3rQPuZAeIdKSuJ9t3uVe+w8S6PI7+g7/+V3U4+Mo9Exg04xdFGoM mLgmIkv6Z0avvRub1tYNi5roL0o0Mg2+3z+8USSxHfNwbSXrJP+P1AUCVI17VWGrRUr0oP k5RqzKhi9MZZIHRw/J6tuCYnhgPGyniFAefEQMfUm9KyRmVr0pII4fAjgDqXS2KtSVi5Uz QrgjAlIirtWAobxbA1G8F6/mOjefF8vQkY3zNjCQdkT94FKoObQ30UIUUunpllz9XPLVJP BkF/Icmz2XK6fcuPR6MLM2//Z7ikOLTUtP7dBw4PI9vQpNd1MiHu9d/y4OsKjQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1698581277; a=rsa-sha256; cv=none; b=c941hRqi8+Rlii22BZiEocfCtaRS5YY6zi2093q5Wn6gNjFYGHsvupkifpRQ0b5n/iczfj LXkU+clV7vlpgOLub9eJdDj6N8Iv6rptmTImBw/mxDPOP9dUHMl2Z/G5nSeKP1qKRi74L0 BKMBMOoV9mpzbdlAeKTPQ6YLKM4IKt2bDUlLYFOD/suLU3lK3CKXBl6BtxliiynBoitDg0 gYawB2dNRcFOZbeZeJQSd4OlFKDG0hZTY9sTvsr1vsLyNWohVgPI/9+rulURTa84Wvar36 jxReVD3DiFvkX1HFBlLIbVQdOJdp8guMDDosdIY+oFf4R3lj5hEPkmeEguVrMw== Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "tensor.andric.com", Issuer "R3" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id 4SJFXX5VLMzDPC; Sun, 29 Oct 2023 12:07:56 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtpclient.apple (longrow.home.andric.com [192.168.0.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 9160D6F119; Sun, 29 Oct 2023 13:07:55 +0100 (CET) Content-Type: multipart/signed; boundary="Apple-Mail=_E2D280CD-FA79-4D51-9748-701081F35E19"; protocol="application/pgp-signature"; micalg=pgp-sha1 List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) Subject: Re: problem linking kernel From: Dimitry Andric In-Reply-To: Date: Sun, 29 Oct 2023 13:07:40 +0100 Cc: "freebsd-hackers@freebsd.org" Message-Id: References: To: Wojciech Puchar X-Mailer: Apple Mail (2.3731.700.6) --Apple-Mail=_E2D280CD-FA79-4D51-9748-701081F35E19 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 29 Oct 2023, at 11:34, Wojciech Puchar wrote: >=20 > i get this linking my custom kernel. No errors until link >=20 > linking kernel > ld: dynamic STT_GNU_IFUNC symbol `rdtsc_ordered' with pointer equality = in `cpu_machdep.o' can not be used when making an executable; recompile = with -fPIE and relink with -pie >=20 >=20 > kernel config attached, latest FreeBSD-13 downloaded today. >=20 > can you help? I just tried it here, and it works fine: ... linking kernel objcopy --strip-debug kernel text data bss dec hex filename 7925073 779012 3411328 12115413 0xb8ddd5 kernel -------------------------------------------------------------- >>> Kernel build for PUCHAR completed on Sun Oct 29 12:06:08 UTC 2023 -------------------------------------------------------------- >>> Kernel(s) PUCHAR built in 28 seconds, ncpu: 32, make -j32 -------------------------------------------------------------- -Dimitry --Apple-Mail=_E2D280CD-FA79-4D51-9748-701081F35E19 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCZT5LDAAKCRCwXqMKLiCW oySIAJ9GbVVa/c9q6KRh5uNIlUrdY8f2bgCfcN6AAVWe5jpp2NiVashhd/XIP4I= =ttCu -----END PGP SIGNATURE----- --Apple-Mail=_E2D280CD-FA79-4D51-9748-701081F35E19--