Subject: Re: Dynamic linking is go (again)
To: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
From: Marcus Comstedt <marcus@mc.pp.se>
List: port-sh3
Date: 07/05/2003 22:48:07
Izumi Tsutsui <tsutsui@ceres.dti.ne.jp> 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