Displaying 3 results from an estimated 3 matches for "libmore".
Did you mean:
libcore
2016 Oct 04
2
(Thin)LTO llvm build
...PM, Xinliang David Li <xinliangli at gmail.com>
wrote:
> Small repro:
>
> __attribute__((weak)) int hello_world();
>
> int test() {
> if (hello_world)
> return hello_world();
> return 0;
> }
>
> $ clang -fuse-ld=gold -flto=thin -O2 -shared -fPIC -o libmore.so more.c
> $ objdump -t libmore.so |grep hello
> 0000000000000000 w *UND* 0000000000000000 hello_world
>
> $ clang -fuse-ld=bfd -flto=thin -O2 -shared -fPIC -o libmore.so more.c
> $ objdump -t libmore.so |grep hello
> 0000000000000000 *UND* 0000000000000...
2016 Oct 04
2
(Thin)LTO llvm build
...>>>
>>> __attribute__((weak)) int hello_world();
>>>
>>> int test() {
>>> if (hello_world)
>>> return hello_world();
>>> return 0;
>>> }
>>>
>>> $ clang -fuse-ld=gold -flto=thin -O2 -shared -fPIC -o libmore.so more.c
>>> $ objdump -t libmore.so |grep hello
>>> 0000000000000000 w *UND* 0000000000000000 hello_world
>>>
>>> $ clang -fuse-ld=bfd -flto=thin -O2 -shared -fPIC -o libmore.so more.c
>>> $ objdump -t libmore.so |grep hello
>>...
2016 Oct 03
2
(Thin)LTO llvm build
On Mon, Oct 3, 2016 at 3:53 PM, Xinliang David Li <xinliangli at gmail.com>
wrote:
> What is the linker command line buidling liblldb.so? is libgcc.a passed in?
>
There is no difference in the linker command for liblldb.so or bin/lldb
between the ld.bfd and ld.gold cases, and neither links libgcc.a that I can
see.
The difference appears to be that the __morestack symbol is weak in