can't handle reloc type 0x6
Peter S. Mazinger
ps.m at gmx.net
Fri Dec 23 20:38:29 UTC 2005
On Thu, 22 Dec 2005 pcj at uclibc.sez.to wrote:
> I also observed the "can't handle reloc type 0x6" message on PowerPC
> when running programs linked against libm.so and dug in a little
> deeper.
>
> I found two separate problems.
>
> First, the architecture-optimized math routines in libm/powerpc/*.c
> are not getting compiled with -fpic. The following Makefile patch
> solves that problem:
>
> --- libm/powerpc/Makefile.arch~ 2005-12-21 00:10:22.000000000 -0800
> +++ libm/powerpc/Makefile.arch 2005-12-22 12:06:31.000000000 -0800
> @@ -13,7 +13,11 @@
>
> libm_ARCH_OBJS:=$(libm_ARCH_OBJ)
>
> -libm-a-$(DO_C99_MATH)+=$(libm_ARCH_OBJS)
> +ifeq ($(DOPIC),y)
> +libm-a-$(DO_C99_MATH) += $(libm_ARCH_OBJS:.o=.os)
> +else
> +libm-a-$(DO_C99_MATH) += $(libm_ARCH_OBJS)
> +endif
> libm-so-$(DO_C99_MATH)+=$(libm_ARCH_OBJS:.o=.os)
>
> libm-multi-$(DO_C99_MATH)+=$(libm_ARCH_SRC)
good catch, thx, applied
Peter
--
Peter S. Mazinger <ps dot m at gmx dot net> ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08 BB6E C389 975E A5F0 59F2
More information about the uClibc
mailing list