search for: nostdlib

Displaying 20 results from an estimated 133 matches for "nostdlib".

Did you mean: cstdlib
2007 Nov 12
5
Solaris build fix breaks Solaris
16396:055d98aa2dd0 almost works but not quite. LDFLAGS_DIRECT means we end up with: gld -melf_i386 -nostdlib -N -Ttext 0x100000 -o hvmloader.tmp hvmloader.o mp_tables.o util.o smbios.o 32bitbios_support.o acpi/acpi.a Specifying a linker script and asking for -nostdlib is obviously contradictory. Removing $(LDFLAGS_DIRECT) fixes the problem. regards john _______________________________________________ X...
2005 Aug 25
3
Adding -nostdlib to REQFLAGS
Skipped content of type multipart/mixed-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://www.vas.nu/pipermail/klibc/attachments/20050825/0e6d8370/attachment.bin
2012 Jun 07
0
Bug#676569: gcc-4.7: -nostdlib broken, multiarch library path always added
...nario is broken: I would expect the link to fail. This is a carefully nailed-down testcase to figure out that the fault is with gcc not binutils. tg at zigo:~ $ echo 'int login_tty(int); void _exit(int); void _start() { _exit(login_tty(0)); }' >test.c tg at zigo:~ $ rm -f test.out; gcc -nostdlib -lutil -o test.out test.c; ls -l test.out -rwxr-xr-x 1 tg tg 3712 Jun 7 20:09 test.out Reason behind this is that GNU autoconf generated configure scripts (and other things like that) use such tests to check whether to add libraries providing certain functionality to the build. Now if klibc or di...
2020 Apr 26
2
assembly code for array iteration generated by llvm is much slower than gcc
...rt + 1; j < wend; j++) { sum += c[j * w2]; sum += c[j * w1]; } dst_idx = w1 * i + w2; dst_idx2 = w2 * i + w1; b[dst_idx] = sum; b[dst_idx2] = sum/2; } } Compile command: riscv32-unkown-elf-g++ -nostartfiles -nostdlib -O2 -march=rv32imf -mabi=ilp32f -fno-builtin -S perf.c -o perf.g++ clang++ -O2 –target=riscv32 -march=rv32img -mabi=ilp32f -nostdlib -fno-builtin -S perf.c -o perf.lang the gcc version is 7.2.0 the llvm version is 10.0.0 Assembly code of the loop generated by gcc and llvm: [cid:image002....
2016 May 13
2
How to debug if LTO generate wrong code?
...-Wno-tautological-constant-out-of-range-compare -Wno-incompatible-library-redeclaration -target x86_64-pc-linux-gnu -fno-asynchronous-unwind-tables -m64 -Wno-enum-conversion "-DEFIAPI=__attribute__((ms_abi))" -mno-red-zone -mcmodel=large -g -Os -flto *_CLANGLTO38_X64_DLINK_FLAGS = -flto -nostdlib -Wl,-n -Wl,-q -Wl,--gc-sections -Wl,-z,common-page-size=0x40 -Wl,--entry,$(IMAGE_ENTRY_POINT) -Wl,-u,$(IMAGE_ENTRY_POINT) -Wl,-Map,$(DEST_DIR_DEBUG)/$(BASE_NAME).map -Wl,-melf_x86_64 -Wl,--oformat=elf64-x86-64 *_CLANGLTO38_X64_ASM_FLAGS = -c -x assembler -imacros $(DEST_DIR_DEBUG)/AutoGe...
2006 Aug 07
1
3.0.2 hvmloader
...ubuntu 6.06 amd 64. I downloaded and installed xen 3.0.2 from binaries. I found that hvmloader is not included in binary distribution :-( So I try to compile it from sources. I get following error: cpp -P -DDEBUG -DTEXTADDR=0x000D0000 vmxassist.ld > vmxassist.tmp ld -o vmxassist -m elf_i386 -nostdlib --fatal-warnings -N -T vmxassist.tmp head.o trap.o vm86.o setup.o util.o nm -n vmxassist > vmxassist.sym objcopy -p -O binary -R .note -R .comment -R .bss -S --gap-fill=0 vmxassist vmxassist.tmp dd if=vmxassist.tmp of=vmxassist.bin ibs=512 conv=sync 37+1 records in 38+0 records out make[1]: **...
2013 Jun 13
1
[PATCH] Link against libdrm
...S) diff --git a/src/Makefile.am b/src/Makefile.am index f54e135..5836ead 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -23,10 +23,10 @@ # -avoid-version prevents gratuitous .0.0.0 version numbers on the end # _ladir passes a dummy rpath to libtool so the thing will actually link # TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, etc. -AM_CFLAGS = @XORG_CFLAGS@ @LIBUDEV_CFLAGS@ @LIBDRM_NOUVEAU_CFLAGS@ +AM_CFLAGS = @XORG_CFLAGS@ @LIBUDEV_CFLAGS@ @LIBDRM_NOUVEAU_CFLAGS@ @LIBDRM_CFLAGS@ nouveau_drv_la_LTLIBRARIES = nouveau_drv.la nouveau_drv_la_LDFLAGS = -module -avoid-ve...
2008 Feb 19
1
[LLVMdev] cross compiling with the C backend
Hello, Kevin. > Well, I already use custom includes with these options: "-nostdlib > -nostdinc -Ipsptoolchain/psp/include > -Ipsptoolchain/lib/gcc/psp/4.1.0/include". But that seems not enough. > GCC has some target-specific behaviour compiled in? Well, in general - yes. However, I'm not sure up to which margin. -- WBR, Anton Korobeynikov
2008 Feb 28
2
[LLVMdev] llvm-gcc and mips
...cross compiler for you, I believe. > > If you don't want to install it, you can run it as cd gcc && ./xgcc - > B./ t.c. Thanks for your help. I tried your first suggestion, but it doesn't work: /home/kevin/Documents/School/Thesis/work/install/llvmgcc-mips/bin/llvm-gcc -nostdlib -nostdinc -I/home/kevin/Documents/School/Thesis/work/install/psptoolchain/psp/include -I/home/kevin/Documents/School/Thesis/work/install/psptoolchain/lib/gcc/psp/4.1.0/include -c -emit-llvm -Wall \ -D_PSP_FW_VERSION=150 -DPSP=1 -D__psp__=1 -D_PSP=1 -I/home/kevin/Documents/School/The...
2019 Mar 25
2
Trying to create a pure LLVM toolchain on musl based distribution
...ndeed 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 in lib/Driver/Toolchains/Gnu.cpp which the Linux driver uses: > const bool HasCRTBeginEndFiles = > ToolChain.getTriple().hasEnvironment() |...
2009 Aug 06
1
Re: [SOLVED] C&C Red Alert 3 - Lan (and also hamachi) play
...CHIBANA here) and, on the first line, add : 11.0.0.3 TACHIBANA 4. Compile this little hack made by Raphael : http://hughes.homelinux.org:8080/~raphael/bind_hack.tar.bz2 . On a 64 bits machine, here's how I compiled this little hack : $ cc bind_hack.c -o bind_hack.so -O2 -fPIC -Wall -shared -lc -nostdlib -m32 5. Launch RA3 with wine, while preloading this little hack. /path/to/RA3$ LD_PRELOAD=/tmp/bind_hack/bind_hack.so wine RA3 6. Connect on the Lobby and check if you see your friends. 7. Create a game, let the users connect, choose their team, ... 8. Launch the game 9. Play 10. ????? 11. Profit !...
2010 May 23
1
[PATCH] nv: improve KMS detection
...;marcin.slusarz at gmail.com> --- src/Makefile.am | 2 +- src/nv_driver.c | 11 +++-------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index 5d57010..8b23e21 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -25,7 +25,7 @@ # TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, etc. AM_CFLAGS = @XMODES_CFLAGS@ @XORG_CFLAGS@ $(LIBDRM_CFLAGS) nv_drv_la_LTLIBRARIES = nv_drv.la -nv_drv_la_LDFLAGS = -module -avoid-version +nv_drv_la_LDFLAGS = -module -avoid-version $(LIBDRM_LIBS) nv_drv_ladir = @moduledir@/drivers nv_...
2014 Feb 04
3
[LLVMdev] [lld] Allow atoms with empty name in the RefNameBuilder::buildDuplicateNameMap()
...LE symbols with empty name. Moreover crt1.o object file from this toolchain has such symbol. I do not know is it a feature or bug but that behavior exists for a long time. Here is the reproduction script: [[ $ cat test.c void foo() {} $ mips-linux-gnu-gcc -c test.c $ mips-linux-gnu-gcc -r -nostdlib test.o $ readelf -s a.out | grep FILE 9: 00000000 0 FILE LOCAL DEFAULT ABS test.c 10: 00000000 0 FILE LOCAL DEFAULT ABS ]] I suggest to remove assert from the RefNameBuilder::buildDuplicateNameMap() method. I think we do not break anything in that case. Any object...
2008 Mar 05
0
Press delete key three times in R-2.6.1 to get segmentation fault (PR#10892)
...f_i386 *dynamic_linker: %{muclibc:%{mglibc:%e-mglibc and -muclibc used together}/lib/ld-uClibc.so.0;:/lib/ld-linux.so.2} *link_command: %{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S: %(linker) %l %{pie:-pie} %X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} %{r} %{s} %{t} %{u*} %{x} %{z} %{Z} %{!A:%{!nostdlib:%{!nostartfiles:%S}}} %{static:} %{L*} %(mfwrap) %(link_libgcc) %o %{fopenmp:%:include(libgomp.spec)%(link_gomp)} %(mflib) %{fprofile-arcs|fprofile-generate|coverage:-lgcov} %{!nostdlib:%{!nodefaultlibs:%(link_ssp) %(link_gcc_c_sequence)}} %{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*}...
2020 Mar 27
2
[PATCH v2 1/5] Kbuild: add support for clang builds
...ve been specified correctly so that the only header file actually pulled in from the standard location is <stdarg.h>. Disable the use of --print-libgcc when using clang. Explictly specifying the path to compiler specific libraries appears to be unnecessary since klibc never specifies -nostdlib when linking binaries, meaning that any such libraries should already be available. Signed-off-by: Bill Wendling <morbo at google.com> --- scripts/Kbuild.include | 4 ++++ scripts/Kbuild.klibc | 17 +++++++++++++++-- usr/klibc/arch/x86_64/MCONFIG | 10 ++++++++-- 3 file...
2020 Jul 28
1
[PATCH] mk/efi: add -znoseparate-code to LD_FLAGS for EFI builds
...lt;jf at daedalean.ai> --- mk/efi.mk.orig 2020-07-28 12:31:48.814356659 +0000 +++ mk/efi.mk 2020-07-28 12:37:22.292205578 +0000 @@ -37,7 +37,8 @@ CRT0 := $(LIBDIR)/crt0-efi-$(EFI_SUBARCH LDSCRIPT := $(LIBDIR)/elf_$(EFI_SUBARCH)_efi.lds LDFLAGS = -T $(SRC)/$(ARCH)/syslinux.ld -Bsymbolic -pie -nostdlib -znocombreloc \ - -L$(LIBDIR) --hash-style=gnu -m elf_$(ARCH) $(CRT0) -E + -znoseparate-code -L$(LIBDIR) --hash-style=gnu -m elf_$(ARCH) \ + $(CRT0) -E SFLAGS = $(GCCOPT) $(GCCWARN) $(ARCHOPT) \ -fomit-frame-pointer -D__COM32__ -D__FIRMWARE_$(FIRMWARE)__ \
2017 May 02
4
[ARM/Thumb] Make a function in arm while in Thumb triple
Hi, I wanted to know if it was possible to force ARM backend to compile a function in ARM while the rest is in Thumb mode. I tried the attributes which is used in GCC but it doesn't work. Here is what I tried: https://pastebin.com/jCr5LPUY Thanks in advance, Uvekilledkenny -------------- next part -------------- An HTML attachment was scrubbed... URL:
2020 Mar 27
3
llvm-objdump cannot recognize mul&mulh RISC-V M Instructions
...l=medany -static -O3 -std=gnu99 -fno-common -fno-builtin -march=rv32im -mabi=ilp32 -DMB_ADDR=0x80FFFFC --target=riscv64-unknown-elf --sysroot=/home/llvm/workspace/riscv/riscv-tc-20200220/bin/riscv64-unknown-elf --gcc-toolchain=/home/llvm/workspace/riscv/riscv-tc-20200220 RISCV_LINK_OPTS ?= -static -nostdlib -nostartfiles -lm -lgcc -T /home/llvm/workspace/HRV_IDE/common/test.ld newlib_dir := /home/llvm/workspace/llvm/llvm-project/llvm_install/riscv64-unknown-elf/include src_dir := $(WORK_DIR)/src/$(PROJ) incs += -I$(WORK_DIR)/env -I$(WORK_DIR)/common -I$(src_dir) -I$(newlib_dir) src := $(wildcard $(sr...
2017 Aug 02
2
Cross compiling C++ program
...on, I'll probably ask a silly question, but why following example can be compiled natively, but not cross compiled? #include <cstdlib> using ::atof; int main() { return 0; } Native compile: clang++ -o example example.cpp Cross compile: clang++ -fno-builtin -fno-exceptions -fcheck-new -nostdlib -ffreestanding -target arm-none-eabi -march=armv7-m -mcpu=cortex-m4 -Wall -Wshadow -Wundef -g -Os -fno-strict-aliasing -fomit-frame-pointer -mcpu=cortex-m4 -mthumb -mfloat-abi=soft -stdlib=libc++ -o example example.cpp Error I get: In file included from example.cpp:1: In file included from /usr/in...
2020 Jan 07
2
Inline assembly in intel syntax mishandling i constraint
..., offset $0" it complains about multiple symbols being present: <inline asm>:2:18: error: cannot use more than one symbol in memory operand mov ebx, offset bar I attached my source file and my modified .ll file. I compiled the source file with clang -m32 a.c -ffreestanding -nostdlib -S -emit-llvm $ clang --version clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final) Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/bin Is this an LLVM bug or am I misusing inteldialect? Thank you, Steve -- Stephen Checkoway -------------- next part -------------- A no...