bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/23324] New: Regression: R_X86_64_converted_reloc_bit left in lin


From: zenith432 at users dot sourceforge.net
Subject: [Bug ld/23324] New: Regression: R_X86_64_converted_reloc_bit left in linker output with -q
Date: Thu, 21 Jun 2018 07:49:36 +0000

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

            Bug ID: 23324
           Summary: Regression: R_X86_64_converted_reloc_bit left in
                    linker output with -q
           Product: binutils
           Version: 2.31 (HEAD)
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: zenith432 at users dot sourceforge.net
                CC: hjl.tools at gmail dot com
  Target Milestone: 2.31

========== main.c
#include <stdio.h>

int a = 5;
int* f(void);

int main(int argc, char** argv)
{
        printf("address of a is %p\n", f());
        return 0;
}
==========
========== helper.s
        .globl f
        .text
f:
        movq address@hidden(%rip), %rax
        ret
==========

gcc -fpic -static-pie -Wl,-q -o test main.c helper.s
objdump -d -r test >test.txt

Lots of...
objdump: test: invalid relocation type 130
objdump: BFD version 2.29.1-23.fc28 assertion fail elf64-x86-64.c:351

0000000000009d28 <f>:
    9d28:       48 8d 05 f5 73 0a 00    lea    0xa73f5(%rip),%rax        #
b1124 <a>
                        9d2b: R_X86_64_NONE     a-0x4
    9d2f:       c3                      retq

It shows R_X86_64_NONE for that reloc value of 130 == 128 | 2 ==
R_X86_64_converted_reloc_bit |  R_X86_64_PC32.

It's this commit
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commit;h=a6fd92b0578c5d2172799d7f38ddbda1bd87ea03

-- 
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]