DPDK patches and discussions
 help / color / mirror / Atom feed
* PIE static library builds
@ 2023-03-14 16:22 Mattias Rönnblom
  2023-03-14 16:29 ` Bruce Richardson
  0 siblings, 1 reply; 7+ messages in thread
From: Mattias Rönnblom @ 2023-03-14 16:22 UTC (permalink / raw)
  To: dev; +Cc: Mattias Rönnblom

Hi.

Is the "b_staticpic" meson build option supposed to work with DPDK?

Setting it to "false" (default is "true") causes link failures on Ubuntu 
22.04, with GCC 9 and 11, on v23.03rc1 and v22.11:

/usr/bin/ld: lib/librte_eal.a.p/eal_common_eal_common_errno.c.o: 
relocation R_X86_64_TPOFF32 against `per_lcore_retval.1' can not be used 
when making a shared object; recompile with -fPIC
/usr/bin/ld: failed to set dynamic section sizes: bad value
collect2: error: ld returned 1 exit status

Does something per-lcore/TLS-related require PIC builds, even for static 
libraries?

Regards,
	Mattias

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-03-15 15:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-14 16:22 PIE static library builds Mattias Rönnblom
2023-03-14 16:29 ` Bruce Richardson
2023-03-14 18:04   ` Mattias Rönnblom
2023-03-14 18:31     ` Bruce Richardson
2023-03-15 14:18       ` Bruce Richardson
2023-03-15 15:45         ` Mattias Rönnblom
2023-03-15 15:55           ` Bruce Richardson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).