From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH 01/11] mk: use whole-archive option when creating dpdk binaries Date: Thu, 10 Apr 2014 15:58:16 +0200 Message-ID: <1579401.l3xRPnkYnW@xps13> References: <1393608350-4431-1-git-send-email-olivier.matz@6wind.com> <1393608350-4431-2-git-send-email-olivier.matz@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev-VfR2kkLFssw@public.gmane.org To: Olivier Matz Return-path: In-Reply-To: <1393608350-4431-2-git-send-email-olivier.matz-pdR9zngts4EAvxtiuMwx3w@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" 2014-02-28 18:25, Olivier Matz: > To fully support dpdk extensions (loading of .so), all symbols provided > by dpdk libraries must be available in the binaries: before this patch, > unused functions/variables from dpdk static libraries could be stripped > by the linker because they are not used. These symbols can be used by a > dpdk extension that is loaded at runtime with the -d option. > > Adding --whole-archive when generating a binary solves this issue. > > Signed-off-by: Olivier Matz Acked-by: Thomas Monjalon Applied for version 1.6.0r2. -- Thomas