From: Thomas Monjalon <thomas@monjalon.net>
To: "Rafael Ávila de Espíndola" <espindola@scylladb.com>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] [PATCH v2] Don't combine -r and -export-dynamic linker options
Date: Sun, 19 Jan 2020 23:40:46 +0100 [thread overview]
Message-ID: <2104216.AOvM4ru3NT@xps> (raw)
In-Reply-To: <20191212175312.343458-1-espindola@scylladb.com>
12/12/2019 18:53, Rafael Ávila de Espíndola:
> 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.
>
> Signed-off-by: Rafael Ávila de Espíndola <espindola@scylladb.com>
Applied, thanks
prev parent reply other threads:[~2020-01-19 22:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-12 17:53 Rafael Ávila de Espíndola
2020-01-19 22:40 ` Thomas Monjalon [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2104216.AOvM4ru3NT@xps \
--to=thomas@monjalon.net \
--cc=dev@dpdk.org \
--cc=espindola@scylladb.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).