numam-dpdk/mk
Rafael Ávila de Espíndola 5a352a3a98 mk: avoid combining -r and -export-dynamic linker options
Running ld with -r switches the linker to a very special mode where
some other linker options don't make sense.

In particular, -export-dynamic normally requires that all global
symbols be included in the dynamic symbol table, but a .o file doesn't
even have a dynamic symbol table.

When given both options it looks like the gnu linker just ignores
-export-dynamic.

Unfortunately some versions of lld (https://lld.llvm.org/) have a bug
that causes it to try to create a dynamic symbol table in the output
.o file and ends up corrupting it
(https://bugs.llvm.org/show_bug.cgi?id=43552). Current (git) version
of lld now issues an error.

This patch filters out -export-dynamic from $(LDFLAGS) when using
-r. With this patch I can build dpdk with lld.

Fixes: 3d781ca328 ("mk: do post processing on objects that register a driver")
Cc: stable@dpdk.org

Signed-off-by: Rafael Ávila de Espíndola <espindola@scylladb.com>
2020-01-20 00:00:28 +01:00
..
arch replace license text with SPDX tag on PPC files 2019-08-05 17:17:09 +02:00
exec-env eal: add OS specific header file 2019-04-03 01:11:56 +02:00
internal mk: avoid combining -r and -export-dynamic linker options 2020-01-20 00:00:28 +01:00
machine config: add eMAG 2019-11-21 00:30:39 +01:00
target/generic build: support building ABI versioned files twice 2019-10-27 12:49:28 +01:00
toolchain mk: disable OCTEON TX2 on old compilers 2019-11-08 16:40:29 +01:00
rte.app.mk net/iavf/base: move to drivers common directory 2020-01-17 19:46:02 +01:00
rte.bsdmodule.mk
rte.combinedlib.mk
rte.cpuflags.mk eal/x86: check rdrand and rdseed 2019-06-04 00:23:04 +02:00
rte.extapp.mk
rte.extlib.mk
rte.extobj.mk
rte.extshared.mk
rte.extsubdir.mk use SPDX tag for 6WIND copyrighted files 2018-05-25 10:47:06 +02:00
rte.gnuconfigure.mk
rte.helper.mk mk: introduce helper to check compiler argument 2019-04-15 22:55:56 +02:00
rte.hostapp.mk
rte.hostlib.mk
rte.install.mk
rte.lib.mk build: fix soname info for 19.11 compatibility 2019-12-19 16:18:21 +01:00
rte.module.mk
rte.obj.mk
rte.sdkbuild.mk test: move to app directory 2019-02-26 15:29:27 +01:00
rte.sdkconfig.mk build: use version number from config file 2019-03-27 09:43:47 +01:00
rte.sdkdepdirs.mk
rte.sdkdoc.mk doc: add search engine for API 2019-07-08 22:13:20 +02:00
rte.sdkexamples.mk
rte.sdkgcov.mk
rte.sdkinstall.mk mk: fix custom kernel directory name 2019-07-22 10:00:01 +02:00
rte.sdkroot.mk mk: use linux and freebsd in config names 2019-03-12 23:05:06 +01:00
rte.sdktest.mk test: move to app directory 2019-02-26 15:29:27 +01:00
rte.shared.mk
rte.subdir.mk
rte.vars.mk