mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-25 06:20:06 +00:00
f17ed1a9ee
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.
21 lines
195 B
C
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;
|
|
}
|