int
do_test (void)
{
  int res = 0;
  int val;

  /* First test: check whether .protected is handled correctly by the
     assembler/linker.  The uses of `protlocal' in the DSOs and in the
     main program should all be resolved with the local definitions.  */
  val = protlocal () + calllocal1 () + calllocal2 ();
  if (val != 0x155)
    {
      puts ("\
The handling of `.protected' seems to be implemented incorrectly: giving up");
      abort ();
    }
예제 #2
0
파일: vismod2.c 프로젝트: lattera/glibc
int
calllocal2 (void)
{
  return protlocal () + 0x100;
}
예제 #3
0
파일: vismod1.c 프로젝트: Boshin/workspace
int
calllocal1 (void)
{
  return protlocal () + 0x10;
}