gcc-4.6: Backport fix for PR32219
authorKhem Raj <raj.khem@gmail.com>
Thu, 20 Oct 2011 19:18:14 +0000 (12:18 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 24 Oct 2011 16:27:17 +0000 (17:27 +0100)
commit38a04c302543574955e552a270a05b115041949f
tree155427048c9431bf2d9d8c456a64fc49512d614b
parent4553928154680172c51fd875e36641df855e5147
gcc-4.6: Backport fix for PR32219

This fix is needed for gold to work. Otherwise
connman fails to build since it used hidden weak
symbols.

See

http://gcc.gnu.org/bugzilla/PR32219
http://www.cygwin.com/ml/binutils/2008-02/msg00239.html

The fix proposed to gcc had reviews which were not addressed hence the
patch is not yet
applied to gcc upstream.

connman can also have workaround by changing the visibility of these
symbols to be default
 __attribute__ ((weak, visibility("hidden")))

to

 __attribute__ ((weak, visibility("default")))

in include/plugin.h

(From OE-Core rev: 3cb2b003db7371b3a47d02c08352a262e1e419b4)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/gcc/gcc-4.6.inc
meta/recipes-devtools/gcc/gcc-4.6/pr32219.patch [new file with mode: 0644]