search for: crtbegin

Displaying 20 results from an estimated 242 matches for "crtbegin".

2017 Jun 02
6
Providing __dso_handle in LLVM
...a. __dso_handle symbol is mandated by C++ ABI with a value which is an address in one of the object's segments, and as such this symbol has to be included statically and cannot be a part of a shared library. Different systems provide it differently: 1. On GNU/Linux systems, it's defined in crtbegin.o which is provided by libgcc. 3. On Android, it's defined in crtbegin.o provided by the Bionic C library. 3. FreeBSD/OpenBSD/NetBSD provide crtbegin.o as part of the system. 4. On macOS, __dso_handle is generated by the linker. We don't think __dso_handle should be provided by the C libra...
2017 Jun 03
2
Providing __dso_handle in LLVM
...I with a value which is an address in one of >> the object's segments, and as such this symbol has to be included >> statically and cannot be a part of a shared library. Different systems >> provide it differently: >> >> 1. On GNU/Linux systems, it's defined in crtbegin.o which is provided by >> libgcc. >> 3. On Android, it's defined in crtbegin.o provided by the Bionic C >> library. >> 3. FreeBSD/OpenBSD/NetBSD provide crtbegin.o as part of the system. >> 4. On macOS, __dso_handle is generated by the linker. >> >> We...
2007 Jan 10
4
[LLVMdev] llvm-gcc build fail on RHEL v4 x86_64
...r-" \ LANGUAGES="" \ LIBGCC2_CFLAGS="-O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED " \ MULTILIB_CFLAGS="" T= crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o make[3]: Entering directory `/home/xzx/llvm-gcc-obj/gcc' make[3]: `crtbegin.o' is up to date. make[3]: `crtend.o' is up to date. make[3]: `crtbeginS.o' is up to date. make[3]: `crtendS.o' is up to date. make[3]: `crtbeginT.o' is u...
2019 Jan 21
0
[PATCH] ia64: Fix shared build
...nit_array_start = .); + KEEP (*(.preinit_array)) + PROVIDE_HIDDEN (__preinit_array_end = .); + } + .init_array : + { + PROVIDE_HIDDEN (__init_array_start = .); + KEEP (*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) + KEEP (*(.init_array EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o ) .ctors)) + PROVIDE_HIDDEN (__init_array_end = .); + } + .fini_array : + { + PROVIDE_HIDDEN (__fini_array_start = .); + KEEP (*(SORT_BY_INIT_PRIORITY(.fini_array.*) SORT_BY_INIT_PRIORITY(.dtors.*))) + KEEP (*(.fini_array EXCLUDE_FILE (*crtbegi...
2020 Jun 09
2
Cross compile x64 to AArch64 issues
..../build-10.x/install/bin/clang++` -DLLVM_ENABLE_PROJECTS="compiler-rt" -DLLVM_ENABLE_ZLIB=False -DLLVM_INCLUDE_TESTS=False -G Ninja ../llvm Does anyone see any obvious misconfiguration? Cmake fails at the early test for a working CXX compiler: /usr/bin/aarch64-linux-gnu-ld: cannot find crtbegin.o: No such file or directory I have confirmed that crtbegin.o exists in /usr/lib/gcc/aarch64-linux-gnu/10.1.0 If I copy /usr/lib/gcc/aarch64-linux-gnu/10.1.0/{crtbegin,crtend}.o to /usr/aarch64-linux-gnu/lib the check passed, but then the LLVM_LIBSTDCXX_MIN check fails. However, checking CMakeEr...
2007 Jan 10
0
[LLVMdev] llvm-gcc build fail on RHEL v4 x86_64
...;" \ > LIBGCC2_CFLAGS="-O2 -DIN_GCC -W -Wall -Wwrite-strings > -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition > -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 > -D__GCC_FLOAT_NOT_NEEDED " \ > MULTILIB_CFLAGS="" T= crtbegin.o crtend.o crtbeginS.o crtendS.o > crtbeginT.o > make[3]: Entering directory `/home/xzx/llvm-gcc-obj/gcc' > make[3]: `crtbegin.o' is up to date. > make[3]: `crtend.o' is up to date. > make[3]: `crtbeginS.o' is up to date. > make[3]: `crtendS.o' is up to date....
2019 Jan 21
0
[klibc:master] ia64: Fix shared build
...nit_array_start = .); + KEEP (*(.preinit_array)) + PROVIDE_HIDDEN (__preinit_array_end = .); + } + .init_array : + { + PROVIDE_HIDDEN (__init_array_start = .); + KEEP (*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) + KEEP (*(.init_array EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o ) .ctors)) + PROVIDE_HIDDEN (__init_array_end = .); + } + .fini_array : + { + PROVIDE_HIDDEN (__fini_array_start = .); + KEEP (*(SORT_BY_INIT_PRIORITY(.fini_array.*) SORT_BY_INIT_PRIORITY(.dtors.*))) + KEEP (*(.fini_array EXCLUDE_FILE (*crtbegi...
2007 Jan 11
2
[LLVMdev] llvm-gcc build fail on RHEL v4 x86_64
...t; LIBGCC2_CFLAGS="-O2 -DIN_GCC -W -Wall -Wwrite-strings >> -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition >> -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 >> -D__GCC_FLOAT_NOT_NEEDED " \ >> MULTILIB_CFLAGS="" T= crtbegin.o crtend.o crtbeginS.o crtendS.o >> crtbeginT.o >> make[3]: Entering directory `/home/xzx/llvm-gcc-obj/gcc' >> make[3]: `crtbegin.o' is up to date. >> make[3]: `crtend.o' is up to date. >> make[3]: `crtbeginS.o' is up to date. >> make[3]: `crtendS...
2011 Jan 08
2
[LLVMdev] LLVM-GCC build failed
...wing error for building llvm-gcc (llvm built successfully):   When I use arm-2007q3-51-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2: my build fails by the following error:   /usr/local/crosstool/codesourcery/arm-2009q1/bin/arm-none-linux-gnueabi-gcc: cannot  execute binary file   make[2]: *** [crtbegin.o] Error 1   When I use arm-2009q1-176-arm-none-linux-gnueabi-i686-mingw32.tar.bz2, I get the following error:   Assembler messages:^M Error: can't open /cygdrive/d/DOCUME~2/AZIM/LOCALS~1/Temp/cc19Hfjy.s for reading : No such file or directory^M make[2]: *** [crtbegin.o] Error 1   Can anyone pl...
2007 Jan 12
2
[LLVMdev] llvm-gcc build fail on RHEL v4 x86_64
...GCC -W -Wall -Wwrite-strings > >>> -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition > >>> -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 > >>> -D__GCC_FLOAT_NOT_NEEDED " \ > >>> MULTILIB_CFLAGS="" T= crtbegin.o crtend.o crtbeginS.o crtendS.o > >>> crtbeginT.o > >>> make[3]: Entering directory `/home/xzx/llvm-gcc-obj/gcc' > >>> make[3]: `crtbegin.o' is up to date. > >>> make[3]: `crtend.o' is up to date. > >>> make[3]: `crtbeginS.o...
2007 Jan 11
0
[LLVMdev] llvm-gcc build fail on RHEL v4 x86_64
...AGS="-O2 -DIN_GCC -W -Wall -Wwrite-strings >>> -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition >>> -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 >>> -D__GCC_FLOAT_NOT_NEEDED " \ >>> MULTILIB_CFLAGS="" T= crtbegin.o crtend.o crtbeginS.o crtendS.o >>> crtbeginT.o >>> make[3]: Entering directory `/home/xzx/llvm-gcc-obj/gcc' >>> make[3]: `crtbegin.o' is up to date. >>> make[3]: `crtend.o' is up to date. >>> make[3]: `crtbeginS.o' is up to date. >&g...
2019 Mar 25
2
Trying to create a pure LLVM toolchain on musl based distribution
...ectory, which I think that you can > alter at build time. > You're right, I've just checked both packages in Alpine and Arch and they indeed move the /usr/lib/linux directory under the clang's one. I've fixed that it worked, now I still have to find the solution regarding crtbeginS.so and crtendS.so. Thanks :) > I don't think that there is a way of preventing clang adding > crtbeginS.o and crtendS.o without --nostdlib or --nostartfiles but > using these options will also not add the other crt*.o files that you > may be expecting. > > There is a line...
2018 Apr 02
2
LLD-linked binary segfaults at runtime on alpine linux
...ses.llvm.org, and build them from source. $ clang -c hello_world.c $ ld.lld --gc-sections -m elf_x86_64 -o hello_world /usr/lib/gcc/x86_64-alpine-linux-musl/6.4.0/../../../../lib/Scrt1.o /usr/lib/gcc/x86_64-alpine-linux-musl/6.4.0/../../../../lib/crti.o /usr/lib/gcc/x86_64-alpine-linux-musl/6.4.0/crtbegin.o -L /usr/lib/gcc/x86_64-alpine-linux-musl/6.4.0/../../../../lib -L /usr/lib/gcc/x86_64-alpine-linux-musl/6.4.0 -dynamic-linker /lib/../lib/ld-musl-x86_64.so.1 hello_world.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lm -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/x86_64-alpine-linux-mu...
2019 Mar 25
3
Trying to create a pure LLVM toolchain on musl based distribution
...ts here: #include <...> search starts here: /usr/local/include /usr/lib/clang/8.0.0/include /usr/include End of search list. "/usr/bin/ld.lld" -pie --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib/ld-musl-x86_64.so.1 -o a.out /usr/bin/../lib/Scrt1.o /usr/bin/../lib/crti.o crtbeginS.o -L/usr/bin/../lib -L/lib -L/usr/lib /tmp/test-1d99ce.o /usr/lib/clang/8.0.0/lib/linux/libclang_rt.builtins-x86_64.a -lc /usr/lib/clang/8.0.0/lib/linux/libclang_rt.builtins-x86_64.a crtendS.o /usr/bin/../lib/crtn.o ld.lld: error: cannot open crtbeginS.o: No such file or directory ld.lld: erro...
2008 Feb 16
3
[LLVMdev] amd64, FreeBSD and shared libraries
...able-shared, because the linker ends up erroring out with a linker error when building libgcc_s.so. Subsequently, the same error is produced when it attempts to build libstdc++.so. If you do happen to build and install it, any attempt to link a shared library results in this very same behavior. The crtbeginS.o object seems to contain the offending relocation data which ld doesn't like. The following error is what I get: /usr/home/cokane/src/llvm-gcc4.2-2.2.source/host-amd64-undermydesk-freebsd8/gcc/xgcc -B/usr/home/cokane/src/llvm-gcc4.2-2.2.source/host-amd64-undermydesk-freebsd8/gcc/ -B/home/co...
2008 Mar 30
2
[LLVMdev] Compiling llvm-gcc on amd64 with 32 bits: assembler still carps
.../libcpp/include -I/home/jo/llvm-gcc-src/gcc/../libdecnumber -I../libdecnumber -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-toplevel-reorder -fno-omit-frame-pointer \ -c /home/jo/llvm-gcc-src/gcc/crtstuff.c -DCRT_BEGIN \ -o crtbegin.o /tmp/ccuWW3r0.s: Assembler messages: /tmp/ccuWW3r0.s:27: Error: suffix or operands invalid for `push' /tmp/ccuWW3r0.s:37: Error: suffix or operands invalid for `call' /tmp/ccuWW3r0.s:55: Error: suffix or operands invalid for `push' /tmp/ccuWW3r0.s:65: Error: suffix or operands invalid...
2007 Jan 12
0
[LLVMdev] llvm-gcc build fail on RHEL v4 x86_64
...-Wwrite-strings > >>> -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition > >>> -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 > >>> -D__GCC_FLOAT_NOT_NEEDED " \ > >>> MULTILIB_CFLAGS="" T= crtbegin.o crtend.o crtbeginS.o crtendS.o > >>> crtbeginT.o > >>> make[3]: Entering directory `/home/xzx/llvm-gcc-obj/gcc' > >>> make[3]: `crtbegin.o' is up to date. > >>> make[3]: `crtend.o' is up to date. > >>> mak...
2008 Oct 02
1
[LLVMdev] build broken (a different way)
...-I../../gcc/../libdecnumber -I../libdecnumber -I/home/regehr/llvm/include -I/home/regehr/llvm/include -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-toplevel-reorder -fno-omit-frame-pointer \ -c ../../gcc/crtstuff.c -DCRT_BEGIN \ -o crtbegin.o cc1: X86ATTAsmPrinter.cpp:543: void llvm::X86ATTAsmPrinter::printMemReference(const llvm::MachineInstr*, unsigned int, const char*): Assertion `isMem(MI, Op) && "Invalid memory reference!"' failed. ../../gcc/crtstuff.c:378: internal compiler error: Aborted Please submit a...
2011 Jan 08
0
[LLVMdev] LLVM-GCC build failed
...llvm built successfully): > > When I use arm-2007q3-51-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2: my build fails by the following error: > > /usr/local/crosstool/codesourcery/arm-2009q1/bin/arm-none-linux-gnueabi-gcc: cannot > execute binary file > > make[2]: *** [crtbegin.o] Error 1 > > When I use arm-2009q1-176-arm-none-linux-gnueabi-i686-mingw32.tar.bz2, I get the following error: > > Assembler messages:^M > Error: can't open /cygdrive/d/DOCUME~2/AZIM/LOCALS~1/Temp/cc19Hfjy.s for reading > : No such file or directory^M > make[2]: *** [...
2014 Nov 30
3
[LLVMdev] How to fix bug
Please help me. How do I fix this bug @ubuntu:~/Documents/test$ clang hello.c -o hello /usr/bin/ld: cannot find crt1.o: No such file or directory /usr/bin/ld: cannot find crti.o: No such file or directory /usr/bin/ld: cannot find crtbegin.o: No such file or directory /usr/bin/ld: cannot find -lgcc /usr/bin/ld: cannot find -lgcc_s clang-2: error: linker command failed with exit code 1 (use -v to see invocation) Best regards, Huy Mobile: 01668178291 -------------- next part -------------- An HTML attachment was scrubb...