Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Oct 2023 13:16:31 +0100 (CET)
From:      Wojciech Puchar <wojtek@puchar.net>
To:        Dimitry Andric <dim@FreeBSD.org>
Cc:        "freebsd-hackers@freebsd.org" <freebsd-hackers@FreeBSD.org>
Subject:   Re: problem linking kernel
Message-ID:  <8fa19ea0-5775-bb71-76b0-2c62b1ede56@puchar.net>
In-Reply-To: <B165391E-84D9-4F24-A8C3-BACC77403EAD@FreeBSD.org>
References:  <ecd851ce-5372-9671-508-8b56592fc1e@puchar.net> <B165391E-84D9-4F24-A8C3-BACC77403EAD@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
reason found.


/usr/local/bin/ld which is part of gcc from ports takes precedence

PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games make

and all builds

On Sun, 29 Oct 2023, Dimitry Andric wrote:

> On 29 Oct 2023, at 11:34, Wojciech Puchar <wojtek@puchar.net> 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?<conf.txt>
>
> 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
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8fa19ea0-5775-bb71-76b0-2c62b1ede56>