Alias _obstack_free to fix binutils build

Submitted by Dmitriy Falko on June 17, 2016, 9:33 a.m. | Patch ID: 125113

Details

Message ID 1466156019-32399-1-git-send-email-d.falko@partner.samsung.com
State New
Headers show

Commit Message

Dmitriy Falko June 17, 2016, 9:33 a.m.
Signed-off-by: Dmitriy Falko <d.falko@partner.samsung.com>
---
 libc/misc/gnu/obstack.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch hide | download patch | download mbox

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)

Comments

Ross Burton June 17, 2016, 10:15 a.m.
Hi Dmitry,

Can you re-send this as a patch against oe-core itself instead of
(presumably) binutils, explaining why it breaks for you and why this is the
correct fix?

Thanks,
Ross

On 17 June 2016 at 10:33, Dmitriy Falko <d.falko@partner.samsung.com> wrote:

> Signed-off-by: Dmitriy Falko <d.falko@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
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>