[Skiboot] [PATCH] gcov: link in ctors* as newer GCC doesn't group them all

Stewart Smith stewart at linux.ibm.com
Fri Nov 9 16:54:26 AEDT 2018


Stewart Smith <stewart at linux.ibm.com> writes:
> It seems that newer toolchains get us multiple ctors sections to link in
> rather than just one. If we discard them (as we were doing), then we
> don't have a working gcov build (and we get the "doesn't look sane"
> warning on boot).
>
> So, include ctors* and all is well.
>
> Signed-off-by: Stewart Smith <stewart at linux.ibm.com>
> ---
>  skiboot.lds.S | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Merged to master as of 971a1a0a620a8133c02206571f37a869c2cc06ef and now
I can do gcov build and runs again (especially useful with the op-test
stuff I've been working on to pull out the skiboot memory region to
throw into the extract-gcov.c code to then get code coverage report from
a op-test run)

-- 
Stewart Smith
OPAL Architect, IBM.



More information about the Skiboot mailing list