glibc/elf/tst-piemod1.c
Ulrich Drepper f17ed1a9ee [BZ #262]
Update.
2004-07-15  Jakub Jelinek  <jakub@redhat.com>

	[BZ #262]
	* sysdeps/i386/elf/start.S (_start): Use @GOT instead of @GOTOFF
	for main.
	* elf/Makefile: Add rules to build and run tst-pie1.
	* elf/tst-pie1.c: New test.
	* elf/tst-piemod1.c: New file.
2004-07-16 17:56:45 +00:00

21 lines
195 B
C

#include <stdio.h>
int
foo (void)
{
return 21;
}
int
main (void)
{
int val = foo ();
if (val != 34)
{
printf ("foo () returned %d\n", val);
return 1;
}
return 0;
}