[PATCH] sim: make sure to include strsignal prototype
Mike Frysinger
vapier@gentoo.org
Sat Mar 24 18:18:00 GMT 2012
On Saturday 24 March 2012 02:48:45 Hans-Peter Nilsson wrote:
> On Sat, 24 Mar 2012, Mike Frysinger wrote:
> > > Did you "make check-sim RUNTESTFLAGS=--target_board=cris-sim"?
> > > The warning message indicates the absence of that option or the
> > > wrong baseboard.
> >
> > using those flags makes most run. the linker segfaults when working on
> > helloaout.c, so that can't be good:
> >
> > $ cris-elf-gcc ../../sim/testsuite/sim/cris/c/helloaout.c \
> >
> > -O2 -L/usr/local/src/gnu/sourceware/build/build-cris/ld -sim3 \
> > -Wl,-mcrisaout -sim -Ttext=0 -lm -o helloaout.c.x -Bld
> >
> > collect2: ld terminated with signal 11 [Segmentation fault], core dumped
>
> Ouch. I'd be happy to process a ld PR for this, or I'll get to
> it eventually. Not that supporting a.out is of any particular
> interest, but it shouldn't pollute the test-results.
http://sourceware.org/bugzilla/show_bug.cgi?id=13900
> > i did some work about two years ago specifically
> > to avoid having to mess with dejagnu just to run `make check-sim`.
>
> I guess you missed fixing CRIS then. :)
not really ... the code fixed up was common code to automatically select the
locally compiled `run` binary if no sim was specified
> I'm not overexcited about the crusade making "sim" a special
> case, when it works using the same dejagnu spell as anything
> else. So _no_ adding compiler flags to the individual
> test-cases for the globally needed options.
i don't know what you're referring to at all here
> > looks like the difference are just compiler flags ?
>
> Linker flags, pointing to the right library, stuff like that...
> See the baseboard file. Different options for *-linux-gnu than
> for *-elf though.
i don't think it's unreasonable for the cris sim exp to set up sane defaults
based on the target. you know if the sim was configured for *-elf or *-linux-
gnu by default.
> (Yes, the sim can run trivial cris*-linux-gnu -static programs.)
and the Blackfin sim can handle static or dynamic Linux userland code in
addition to booting a Linux kernel or just running newlib/libgloss apps.
$ echo 'main(){puts("HI");}' | bfin-linux-uclibc-gcc -x c - -o a.out -static
$ bfin-elf-run --env user ./a.out
HI
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20120324/d09cc11b/attachment.sig>
More information about the Gdb-patches
mailing list