[LLVMbugs] [Bug 9693] New: [MC] Invalid GOTOFF relocation in shared library objects
    bugzilla-daemon at llvm.org 
    bugzilla-daemon at llvm.org
       
    Tue Apr 12 18:43:20 PDT 2011
    
    
  
http://llvm.org/bugs/show_bug.cgi?id=9693
           Summary: [MC] Invalid GOTOFF relocation in shared library
                    objects
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Common Code Generator Code
        AssignedTo: rafael.espindola at gmail.com
        ReportedBy: cdavis at mymail.mines.edu
                CC: llvmbugs at cs.uiuc.edu, austinenglish at gmail.com
On freenode#winehackers, Austin English reported the following while building
Wine with latest trunk LLVM/Clang:
austin at aw21 ~/src/wine-clang/dlls/msvcrt $ make
../../tools/winegcc/winegcc  -B../../tools/winebuild --sysroot=../..
-fasynchronous-unwind-tables -shared ./msvcrt.spec console.o cpp.o cppexcept.o
ctype.o data.o dir.o environ.o errno.o except.o exit.o file.o heap.o locale.o
lock.o main.o math.o mbcs.o misc.o process.o scanf.o string.o thread.o time.o
undname.o wcs.o     rsrc.res    -o msvcrt.dll.so -ladvapi32 -luser32 
-Wb,-dadvapi32 -Wb,-duser32 ../../libs/port/libwine_port.a   
/usr/lib/gcc/i686-pc-linux-gnu/4.4.5/../../../../i686-pc-linux-gnu/bin/ld:
math.o: relocation R_386_GOTOFF against undefined symbol `cos@@GLIBC_2.0' can
not be used when making a shared object
/usr/lib/gcc/i686-pc-linux-gnu/4.4.5/../../../../i686-pc-linux-gnu/bin/ld:
final link failed: Bad value
clang: error: linker command failed with exit code 1 (use -v to see invocation)
winegcc: clang failed
make: *** [msvcrt.dll.so] Error 2
Looks like the ELF writer is generating GOTOFF relocations when it shouldn't be
(i.e. in PIC objects).
I'll try to get him to reduce this to something you can use.
-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
    
    
More information about the llvm-bugs
mailing list