Re: Dynamic linking is go (again)
Marcus Comstedt <[email protected]>
| Newsgroups | gmane.os.netbsd.ports.dreamcast,gmane.os.netbsd.ports.sh3 |
|---|---|
| Message-ID | <[email protected]> |
Izumi Tsutsui <[email protected]> writes: > I got the following warnings: > --- > /usr/local/bin/shle--netbsdelf-gcc -O -Wall -Wstrict-prototypes \ > -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-uninitialized \ > -Werror -fpic -DELFSIZE=32 -DLIBDIR=\"/usr/lib\" \ > -D_PATH_RTLD=\"/libexec/ld.elf_so\" -I/usr/src/libexec/ld.elf_so \ > -DRTLD_LOADER -D_RTLD_SOURCE -nostdinc -isystem \ > /export/NetBSD/dreamcast/root/usr/include -c \ > /usr/src/libexec/ld.elf_so/arch/sh3/mdreloc.c > /usr/src/libexec/ld.elf_so/arch/sh3/mdreloc.c:20: \ > warning: no previous prototype for `_rtld_relocate_nonplt_self' > /usr/src/libexec/ld.elf_so/arch/sh3/mdreloc.c:185: \ > warning: function declaration isn't a prototype > /usr/src/libexec/ld.elf_so/arch/sh3/mdreloc.c:211: \ > warning: function declaration isn't a prototype > *** Error code 1 Ah, you were compiling with a different CFLAGS. Thanks for fixing the warnings. I discovered that _rtld_relocate_plt_object wasn't actually used though, so I removed both the declaration and the definition. ^^;; // Marcus