[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gold/11718] GOLD produces nonworking Linux shared librarys
From: |
dougkwan at google dot com |
Subject: |
[Bug gold/11718] GOLD produces nonworking Linux shared librarys |
Date: |
3 Aug 2010 20:11:57 -0000 |
------- Additional Comments From dougkwan at google dot com 2010-08-03 20:11
-------
Your testcase needs other libraries. Can you attached two copies of
eina_chained_mempool.so, one linked with gold and the ld?
(In reply to comment #0)
> I'm try build modules for eina:
>
> arm-as eina_chained_mempool.s -o chain.o
> arm-ld chain.o --eh-frame-hdr -shared -dynamic-linker /lib/ld-linux.so.3 -X -m
> armelf_linux_eabi -o
> ./shared/build/eina/src/modules/mp/chained_pool/.libs/eina_chained_mempool.so
> /usr/lib/crti.o /usr/lib/gcc/arm-linux-gnueabi/4.3.2/crtbeginS.o
> -L/home/kursh/arm/arm-linux-gnueabi/lib -L/home/kursh/arm/evas/shared/run/lib
> -L/usr/lib/gcc/arm-linux-gnueabi/4.3.2
> -L/usr/lib/gcc/arm-linux-gnueabi/4.3.2/../../../../arm-linux-gnueabi/lib -
L/lib
> -L/usr/lib -rpath /home/kursh/arm/evas/shared/run/lib -leina -ldl -lrt -lm
> -soname eina_chained_mempool.so -lgcc --as-needed -lgcc_s --no-as-needed
> -lpthread -lc -lgcc --as-needed -lgcc_s --no-as-needed
> /usr/lib/gcc/arm-linux-gnueabi/4.3.2/crtendS.o /usr/lib/crtn.o
>
> A shared library linked with gold (GNU Binutils 2.20.51.20100618) causes
> segmentation fault, because GOT entry for some function is zero, while shared
> library linked not gold version ld, all work fine.
> Gdb says:
> 0x00000000 in ?? ()
> (gdb) bt
> #0 0x00000000 in ?? ()
> #1 0x40023edc in _GLOBAL_OFFSET_TABLE_ () from
/home/.../eina_chained_mempool.so
>
> Bug maybe related to PR 11172.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11718
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.