* binutils-all/objcopy.exp: If assembly fails, call unresolved.
Test running objcopy and strip on a final executable. * binutils-all/testprog.c: New file. * config/default.exp (STRIP, STRIPFLAGS): Define. (binutils_compile): New procedure. * lib/utils-lib.exp (default_binutils_compile): New procedure.
This commit is contained in:
parent
29386972b9
commit
febc1fc3e3
4 changed files with 190 additions and 3 deletions
28
binutils/testsuite/binutils-all/testprog.c
Normal file
28
binutils/testsuite/binutils-all/testprog.c
Normal file
|
@ -0,0 +1,28 @@
|
|||
/* This program is used to test objcopy and strip. */
|
||||
|
||||
int common;
|
||||
int global = 1;
|
||||
static int local = 2;
|
||||
static char string[] = "string";
|
||||
|
||||
int
|
||||
fn ()
|
||||
{
|
||||
return 3;
|
||||
}
|
||||
|
||||
int
|
||||
main ()
|
||||
{
|
||||
if (common != 0
|
||||
|| global != 1
|
||||
|| local != 2
|
||||
|| strcmp (string, "string") != 0)
|
||||
{
|
||||
printf ("failed\n");
|
||||
exit (1);
|
||||
}
|
||||
|
||||
printf ("ok\n");
|
||||
exit (0);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue