[PATCH] eal/linux: fix HPET symbols export

fengchengwen fengchengwen at huawei.com
Fri Feb 27 09:34:24 CET 2026


Acked-by: Chengwen Feng <fengchengwen at huawei.com>

On 2/18/2026 6:18 PM, David Marchand wrote:
> The .map generation script has no clue about build configuration as it
> relies only on the presence of RTE_EXPORT* and RTE_VERSION* markers in
> a source file.
> 
> As a consequence, Linux eal_exports.map contains references to
> HPET symbols regardless of the use_hpet meson option value.
> 
> $ meson configure build -Duse_hpet=false
> $ ninja -C build
> ...
> $ grep hpet build/lib/eal_exports.map
> 	rte_eal_hpet_init;
> 	rte_get_hpet_cycles;
> 	rte_get_hpet_hz;
> 
> As far as I have seen, superfluous exports have no impact on generating
> a shared library with the GNU linker, yet it might be different with
> other linkers (MSVC linker would complain, for example).
> 
> Moving those symbols to a dedicated source file solves this (non?) issue.
> 
> Fixes: 57c194d142d9 ("build: use dynamically generated version maps")
> 
> Signed-off-by: David Marchand <david.marchand at redhat.com>



More information about the dev mailing list