Re: [PATCH v6][makedumpfile 02/10] Implement kernel kallsyms resolving

HAGIO KAZUHITO(萩尾 一仁) <[email protected]>
Newsgroups org.infradead.lists.kexec
Message-ID <[email protected]>
On 2026/06/18 17:50, Tao Liu wrote:
> Hi Kazu,
> 
> Yes, it is needed for reallocarray() in kallsyms.c. For "man
> reallocarray" gives:
> 
>         reallocarray():
>             Since glibc 2.29:
>                 _DEFAULT_SOURCE
>             glibc 2.28 and earlier:
>                 _GNU_SOURCE
> 
> For glibc <= 2.28, we need to use _GNU_SOURCE in order to use
> reallocarray(). E.g I can encounter the compiling warning in rhel8
> once removed.

Thanks for the info. so let's keep it.

Thanks,
Kazu
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.