On Fri, Oct 11, 2013 at 2:39 PM, Brooks Moses <bmo...@google.com> wrote:
> I'm trying to reproduce a test failure outside the Dejagnu testsuite,
> and I noticed that the file I'm trying to recompile is linked with a
> gcc_tg.o file.  Based on the missing-symbol errors I get when I don't
> include it, it seems to provide things like __wrap_main and so forth.
>
> Where on earth does this gcc_tg.o file come from?  I'm completely lost
> here -- I can't find any log that indicates it getting built, or any
> reference to "gcc_tg" in the source tree.  And web-searching is no
> help either; the only reference I found was someone else saying they
> didn't know where it came from.

It comes from dejagnu and only when needs_status_wrapper is set to 1
in your board file like I have for a bare metal board:
   set_board_info needs_status_wrapper 1
dejagnu calls build_wrapper inside /usr/share/dejagnu/libgloss.exp
which does the building and the setting up the wrapping feature.

Thanks,
Andrew Pinski


>
> Thanks for any enlightenment,
> - Brooks

Reply via email to