[OE-core] [PATCH] meta: fix bfd "cannot make copy relocation for protected symbol" issues

Burton, Ross ross.burton at intel.com
Fri Jul 21 13:48:15 UTC 2017


On 20 July 2017 at 10:52, <liu.ming50 at gmail.com> wrote:

> +++ b/meta/classes/bfd-binding-now.bbclass
> @@ -0,0 +1,4 @@
> +# Workaround for some ARCHs do not support bfd lazy binding well
> +# Refer to: https://bugzilla.yoctoproject.org/show_bug.cgi?id=11679
> +
> +TARGET_LDFLAGS_append = "${@bb.utils.contains('DISTRO_FEATURES',
> 'ld-is-gold', ' -Wl,-z,relro,-z,now -fuse-ld=bfd ', '', d)}"
>

This is pretty ugly.

Does this tell us that maybe gold should be considered opt-in on a
per-recipe basis instead of used by default?

Can you instead have a .inc file which fiddles the flag for all the recipes
from outside the recipes? See eg security_flags.inc.

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20170721/5671a3e9/attachment-0002.html>


More information about the Openembedded-core mailing list