]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
valgrind: Make local functions static to avoid assembler error
authorRandy MacLeod <Randy.MacLeod@windriver.com>
Mon, 22 Oct 2018 04:21:16 +0000 (00:21 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 25 Oct 2018 13:53:44 +0000 (14:53 +0100)
commit1c03ada82de69a7f04ebb191fa560c02a2d29ea7
tree87216dc110f6c7d643d29b30ddd02ee393620c0c
parent60bdb3d6a18e2d136df3590f04df55a9a3a045f9
valgrind: Make local functions static to avoid assembler error

Avoid mips32 x-compiler warnings such as:

| ../../../valgrind-3.14.0/helgrind/tests/annotate_hbefore.c:360:6: warning: no previous prototype for 'do_signal' [-Wmissing-prototypes]
|  void do_signal ( UWord* w )
|       ^~~~~~~~~

by making functions and global variables that are file scope be static
and more importantly also avoid an assembler error:

/tmp/cce22iiw.s: Assembler messages:
/tmp/cce22iiw.s:446: Error: symbol `exit_0' is already defined
/tmp/cce22iiw.s:448: Error: symbol `exit' is already defined
/tmp/cce22iiw.s:915: Error: symbol `exit_0' is already defined
/tmp/cce22iiw.s:917: Error: symbol `exit' is already defined

(From OE-Core rev: 5fface331c46b809c10b4f3d65904534d6933896)

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/valgrind/valgrind/0001-Make-local-functions-static-to-avoid-assembler-error.patch [new file with mode: 0644]
meta/recipes-devtools/valgrind/valgrind_3.14.0.bb