[Prev][Next][Index][Thread]
Compiling rtld support -- bug?
This question is not directly related to my previous one. (I
determined that you do need the supplied ldscript, but the
documentation does not say why.)
After enabling the rtld module and reconfiguring the oskit, I get the
following errors while making rtld.o:
gcc -c -o rtld.o -DOSKIT -DFREEBSD_ELF -MD -DHAVE_CONFIG_H -DOSKIT_X86 -DOSKIT_X86_PC -DDEBUG -I. -I../rtld -I../rtld/i386 -I- -I../freebsd/libc/include -I../freebsd/3.x/src/include -I../freebsd/3.x/src/sys -I../freebsd/3.x/src/lib/libc/i386 -I../freebsd/libc/objinclude -I../examples/dyntest -I.. -I.. -nostdinc -Wall -fno-strict-aliasing -O -g rtld.c
rtld.c: In function `digest_phdr':
rtld.c:504: warning: implicit declaration of function `trunc_page'
rtld.c:507: warning: implicit declaration of function `round_page'
They look like ordinary warnings, but trunc_page and round_page are
macros that just happen not to be defined in any of the #included
header files. (Well, freebsd/3.x/src/sys/sys/param.h includes
freebsd/libc/objinclude/machine/param.h which defines the needed
macros only if OSKIT is *not* defined.)
I guess nobody else is using the rtld support. What is the proper way
to fix this?
Matthew
Follow-Ups: