search for: morestack

Displaying 16 results from an estimated 16 matches for "morestack".

2016 Oct 03
2
(Thin)LTO llvm build
...il.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 the ld.gold liblldb.so case (and simply doesn't appear in the resulting bin/lldb presumably because libgcc.a is not linked): $ nm lib/liblldb.so.3.9.1 | grep morestack w __morestack whereas it is an undef in the ld.bfd case: $ nm lib/liblldb.so | grep mores...
2013 Jan 28
0
[LLVMdev] morestack for ARM
I wonder if any body tried implementing morestack for ARM. [ARMFrameLowering.cpp file does not have implementation for adjustForSegmentedStacks method] More I study more I get lost, Any help or input is highly appreciated. TIA, Amit -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/piperm...
2016 Oct 04
2
(Thin)LTO llvm build
...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 the >> ld.gold liblldb.so case (and simply doesn't appear in the resulting >> bin/lldb presumably because libgcc.a is not linked): >> >> $ nm lib/liblldb.so.3.9.1 | grep morestack >> w __morestack >> >> whereas it is a...
2016 Oct 03
3
(Thin)LTO llvm build
In uint64_t RTDyldMemoryManager::getSymbolAddressInProcess(const std::string &Name) { there is reference to morestack: #if defined(__i386__) || defined(__x86_64__) // __morestack lives in libgcc, a static library. if (&__morestack && Name == "__morestack") return (uint64_t)&__morestack; #endif #endif // __linux__ && __GLIBC__ On Mon, Oct 3, 2016 at 3:32 PM, Teresa Joh...
2016 Oct 04
2
(Thin)LTO llvm build
...> >>>> >>>> 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 the >>>> ld.gold liblldb.so case (and simply doesn't appear in the resulting >>>> bin/lldb presumably because libgcc.a is not linked): >>>> >>>> $ nm lib/liblldb.so.3.9.1 | grep morestack >>>> w __mor...
2016 Oct 03
2
(Thin)LTO llvm build
Is -fsplit-stack option used anywhere? My wild guess is that with ld.bfd, the thinLTO link for the DSO does not bring in morestack.o from libgcc.a, but the hidden symbol is defined in lldb binary. David On Mon, Oct 3, 2016 at 1:54 PM, Teresa Johnson via llvm-dev < llvm-dev at lists.llvm.org> wrote: > Aha - finally reproduced! The difference is using ld.bfd not ld.gold. With > that I get the same failure (using 3...
2016 Oct 03
3
(Thin)LTO llvm build
On Mon, Oct 3, 2016 at 3:50 PM, Teresa Johnson <tejohnson at google.com> wrote: > > On Sun, Oct 2, 2016 at 4:02 AM, Carsten Mattner <carstenmattner at gmail.com> wrote: >> >> On Sun, Oct 2, 2016 at 6:41 AM, Teresa Johnson <tejohnson at google.com> wrote: > > > > > I use trunk, but it depends on how close to the bleeding edge you > > > are
2016 Sep 26
3
(Thin)LTO llvm build
On Mon, Sep 26, 2016 at 8:08 AM, Carsten Mattner <carstenmattner at gmail.com> wrote: > On Mon, Sep 26, 2016 at 4:25 PM, Teresa Johnson <tejohnson at google.com> > wrote: > > No worries, thanks for the update. Teresa > > 2048 wasn't enough. Bumped to 4096. Only 1300 ninja targets left. > > Once I've been successful with this, I might try building a
2016 Sep 27
4
(Thin)LTO llvm build
On Tue, Sep 27, 2016 at 6:53 AM, Mehdi Amini <mehdi.amini at apple.com> wrote: > > > > On Sep 27, 2016, at 2:18 AM, Carsten Mattner <carstenmattner at gmail.com> > wrote: > > > >> On Mon, Sep 26, 2016 at 11:02 PM, Teresa Johnson <tejohnson at google.com> > wrote: > >> I'll either need to get a reproducer from you and/or try to repro
2016 Dec 20
6
(Thin)LTO llvm build
...a lib/libclangEdit.a lib/libclangAST.a lib/libclangLex.a lib/libclangBasic.a lib/libLLVMMC.a lib/libLLVMBitReader.a lib/libLLVMCore.a lib/libLLVMSupport.a -lrt -ldl -lcurses -lpthread -lz -lm -Wl,-rpath,"\$ORIGIN/../lib" && : /usr/bin/ld.gold: bin/lldb-argdumper: hidden symbol `__morestack' in /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/6.2.1/libgcc.a(morestack.o) is referenced by DSO /usr/bin/ld.gold: final link failed: Bad value clang-3.9: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed. -------------- next part...
2016 Sep 27
2
(Thin)LTO llvm build
...CMAKE_C_COMPILER and CMAKE_CXX_COMPILER explicitly (you > might have had the right versions in your path?) I've exported CXX and CC to clang++ and clang, which happen to be the locally build 3.9 release branch versions (non-LTO variant). > I did an nm on the .so libraries to see where __morestack was > referenced and its linkage. No surprise, it is coming from > libLLVMRuntimeDyld.so, and I do see it as weak as expected: > > $ nm lib/libLLVMRuntimeDyld.so | grep morestack > w __morestack > > Can you do the above nm on your lib/libLLVMRuntimeDyld.so and...
2016 Dec 20
0
(Thin)LTO llvm build
.../libclangAST.a lib/libclangLex.a > lib/libclangBasic.a lib/libLLVMMC.a lib/libLLVMBitReader.a > lib/libLLVMCore.a lib/libLLVMSupport.a -lrt -ldl -lcurses -lpthread > -lz -lm -Wl,-rpath,"\$ORIGIN/../lib" && : > > /usr/bin/ld.gold: bin/lldb-argdumper: hidden symbol `__morestack' in > /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/6.2.1/libgcc.a(morestack.o) > is referenced by DSO > > /usr/bin/ld.gold: final link failed: Bad value > > clang-3.9: error: linker command failed with exit code 1 (use -v to > see invocation) > > ninja: build stopped: su...
2016 Oct 04
0
(Thin)LTO llvm build
On Tue, Oct 4, 2016 at 10:15 AM, Carsten Mattner <carstenmattner at gmail.com> wrote: > On Tue, Oct 4, 2016 at 2:22 AM, Xinliang David Li <xinliangli at gmail.com> > wrote: > > For clang build, cmake flags: > > > > -DCMAKE_EXE_LINKER_FLAGS=-fuse-ld=gold \ > > -DCMAKE_MODULE_LINKER_FLAGS=-fuse-ld=gold \ > >
2016 Dec 20
0
(Thin)LTO llvm build
...libclangAST.a lib/libclangLex.a > lib/libclangBasic.a lib/libLLVMMC.a lib/libLLVMBitReader.a > lib/libLLVMCore.a lib/libLLVMSupport.a -lrt -ldl -lcurses -lpthread > -lz -lm -Wl,-rpath,"\$ORIGIN/../lib" && : > > /usr/bin/ld.gold: bin/lldb-argdumper: hidden symbol `__morestack' in > /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/6.2.1/libgcc.a(morestack.o) > is referenced by DSO > > /usr/bin/ld.gold: final link failed: Bad value > > clang-3.9: error: linker command failed with exit code 1 (use -v to > see invocation) > > ninja: build stopped:...
2016 Dec 20
0
(Thin)LTO llvm build
.../libclangAST.a lib/libclangLex.a > lib/libclangBasic.a lib/libLLVMMC.a lib/libLLVMBitReader.a > lib/libLLVMCore.a lib/libLLVMSupport.a -lrt -ldl -lcurses -lpthread > -lz -lm -Wl,-rpath,"\$ORIGIN/../lib" && : > > /usr/bin/ld.gold: bin/lldb-argdumper: hidden symbol `__morestack' in > /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/6.2.1/libgcc.a(morestack.o) > is referenced by DSO > > /usr/bin/ld.gold: final link failed: Bad value > > clang-3.9: error: linker command failed with exit code 1 (use -v to > see invocation) > > ninja: build stopped: su...
2016 Sep 27
2
(Thin)LTO llvm build
On Tue, Sep 27, 2016 at 8:37 PM, Teresa Johnson <tejohnson at google.com> wrote: Just in case it's important, I'm using Arch Linux (and most Linux distros these days) CFLAGS/CPPFLAGS/LDFLAGS, which are as follows: $ grep FLAGS /etc/makepkg.conf CPPFLAGS="-D_FORTIFY_SOURCE=2" CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong"