mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
Test modules for DF_1_NODELETE test.
This commit is contained in:
parent
3c172bd1b9
commit
26a676d0aa
3 changed files with 27 additions and 0 deletions
19
elf/nodel2mod1.c
Normal file
19
elf/nodel2mod1.c
Normal file
|
@ -0,0 +1,19 @@
|
|||
#include <stdlib.h>
|
||||
void
|
||||
foo (void)
|
||||
{
|
||||
exit (0);
|
||||
}
|
||||
|
||||
void
|
||||
__attribute__((destructor))
|
||||
bar (void)
|
||||
{
|
||||
static int i;
|
||||
foo ();
|
||||
++i;
|
||||
}
|
||||
void
|
||||
baz (void)
|
||||
{
|
||||
}
|
7
elf/nodel2mod2.c
Normal file
7
elf/nodel2mod2.c
Normal file
|
@ -0,0 +1,7 @@
|
|||
void
|
||||
__attribute__((constructor))
|
||||
xxx (void)
|
||||
{
|
||||
extern void baz (void);
|
||||
baz ();
|
||||
}
|
1
elf/nodel2mod3.c
Normal file
1
elf/nodel2mod3.c
Normal file
|
@ -0,0 +1 @@
|
|||
int x;
|
Loading…
Add table
Reference in a new issue