[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 06/32] bsd-user: Add bsd-proc.c to meson.build
From: |
Karim Taha |
Subject: |
Re: [PATCH 06/32] bsd-user: Add bsd-proc.c to meson.build |
Date: |
Tue, 12 Sep 2023 01:45:04 +0300 |
Richard Henderson <richard.henderson@linaro.org> wrote:
>> +elf = cc.find_library('elf', required: true)
>> +procstat = cc.find_library('procstat', required: true)
>> +kvm = cc.find_library('kvm', required: true)
>> +bsd_user_ss.add(elf, procstat, kvm)
>
> What are these for? Particularly kvm?
>
>
> r~
It's need to link with `libprocstat`, which is need for the
`filestat` struct definition, and it's `proc_*` functions used
is `get_filename_from_fd` function, however the function is declared
static, which emits an `unused function warning`, but compiles
successfully.
The linker errors only when the `get_filename_from_fd` is used in
`freebsd_exec_common` function.
--
Karim Taha
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [PATCH 06/32] bsd-user: Add bsd-proc.c to meson.build,
Karim Taha <=