Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Mar 2015 10:57 -0400
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-hackers@freebsd.org
Cc:        Yue Chen <ycyc321@gmail.com>
Subject:   Re: [Rebuild Kernel] Part of the kernel functions are not recompiled when rebuilding the kernel
Message-ID:  <2868982.gUMQ0OnoyR@ralph.baldwin.cx>
In-Reply-To: <CAKtBrB5pgj_zYFeZyOvPKdfVkJdq2o5G9feNLfm84F%2Bq3%2BMMXg@mail.gmail.com>
References:  <CAKtBrB5pgj_zYFeZyOvPKdfVkJdq2o5G9feNLfm84F%2Bq3%2BMMXg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday, March 09, 2015 04:18:07 PM Yue Chen wrote:
> Hi all,
> 
> When I used my customized LLVM (insert some instructions after each basic
> block) to rebuild the 10.1-RELEASE kernel, I found that about 10% of the
> kernel functions (in a continuous address range, in "objdump -S kernel",
> about 79%-88%) are not recompiled with my LLVM (does not have the feature
> of my customized LLVM). For example, these functions:
> 
> calc_rebuild_progress
> ID_TO_VDEV
> ldm_spinup_vdev
> hpt27xx_ldm_suspend
> ldm_start_rebuild
> hptnr_ldm_acquire_lock
> __ldm_finish_cmd
> 
> I believe the rebuilding process would do a CLEAN first. Maybe something is
> wrong with my building process? I followed the instructions here:
> https://www.freebsd.org/doc/en/books/handbook/kernelconfig-building.html
> 
> Or these functions are in kernel modules that are statically linked?

Some drivers ship with pre-compiled .o files provided by external vendors
and not the source.  Several hpt drivers are this way, so I suspect that is
what you are running into.

-- 
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2868982.gUMQ0OnoyR>