bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/18591] New: Invalid R_X86_64_GOTPCREL -> R_X86_64_PC32 conversio


From: hjl.tools at gmail dot com
Subject: [Bug ld/18591] New: Invalid R_X86_64_GOTPCREL -> R_X86_64_PC32 conversions
Date: Wed, 24 Jun 2015 11:25:38 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=18591

            Bug ID: 18591
           Summary: Invalid R_X86_64_GOTPCREL -> R_X86_64_PC32 conversions
           Product: binutils
           Version: 2.26 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com
  Target Milestone: ---

address@hidden lea]$ cat x.S
        .data
        .space 0x100000000
        .hidden foo
        .globl  foo
        .type   foo, @object
foo:
        .long 20
        .size   foo, .-foo
        .text
        .globl  _start
        .type   _start, @function
_start:
        movq    address@hidden(%rip), %rax
        .size   _start, .-_start
address@hidden lea]$ make
gcc -B./    -c -o x.o x.S
./ld  -shared -o x.so x.o
x.o: In function `_start':
(.text+0x3): relocation truncated to fit: R_X86_64_PC32 against symbol `foo'
defined in .data section in x.o
Makefile:26: recipe for target 'x.so' failed
make: *** [x.so] Error 1
address@hidden lea]$

-- 
You are receiving this mail because:
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]