On Thu, Oct 28, 2010 at 7:08 PM, Zach Welch <[email protected]> wrote:
>
> /home/zwelch/libunwind/src/.libs/libunwind.a(Lglobal.o):(.data+0x4):
> multiple definition of `_UIarm_unwind_method'
> ../src/.libs/libunwind-arm.a(Gglobal.o):(.data+0x4): first defined here
> collect2: ld returned 1 exit status

I think this is coming from:

include/tdep-arm/libunwind_i.h:

#define unwi_unwind_method   UNWI_ARCH_OBJ(unwind_method)
extern int unwi_unwind_method;

src/arm/Gglobal.c:

/* Unwinding methods to use. See UNW_METHOD_ enums */
HIDDEN int unwi_unwind_method = UNW_ARM_METHOD_ALL;

I think the "extern int" declaration above is problematic (drops the
HIDDEN attribute).

 -Arun

_______________________________________________
Libunwind-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/libunwind-devel

Reply via email to