search for: mdynamic

Displaying 20 results from an estimated 49 matches for "mdynamic".

Did you mean: dynamic
2009 May 08
2
[LLVMdev] Darwin option processing
I'm toying with building with -mdynamic-no-pic, but for this to work, the shared library bits in llvm can't be built with that flag. I've found that: Index: Makefile.rules =================================================================== --- Makefile.rules (revision 71041) +++ Makefile.rules (working copy) @@ -472,6 +476,9...
2009 May 08
2
[LLVMdev] Darwin option processing
On May 8, 2009, at 11:49 AM, Chris Lattner wrote: > On May 7, 2009, at 6:24 PM, Mike Stump wrote: >> I'm toying with building with -mdynamic-no-pic, but for this to work, >> the shared library bits in llvm can't be built with that flag. > > Hi Mike, > > If you're doing this for Clang's benefit, No, not really, I'm doing it for the general benefit of llvm and all that use Makefile.rules. > I think...
2009 May 08
2
[LLVMdev] Darwin option processing
...: they > should generally all be built pic. After reviewing yet more of the Makefile,rules file, I believe ENABLE_PIC is the right thing to check. Currently ENABLE_PIC has to be set to get shared bits built, if the user wants them. Given that, we can use that to control wether or not -mdynamic-no-pic is added. Because this _must_ be set, it is safe to use the setting of that flag to make the decision on wether to add -mdynamic-no-pic. If that flag isn't set, the resulting objects, in general, can't be used in a shared library. > This is because we don't know how...
2009 May 08
0
[LLVMdev] Darwin option processing
On May 7, 2009, at 6:24 PM, Mike Stump wrote: > I'm toying with building with -mdynamic-no-pic, but for this to work, > the shared library bits in llvm can't be built with that flag. Hi Mike, If you're doing this for Clang's benefit, I think the best thing to do is to compile LLVM PIC (the default) and then build the clang front- end pieces with -mdynamic-no-pic....
2009 Mar 04
2
[LLVMdev] Fwd: PPC Nightly Build Result
...ult > > /Volumes/SandBox/NightlyTest/llvmgcc42.roots/llvmgcc42~obj/obj- > powerpc-powerpc/./prev-gcc/xgcc -B/Volumes/SandBox/NightlyTest/ > llvmgcc42.roots/llvmgcc42~obj/obj-powerpc-powerpc/./prev-gcc/ -B/ > Developer/usr/llvm-gcc-4.2/powerpc-apple-darwin9/bin/ -c -g -O2 - > mdynamic-no-pic -DIN_GCC -W -Wall -Wwrite-strings -Wstrict- > prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno- > variadic-macros -Wno-overlength-strings -Wold-style-definition - > Wmissing-format-attribute -Werror -DHAVE_CONFIG_H -I. -I. -I/ > Volumes/SandBox/NightlyTest/l...
2009 Mar 05
0
[LLVMdev] Fwd: PPC Nightly Build Result
...olumes/SandBox/NightlyTest/llvmgcc42.roots/llvmgcc42~obj/obj- > > powerpc-powerpc/./prev-gcc/xgcc -B/Volumes/SandBox/NightlyTest/ > > llvmgcc42.roots/llvmgcc42~obj/obj-powerpc-powerpc/./prev-gcc/ -B/ > > Developer/usr/llvm-gcc-4.2/powerpc-apple-darwin9/bin/ -c   -g -O2 - > > mdynamic-no-pic -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict- > > prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno- > > variadic-macros -Wno-overlength-strings -Wold-style-definition - > > Wmissing-format-attribute -Werror    -DHAVE_CONFIG_H -I. -I. -I/ > > Volumes/SandB...
2009 Mar 05
1
[LLVMdev] Fwd: PPC Nightly Build Result
...ox/NightlyTest/llvmgcc42.roots/llvmgcc42~obj/obj- >>> powerpc-powerpc/./prev-gcc/xgcc -B/Volumes/SandBox/NightlyTest/ >>> llvmgcc42.roots/llvmgcc42~obj/obj-powerpc-powerpc/./prev-gcc/ -B/ >>> Developer/usr/llvm-gcc-4.2/powerpc-apple-darwin9/bin/ -c -g -O2 - >>> mdynamic-no-pic -DIN_GCC -W -Wall -Wwrite-strings -Wstrict- >>> prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno- >>> variadic-macros -Wno-overlength-strings -Wold-style-definition - >>> Wmissing-format-attribute -Werror -DHAVE_CONFIG_H -I. -I. -I/ >>> V...
2009 May 08
0
[LLVMdev] Darwin option processing
On May 8, 2009, at 12:58 PM, Mike Stump wrote: >> I think the best thing to do >> is to compile LLVM PIC (the default) and then build the clang front- >> end pieces with -mdynamic-no-pic. Does this work for you? > > The proposed patch is more general that that. It avoids the flag, > when it is known it can't work, and leaves it in otherwise. This > allows the configurer of llvm to make the choice. Longer term, I'd > like to have the build system de...
2009 May 08
0
[LLVMdev] Darwin option processing
.../Makefile.rules =================================================================== --- clang/Makefile.rules (revision 71270) +++ clang/Makefile.rules (working copy) @@ -338,6 +338,11 @@ C.Flags += -fPIC endif endif +else + ifeq ($(OS),Darwin) + CXX.Flags += -mdynamic-no-pic + C.Flags += -mdynamic-no-pic + endif endif CXX.Flags += $(CXXFLAGS) -Woverloaded-virtual is the patch I had in mind. Any objections?
2010 Apr 04
1
[LLVMdev] _gt_ggc_r_gt_darwin_c_h undefined
While attempting to build llvm-gcc-4.2 from llvm-2.7 release branch, I am finding that the build fails at... c++ -g -O2 -mdynamic-no-pic -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wmissing-format-attribute -mdynamic-no-pic -DHAVE_CONFIG_H -o f951 \ fortran/arith.o fortran/array.o fortran/bbt.o f...
2008 Aug 11
5
[LLVMdev] gfortran link failure in current llvm svn
The curent llvm svn (r54623) is unable to link the gfortran compiler in llvm-gcc-4.2 svn. I am getting the error... c++ -g -O2 -mdynamic-no-pic -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wmissing-format-attribute -mdynamic-no-pic -DHAVE_CONFIG_H -o f951 \ fortran/arith.o fortran/array.o fortran/bbt.o f...
2009 Jun 30
0
[LLVMdev] llvm-gcc-4.2 build failure: llvm-convert.cpp:‘ReplacementStrings’ may be used uninitialized in this function
g++ -m32 -c -g -O2 -mdynamic-no-pic -DIN_GCC -W -Wall -Wwrite-strings - pedantic -Wno-long-long -Wno-variadic-macros -Wmissing-format- attribute -Werror -mdynamic-no-pic -DHAVE_CONFIG_H -Wno-unused - DTARGET_NAME=\"i686-apple-darwin9\" -DNDEBUG -I. -I. -I/tmp/ llvmgcc42.roots/llvmgcc42~obj/src/gcc -I/tmp/llvmgcc4...
2009 Sep 16
0
[LLVMdev] Suppressing cmake's LLVM_ENABLE_PIC for the Xcode generator
Hi, If you create an Xcode project with cmake -G Xcode ~/llvm and do a build, you end up with 68 warnings like this: -mdynamic-no-pic overrides -fpic or -fPIC This can be easily avoided doing: cmake -G Xcode -ULLVM_ENABLE_PIC ~/llvm But I think it would be nicer if it built warning-free with the simpler form. What do you think? Ray PS: CMake generated make style builds on Mac OS X don't use the - mdynami...
2011 Jun 23
1
[LLVMdev] Strange Failure in LLVM Test Suite
Dear All, I'm getting the following error on Mac OS X when compiling C++ code in the LLVM test suite: g++ Output/minisat.llc.s -o Output/minisat.llc -lm -m64 -fomit-frame-pointer -mdynamic-no-pic -lstdc++ -lm Output/minisat.llc.s:5:Unknown pseudo-op: .cfi_startproc Output/minisat.llc.s:8:Unknown pseudo-op: .cfi_def_cfa_offset Output/minisat.llc.s:8:Rest of line ignored. 1st junk character valued 49 (1). Output/minisat.llc.s:11:Unknown pseudo-op: .cfi_def_cfa_offset Output/minisat.ll...
2008 Jan 05
0
Assembly on Mac OS needs to be relocatable
...igned_block_asm_ia32_bswap.c1_next2 (offset 0x00000012) prevents image from loading in dyld shared cache ld: warning codegen in FLAC__bitreader_read_rice_signed_block_asm_ia32_bswap.c2_next4 (offset 0x00000015) prevents image from loading in dyld shared cache ld: absolute addressing (perhaps -mdynamic-no-pic) used in FLAC__bitreader_read_rice_signed_block_asm_ia32_bswap.c1_loop from .libs/libFLAC.lax/libFLAC-asm.a/bitreader_asm.o not allowed in slidable image Mach-O shared libraries must be relocatable (-mdynamic-no-pic is a GCC flag for Darwin that makes it generate code where only the...
2011 Oct 21
1
[LLVMdev] Typo in IsLegalToCallImmediateAddr?
Thought a bit more. There's also -mdynamic-no-pic. Not typically used these days, but is still there AFAIK. -Jim On Oct 21, 2011, at 4:05 PM, Eric Christopher wrote: > IIRC the kernel uses relocation model as static. > > -eric > > On Oct 21, 2011, at 3:57 PM, David Meyer wrote: > >> Eli, >> >> Hm....
2007 Jan 01
0
[LLVMdev] nightly tester grawp
...uess the issue is llvm-gcc has to be updated. There are some issues with the Apple svn repository so I checked out a copy from the public mirror. Looks the latest patch hasn't made it through: c++ -c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -pedantic -Wno-long- long -Wno-variadic-macros -mdynamic-no-pic -DHAVE_CONFIG_H -Wno- unused \-DTARGET_NAME=\"i686-apple-darwin8\" -DNDEBUG -DENABLE_LLVM - D__STDC_LIMIT_MACROS -I. -I. -I../../gcc.llvm/gcc -I../../gcc.llvm/ gcc/. -I.\./../gcc.llvm/gcc/../include -I../../gcc.llvm/gcc/../libcpp/ include -I/Volumes/Muggles/LLVM/llvm/include...
2006 Dec 31
3
[LLVMdev] nightly tester grawp
On Sun, 2006-12-31 at 13:37 -0800, Chris Lattner wrote: > On Sat, 30 Dec 2006, Reid Spencer wrote: > >>> You all just need remove "stacker_rt.ll". the stacker_rt.ll is a > >> rebuilt so they output proper .ll files. Reid, can you change the > >> makefile rule to use "llvm-gcc -S -emit-llvm -o - | llvm-upgrade > $@" or > >> the
2013 Mar 08
0
[LLVMdev] ARM assembler's syntax in clang
...akefile, include several different option test(details are all in Makefile). Test environment is Xcode4.6. The test_d_m1_1 can't be generated due to illegal text-relocation error and others can be generated, they are 3 dynamic targets and 3 static targets, the test_s_m1_2 have a warning due to -mdynamic-no-pic option. however I haven't test them on iOS device, I'm not sure whether the "-Wl,-read_only_relocs,suppress" option would really work. /* ==begin table.c== */ int data_table[] = {0xff, 0xff}; /* ==end table.c== */ /* ==begin use_table_m1.s== * use table by LDR */...
2014 Jan 07
2
[LLVMdev] Generating PIC object files from the LLVM API
...3.4. To that extent I have: targetMachine = engineBuilder.selectTarget(); // ... targetMachine->addPassesToEmitFile(<...>); At first glance this appears to work, but when linking the object file I get the warning: ld: warning: PIE disabled. Absolute addressing (perhaps -mdynamic-no-pic) not allowed in code signed PIE, but used in <...>. To fix this warning, don't compile with -mdynamic-no-pic or link with -Wl,-no_pie This novice developer thought that the solution would be: engineBuilder.setRelocationModel(Reloc::PIC_); However this has no diff in the resu...