[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <7da5a054f533eabf2ffa110c236f011bf9d23954.camel@sipsolutions.net>
Date: Tue, 10 Dec 2019 09:28:01 +0100
From: Johannes Berg <johannes@...solutions.net>
To: Anton Ivanov <anton.ivanov@...bridgegreys.com>,
Richard Weinberger <richard@....at>,
Brendan Higgins <brendanhiggins@...gle.com>
Cc: davidgow@...gle.com, Jeff Dike <jdike@...toit.com>,
linux-um <linux-um@...ts.infradead.org>,
linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v1] uml: remove support for CONFIG_STATIC_LINK
On Tue, 2019-12-10 at 07:34 +0000, Anton Ivanov wrote:
> > Further to this - any properly written piece of networking code which
> > uses the newer functions for name/service resolution will have the same
> > problem. You can be static only if you do everything "manually" the old
> > way.
>
> The offending piece of code is the glibc implementation of getaddrinfo().
>
> If you use it and link static the resulting binary is not really static.
However, this (getaddrinfo) really only applies if you use the vector
network driver, if you e.g. use only virtio then this particular problem
isn't present.
Note sure if we implicitly call getaddrinfo from libpcap, but again,
that's just a single driver.
IOW, we could just make CONFIG_STATIC_LINK depend on !VECTOR && !PCAP?
johannes
Powered by blists - more mailing lists