From nobody Sun Oct 29 12:10:10 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 4SJFbC124Sz4yshl for ; Sun, 29 Oct 2023 12:10:15 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: from puchar.net (puchar.net [194.1.144.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4SJFbB6S3Vz3PMw; Sun, 29 Oct 2023 12:10:14 +0000 (UTC) (envelope-from wojtek@puchar.net) Authentication-Results: mx1.freebsd.org; none Received: Received: from 127.0.0.1 (localhost [127.0.0.1]) by puchar.net (8.15.2/8.17.1) with ESMTPS id 39TCABuf063076 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 29 Oct 2023 13:10:12 +0100 (CET) (envelope-from wojtek@puchar.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=puchar.net; s=default; t=1698581412; bh=CT6acZHeTjXbDdaV4F9ywl4l5vbc6mZKYTw/kTsL/RE=; h=Date:From:To:cc:Subject:In-Reply-To:References; b=qrM4gTGYlNSog9zNEDysfFECKcrOqnRgRAxK5C8XMi02oifXgLSujIsN+jmp02Ju3 b0NwW7cGG6QInBlt4AtWZDjzc6/Lcpxx/gjeDHu9L5hpSkD7iOFQR2zx9pEBeILNCn fJU8BOCe5dKxQHTeV84WPoq8D03KUIvveLbjcau8= Received: from wojtek.intra (localhost [127.0.0.1]) by wojtek.intra (8.16.1/8.16.1) with ESMTP id 39TCAArN081880; Sun, 29 Oct 2023 13:10:10 +0100 (CET) (envelope-from wojtek@puchar.net) Received: from localhost (wojtek@localhost) by wojtek.intra (8.16.1/8.16.1/Submit) with ESMTP id 39TCAAOv081877; Sun, 29 Oct 2023 13:10:10 +0100 (CET) (envelope-from wojtek@puchar.net) X-Authentication-Warning: wojtek.intra: wojtek owned process doing -bs Date: Sun, 29 Oct 2023 13:10:10 +0100 (CET) From: Wojciech Puchar To: Dimitry Andric cc: "freebsd-hackers@freebsd.org" Subject: Re: problem linking kernel In-Reply-To: Message-ID: References: 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 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:43476, ipnet:194.1.144.0/24, country:PL] X-Rspamd-Queue-Id: 4SJFbB6S3Vz3PMw fine. so where to seek a problem. userland is the same as kernel. can some leftover files in /usr or something in other configuration cause that? Now i compiled it too on my laptop without problems On Sun, 29 Oct 2023, Dimitry Andric wrote: > On 29 Oct 2023, at 11:34, Wojciech Puchar wrote: >> >> i get this linking my custom kernel. No errors until link >> >> 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 >> >> >> kernel config attached, latest FreeBSD-13 downloaded today. >> >> 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 > >