glibc/elf/testobj4.c
Ulrich Drepper d3556ac929 Update.
* elf/dl-close.c: Handle failed loads which would have gone in the
	global scope correctly.

	* elf/testobj1.c: Include stdlib.h to get NULL defined.
	* elf/testobj2.c: Likewise.
	* elf/testobj3.c: Likewise.
	* elf/testobj4.c: Likewise.
	* elf/testobj5.c: Likewise.

	* iconvdata/sami-ws2.c: New file.
1999-01-20 18:32:29 +00:00

24 lines
284 B
C

#include <dlfcn.h>
#include <stdlib.h>
int
obj4func1 (int a __attribute__ ((unused)))
{
return 55;
}
int
obj4func2 (int a)
{
return foo (a) + 43;
}
int
preload (int a)
{
int (*fp) (int) = dlsym (RTLD_NEXT, "preload");
if (fp != NULL)
return fp (a) + 10;
return 10;
}