[OE-core] [PATCH] Alias _obstack_free to fix binutils build

Khem Raj raj.khem at gmail.com
Fri Jun 17 21:55:25 UTC 2016


On Fri, Jun 17, 2016 at 5:41 AM, Dmitriy Falko
<d.falko at partner.samsung.com> wrote:
> Binutils as(sembler) trying to referency _obstack_free when building
> it for ARM uclibc(not cross compile version).
>
> Enables it(just alias to uclibc obstack_free) to fix build of binutils.

this is ok

>
> [YOCTO #9781]
>
> Signed-off-by: Dmitriy Falko <d.falko at partner.samsung.com>
> ---
>  meta/recipes-core/uclibc/uclibc-git.inc            |  1 +
>  ...Alias-_obstack_free-to-fix-binutils-build.patch | 31 ++++++++++++++++++++++
>  2 files changed, 32 insertions(+)
>  create mode 100644 meta/recipes-core/uclibc/uclibc-git/0001-Alias-_obstack_free-to-fix-binutils-build.patch
>
> diff --git a/meta/recipes-core/uclibc/uclibc-git.inc b/meta/recipes-core/uclibc/uclibc-git.inc
> index a56fa7c..ea1d37d 100644
> --- a/meta/recipes-core/uclibc/uclibc-git.inc
> +++ b/meta/recipes-core/uclibc/uclibc-git.inc
> @@ -6,6 +6,7 @@ FILESEXTRAPATHS =. "${FILE_DIRNAME}/uclibc-git:"
>
>  SRC_URI = "git://uclibc-ng.org/git/uclibc-ng \
>          file://0001-Disable-lrount_tes-function.patch \
> +        file://0001-Alias-_obstack_free-to-fix-binutils-build.patch \
>          file://uClibc.machine \
>          file://uClibc.distro \
>          file://obstack.cfg \
> diff --git a/meta/recipes-core/uclibc/uclibc-git/0001-Alias-_obstack_free-to-fix-binutils-build.patch b/meta/recipes-core/uclibc/uclibc-git/0001-Alias-_obstack_free-to-fix-binutils-build.patch
> new file mode 100644
> index 0000000..8f97ab8
> --- /dev/null
> +++ b/meta/recipes-core/uclibc/uclibc-git/0001-Alias-_obstack_free-to-fix-binutils-build.patch
> @@ -0,0 +1,31 @@
> +From f795fc77a2cf90ce77707faddc93a51f736a4553 Mon Sep 17 00:00:00 2001
> +From: Dmitriy Falko <d.falko at partner.samsung.com>
> +Date: Fri, 17 Jun 2016 11:31:02 +0300
> +Subject: [PATCH] Alias _obstack_free to fix binutils build
> +
> +Signed-off-by: Dmitriy Falko <d.falko at partner.samsung.com>
> +---
> + libc/misc/gnu/obstack.c | 4 ++--
> + 1 file changed, 2 insertions(+), 2 deletions(-)
> +
> +diff --git a/libc/misc/gnu/obstack.c b/libc/misc/gnu/obstack.c
> +index 38cfd83..2689263 100644
> +--- a/libc/misc/gnu/obstack.c
> ++++ b/libc/misc/gnu/obstack.c
> +@@ -385,11 +385,11 @@ obstack_free (struct obstack *h, void *obj)
> +     abort ();
> + }
> +
> +-# if 0
> ++
> + /* Older versions of libc used a function _obstack_free intended to be
> +    called by non-GCC compilers.  */
> + strong_alias (obstack_free, _obstack_free)
> +-# endif
> ++
> +
> + int
> + _obstack_memory_used (struct obstack *h)
> +--
> +2.7.4
> +
> --
> 2.7.4
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core



More information about the Openembedded-core mailing list