mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-18 02:50:09 +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
|
|
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;
|
|
}
|