<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - emits PPC asm with relocation overflow, displacement too large [powerpc-darwin8]"
   href="http://llvm.org/bugs/show_bug.cgi?id=15763">15763</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>emits PPC asm with relocation overflow, displacement too large [powerpc-darwin8]
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Backend: PowerPC
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>fang@csl.cornell.edu
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Depends on</th>
          <td>15726
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Using -no-integrated-as, my stage-2 build of LLVMSupport on powerpc-darwin8 now
halts at:

Linking CXX shared library ../libLLVMSupport.dylib
cd /Users/fang/local/src/LLVM-svn/gcc40-stage2-build/lib/Support &&
/Volumes/Mercedes2/sw/bin/cmake -E cmake_link_script
CMakeFiles/LLVMSupport.dir/link.txt --verbose=1
/Volumes/Isolde/sources/LLVM-svn/gcc40-cmake-build/bin/clang++ 
-I/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include -fno-common
-no-integrated-as -fno-dwarf2-cfi-asm -fPIC -fvisibility-inlines-hidden -Wall
-W -Wno-unused-parameter -Wwrite-strings -pedantic -Wno-long-long
-Wnon-virtual-dtor -fno-rtti -isysroot /Developer/SDKs/MacOSX10.4u.sdk
-dynamiclib -Wl,-headerpad_max_install_names -target 10.4
-L/Users/fang/local/src/LLVM-svn/gcc40-cmake-build/lib/clang/3.3/lib/darwin
-lclang_rt.ppc -o ../libLLVMSupport.dylib -install_name
/Users/fang/local/src/LLVM-svn/gcc40-stage2-build/lib/libLLVMSupport.dylib
CMakeFiles/LLVMSupport.dir/APFloat.cpp.o CMakeFiles/LLVMSupport.dir/APInt.cpp.o
CMakeFiles/LLVMSupport.dir/APSInt.cpp.o
CMakeFiles/LLVMSupport.dir/Allocator.cpp.o
CMakeFiles/LLVMSupport.dir/BlockFrequency.cpp.o
CMakeFiles/LLVMSupport.dir/BranchProbability.cpp.o
CMakeFiles/LLVMSupport.dir/circular_raw_ostream.cpp.o
CMakeFiles/LLVMSupport.dir/CommandLine.cpp.o
CMakeFiles/LLVMSupport.dir/ConstantRange.cpp.o
CMakeFiles/LLVMSupport.dir/ConvertUTF.c.o
CMakeFiles/LLVMSupport.dir/ConvertUTFWrapper.cpp.o
CMakeFiles/LLVMSupport.dir/CrashRecoveryContext.cpp.o
CMakeFiles/LLVMSupport.dir/DataExtractor.cpp.o
CMakeFiles/LLVMSupport.dir/DataStream.cpp.o
CMakeFiles/LLVMSupport.dir/Debug.cpp.o
CMakeFiles/LLVMSupport.dir/DeltaAlgorithm.cpp.o
CMakeFiles/LLVMSupport.dir/DAGDeltaAlgorithm.cpp.o
CMakeFiles/LLVMSupport.dir/Dwarf.cpp.o
CMakeFiles/LLVMSupport.dir/ErrorHandling.cpp.o
CMakeFiles/LLVMSupport.dir/FileUtilities.cpp.o
CMakeFiles/LLVMSupport.dir/FileOutputBuffer.cpp.o
CMakeFiles/LLVMSupport.dir/FoldingSet.cpp.o
CMakeFiles/LLVMSupport.dir/Format.cpp.o
CMakeFiles/LLVMSupport.dir/FormattedStream.cpp.o
CMakeFiles/LLVMSupport.dir/GraphWriter.cpp.o
CMakeFiles/LLVMSupport.dir/Hashing.cpp.o
CMakeFiles/LLVMSupport.dir/IntEqClasses.cpp.o
CMakeFiles/LLVMSupport.dir/IntervalMap.cpp.o
CMakeFiles/LLVMSupport.dir/IntrusiveRefCntPtr.cpp.o
CMakeFiles/LLVMSupport.dir/IsInf.cpp.o CMakeFiles/LLVMSupport.dir/IsNAN.cpp.o
CMakeFiles/LLVMSupport.dir/Locale.cpp.o
CMakeFiles/LLVMSupport.dir/LockFileManager.cpp.o
CMakeFiles/LLVMSupport.dir/ManagedStatic.cpp.o
CMakeFiles/LLVMSupport.dir/MemoryBuffer.cpp.o
CMakeFiles/LLVMSupport.dir/MemoryObject.cpp.o
CMakeFiles/LLVMSupport.dir/PluginLoader.cpp.o
CMakeFiles/LLVMSupport.dir/PrettyStackTrace.cpp.o
CMakeFiles/LLVMSupport.dir/Regex.cpp.o
CMakeFiles/LLVMSupport.dir/SmallPtrSet.cpp.o
CMakeFiles/LLVMSupport.dir/SmallVector.cpp.o
CMakeFiles/LLVMSupport.dir/SourceMgr.cpp.o
CMakeFiles/LLVMSupport.dir/Statistic.cpp.o
CMakeFiles/LLVMSupport.dir/StreamableMemoryObject.cpp.o
CMakeFiles/LLVMSupport.dir/StringExtras.cpp.o
CMakeFiles/LLVMSupport.dir/StringMap.cpp.o
CMakeFiles/LLVMSupport.dir/StringPool.cpp.o
CMakeFiles/LLVMSupport.dir/StringRef.cpp.o
CMakeFiles/LLVMSupport.dir/SystemUtils.cpp.o
CMakeFiles/LLVMSupport.dir/Timer.cpp.o
CMakeFiles/LLVMSupport.dir/ToolOutputFile.cpp.o
CMakeFiles/LLVMSupport.dir/Triple.cpp.o CMakeFiles/LLVMSupport.dir/Twine.cpp.o
CMakeFiles/LLVMSupport.dir/YAMLParser.cpp.o
CMakeFiles/LLVMSupport.dir/YAMLTraits.cpp.o
CMakeFiles/LLVMSupport.dir/raw_os_ostream.cpp.o
CMakeFiles/LLVMSupport.dir/raw_ostream.cpp.o
CMakeFiles/LLVMSupport.dir/regcomp.c.o CMakeFiles/LLVMSupport.dir/regerror.c.o
CMakeFiles/LLVMSupport.dir/regexec.c.o CMakeFiles/LLVMSupport.dir/regfree.c.o
CMakeFiles/LLVMSupport.dir/regstrlcpy.c.o
CMakeFiles/LLVMSupport.dir/Atomic.cpp.o
CMakeFiles/LLVMSupport.dir/Disassembler.cpp.o
CMakeFiles/LLVMSupport.dir/DynamicLibrary.cpp.o
CMakeFiles/LLVMSupport.dir/Errno.cpp.o CMakeFiles/LLVMSupport.dir/Host.cpp.o
CMakeFiles/LLVMSupport.dir/IncludeFile.cpp.o
CMakeFiles/LLVMSupport.dir/Memory.cpp.o CMakeFiles/LLVMSupport.dir/Mutex.cpp.o
CMakeFiles/LLVMSupport.dir/Path.cpp.o CMakeFiles/LLVMSupport.dir/PathV2.cpp.o
CMakeFiles/LLVMSupport.dir/Process.cpp.o
CMakeFiles/LLVMSupport.dir/Program.cpp.o
CMakeFiles/LLVMSupport.dir/RWMutex.cpp.o
CMakeFiles/LLVMSupport.dir/SearchForAddressOfSpecialSymbol.cpp.o
CMakeFiles/LLVMSupport.dir/Signals.cpp.o
CMakeFiles/LLVMSupport.dir/system_error.cpp.o
CMakeFiles/LLVMSupport.dir/TargetRegistry.cpp.o
CMakeFiles/LLVMSupport.dir/ThreadLocal.cpp.o
CMakeFiles/LLVMSupport.dir/Threading.cpp.o
CMakeFiles/LLVMSupport.dir/TimeValue.cpp.o
CMakeFiles/LLVMSupport.dir/Valgrind.cpp.o
CMakeFiles/LLVMSupport.dir/Watchdog.cpp.o
CMakeFiles/LLVMSupport.dir/stacktrace.cc.o -lpthread -lclang_rt.ppc
ld: CMakeFiles/LLVMSupport.dir/APInt.cpp.o relocation overflow for relocation
entry 9 in section (__TEXT,__picsymbolstub1) (displacement too large)
ld: CMakeFiles/LLVMSupport.dir/APInt.cpp.o relocation overflow for relocation
entry 14 in section (__TEXT,__picsymbolstub1) (displacement too large)
ld: CMakeFiles/LLVMSupport.dir/APInt.cpp.o relocation overflow for relocation
entry 19 in section (__TEXT,__picsymbolstub1) (displacement too large)
ld: CMakeFiles/LLVMSupport.dir/Allocator.cpp.o relocation overflow for
relocation entry 4 in section (__TEXT,__picsymbolstub1) (displacement too
large)
ld: CMakeFiles/LLVMSupport.dir/Allocator.cpp.o relocation overflow for
relocation entry 9 in section (__TEXT,__picsymbolstub1) (displacement too
large)
ld: CMakeFiles/LLVMSupport.dir/BlockFrequency.cpp.o relocation overflow for
relocation entry 4 in section (__TEXT,__picsymbolstub1) (displacement too
large)
ld: CMakeFiles/LLVMSupport.dir/BranchProbability.cpp.o relocation overflow for
relocation entry 9 in section (__TEXT,__picsymbolstub1) (displacement too
large)
ld: CMakeFiles/LLVMSupport.dir/circular_raw_ostream.cpp.o relocation overflow
for relocation entry 4 in section (__TEXT,__picsymbolstub1) (displacement too
large)
... more ...

This doesn't involve the MC code yet.
The system assembler /usr/bin/as doesn't complain.
Only the linker does.
Is the assembly generated bad?</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>