All of lore.kernel.org
 help / color / mirror / Atom feed
From: Saul Wold <sgw@linux.intel.com>
To: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Cc: Christopher Larson <chris_larson@mentor.com>
Subject: Re: [PATCH v2] elfutils: fix for dso link change in recent ld
Date: Tue, 03 Jan 2012 16:02:58 -0800	[thread overview]
Message-ID: <4F039732.4050808@linux.intel.com> (raw)
In-Reply-To: <1325196879-11092-1-git-send-email-kergoth@gmail.com>

On 12/29/2011 02:14 PM, Christopher Larson wrote:
> From: Christopher Larson<chris_larson@mentor.com>
>
> This patch makes the link to the dependencies of libdw explicit, as recent ld
> no longer implicitly links them. See
> http://lists.fedoraproject.org/pipermail/devel/2010-March/133601.html as
> a similar example of the error message you can encounter without this patch,
> and https://fedoraproject.org/wiki/UnderstandingDSOLinkChange and
> https://fedoraproject.org/wiki/Features/ChangeInImplicitDSOLinking for more
> details.
>
> Signed-off-by: Christopher Larson<chris_larson@mentor.com>
> ---
>   .../elfutils/elfutils/dso-link-change.patch        |   32 ++++++++++++++++++++
>   meta/recipes-devtools/elfutils/elfutils_0.148.bb   |    5 ++-
>   2 files changed, 35 insertions(+), 2 deletions(-)
>   create mode 100644 meta/recipes-devtools/elfutils/elfutils/dso-link-change.patch
>
> diff --git a/meta/recipes-devtools/elfutils/elfutils/dso-link-change.patch b/meta/recipes-devtools/elfutils/elfutils/dso-link-change.patch
> new file mode 100644
> index 0000000..d0cd3ed
> --- /dev/null
> +++ b/meta/recipes-devtools/elfutils/elfutils/dso-link-change.patch
> @@ -0,0 +1,32 @@
> +Upstream-Status: Pending
> +
> +# This patch makes the link to the dependencies of libdw explicit, as recent
> +# ld no longer implicitly links them. See
> +# http://lists.fedoraproject.org/pipermail/devel/2010-March/133601.html as
> +# a similar example of the error message you can encounter without this patch,
> +# and https://fedoraproject.org/wiki/UnderstandingDSOLinkChange and
> +# https://fedoraproject.org/wiki/Features/ChangeInImplicitDSOLinking for more
> +# details.
> +
> +--- elfutils-0.148.orig/src/Makefile.am
> ++++ elfutils-0.148/src/Makefile.am
> +@@ -86,7 +86,7 @@ libdw = ../libdw/libdw.a $(zip_LIBS) $(l
> + libelf = ../libelf/libelf.a
> + else
> + libasm = ../libasm/libasm.so
> +-libdw = ../libdw/libdw.so
> ++libdw = ../libdw/libdw.so $(zip_LIBS) $(libelf) $(libebl) -ldl
> + libelf = ../libelf/libelf.so
> + endif
> + libebl = ../libebl/libebl.a
> +--- elfutils-0.148.orig/tests/Makefile.am
> ++++ elfutils-0.148/tests/Makefile.am
> +@@ -172,7 +172,7 @@ libdw = ../libdw/libdw.a $(zip_LIBS) $(l
> + libelf = ../libelf/libelf.a
> + libasm = ../libasm/libasm.a
> + else
> +-libdw = ../libdw/libdw.so
> ++libdw = ../libdw/libdw.so $(zip_LIBS) $(libelf) $(libebl) -ldl
> + libelf = ../libelf/libelf.so
> + libasm = ../libasm/libasm.so
> + endif
> diff --git a/meta/recipes-devtools/elfutils/elfutils_0.148.bb b/meta/recipes-devtools/elfutils/elfutils_0.148.bb
> index 0f4e8ca..710959a 100644
> --- a/meta/recipes-devtools/elfutils/elfutils_0.148.bb
> +++ b/meta/recipes-devtools/elfutils/elfutils_0.148.bb
> @@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3\
>                       file://EXCEPTION;md5=570adcb0c1218ab57f2249c67d0ce417"
>   DEPENDS = "libtool bzip2 zlib"
>
> -PR = "r4"
> +PR = "r5"
>
>   SRC_URI = "https://fedorahosted.org/releases/e/l/elfutils/elfutils-${PV}.tar.bz2"
>
> @@ -29,7 +29,8 @@ SRC_URI += "\
>   	file://elfutils-fsize.patch \
>   	file://remove-unused.patch \
>   	file://mempcpy.patch \
> -	file://fix_for_gcc-4.7.patch\
> +	file://fix_for_gcc-4.7.patch \
> +	file://dso-link-change.patch \
>   "
>   # Only apply when building uclibc based target recipe
>   SRC_URI_append_libc-uclibc = " ${@['', 'file://uclibc-support.patch']['${PN}' == '${BPN}']}"

Merged to OE-Core

Thanks
	Sau!



      reply	other threads:[~2012-01-04  0:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-29 22:14 [PATCH v2] elfutils: fix for dso link change in recent ld Christopher Larson
2012-01-04  0:02 ` Saul Wold [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=4F039732.4050808@linux.intel.com \
    --to=sgw@linux.intel.com \
    --cc=chris_larson@mentor.com \
    --cc=openembedded-core@lists.openembedded.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.