[BusyBox] shared lib problem, on MIPS
Paul Fox
pgf at brightstareng.com
Mon Nov 24 17:20:35 UTC 2003
> >>>>> On Thu, 20 Nov 2003 14:56:16 -0500, Paul Fox <pgf at brightstareng.com> said:
> pgf> shared libs aren't working in my build, which is configured as
> pgf> generic mips, with an MMU -- the processor is an AMD au1100. the
> pgf> symptom is a segfault when i run any dynamically linked binary.
>
> If you were using uClibc 0.9.22 or 0.9.23, I suppose it's uClibc's
> problem.
>
> >From uClibc 0.9.22, ld.so is compiled with -O0. This prevents
> 'inline' optimizations and MIPS ld.so does not work if inline
> functions are not really inlined.
i'm using the current snapshot. a full rebuild seems to have fixed
my problem -- perhaps i botched my config the first time through, and
didn't clean up properly.
thanks for your help,
paul
>
> This is a patch for quick fix. Please try it.
>
> diff -urN uClibc-0.9.23.org/ldso/ldso/Makefile uClibc-0.9.23/ldso/ldso/Makefile
> --- uClibc-0.9.23.org/ldso/ldso/Makefile Wed Nov 12 08:40:10 2003
> +++ uClibc-0.9.23/ldso/ldso/Makefile Tue Nov 18 13:08:03 2003
> @@ -40,8 +40,12 @@
> ifeq ($(TARGET_ARCH),powerpc)
> XXFLAGS+=-Os -g3
> else
> +ifeq ($(TARGET_ARCH),mips)
> +XXFLAGS+=-Os -g3
> +else
> XXFLAGS+=-O0 -g3
> endif
> +endif
>
> XXFLAGS+=$(shell $(CC) -print-search-dirs | sed -ne "s/install: *\(.*\)/-I\1include/gp")
> LDFLAGS=$(CPU_LDFLAGS-y) -shared --warn-common --export-dynamic --sort-common \
> ---
> Atsushi Nemoto
=---------------------
paul fox, pgf at brightstareng.com
More information about the busybox
mailing list