[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Libunwind-devel] Build glibc linking libunwind

From: Fabio
Subject: [Libunwind-devel] Build glibc linking libunwind
Date: Sat, 24 Sep 2011 23:46:05 +0200

Hi all,
I am trying to build glibc and link libunwind to get a backtrace at
the beginning of some glibc function like strcpy for example but I
can't get them to build.
I include -lunwind in the CFLAGS and I export
LD_LIBRARY_PATH=/usr/local/lib, but when it comes to build it

usr/bin/gcc-4.3   -nostdlib -nostartfiles -shared -I/usr/local/lib      \
          -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both -Wl,-z,defs
-Wl,--verbose 2>&1 |    \
          LC_ALL=C \
          sed -e '/^=========/,/^=========/!d;/^=========/d'    \
              -e 's/\. = .* + SIZEOF_HEADERS;/& _begin = . - SIZEOF_HEADERS;/' \
          > /home/wintermute/tesi/glibc/2.14/custom/glibc-build/elf/
/usr/bin/gcc-4.3   -nostdlib -nostartfiles -shared -I/usr/local/lib -o
          -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both -Wl,-z,defs       
          -Wl, -T
/home/wintermute/tesi/glibc/2.14/custom/glibc-build/elf/librtld.os: In
function `strcpy':
undefined reference to `_Ux86_getcontext'
undefined reference to `_ULx86_init_local'
collect2: ld returned 1 exit status

Am I missing something? Sorry for asking a dumb question and thanks in advance.

Kind regards,
Fabio Pozzi

reply via email to

[Prev in Thread] Current Thread [Next in Thread]