mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-10 15:20:10 +00:00
d3556ac929
* 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.
24 lines
284 B
C
24 lines
284 B
C
#include <dlfcn.h>
|
|
#include <stdlib.h>
|
|
|
|
int
|
|
obj3func1 (int a __attribute__ ((unused)))
|
|
{
|
|
return 44;
|
|
}
|
|
|
|
int
|
|
obj3func2 (int a)
|
|
{
|
|
return foo (a) + 42;
|
|
}
|
|
|
|
int
|
|
preload (int a)
|
|
{
|
|
int (*fp) (int) = dlsym (RTLD_NEXT, "preload");
|
|
if (fp != NULL)
|
|
return fp (a) + 10;
|
|
return 10;
|
|
}
|