Linking problem with lld

Willem Jan Withagen wjw at digiware.nl
Sat Mar 2 16:51:47 UTC 2019


On 2-3-2019 16:21, Tijl Coosemans wrote:
> On Sat, 2 Mar 2019 14:21:57 +0100 Willem Jan Withagen <wjw at digiware.nl>
> wrote:
>> Now if I look in librados.so for rados_create that gives:
>> ====
>>   > objdump -t librados.so.2.0.0 | grep rados_create
> You want to look at dynamic symbols so "objdump -T".
Could it be that the objectfile already has something "wrong"to start with?

[~/master] wjw at cephdev.digiware.nl> objdump -t 
./build/src/librados/CMakeFiles/librados.dir/librados_c.cc.o | grep 
rados_create
00000000000003b0 l     F .text  00000000000000a6 
_ZL16rados_create_cctPKcP18CephInitParameters
00000000000001d0 g     F .text  00000000000001df _rados_create
0000000000000460 g     F .text  000000000000028d _rados_create2
0000000000015410 g     F .text  00000000000000a4 _rados_create_read_op
00000000000006f0 g     F .text  0000000000000085 _rados_create_with_context
0000000000013a30 g     F .text  00000000000000a4 _rados_create_write_op
0000000000000460 g     F .text  000000000000028d rados_create2@@
00000000000001d0 g     F .text  00000000000001df rados_create@@
0000000000015410 g     F .text  00000000000000a4 rados_create_read_op@@
00000000000006f0 g     F .text  0000000000000085 rados_create_with_context@@
0000000000013a30 g     F .text  00000000000000a4 rados_create_write_op@@
[~/master] wjw at cephdev.digiware.nl> objdump -T 
./build/src/librados/CMakeFiles/librados.dir/librados_c.cc.o | grep 
rados_create
objdump: ./build/src/librados/CMakeFiles/librados.dir/librados_c.cc.o: 
not a dynamic object
Exit 1

--WjW



More information about the freebsd-toolchain mailing list