bug-binutils
[Top][All Lists]
Advanced

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

[Bug gold/15927] New: Gold doesn't handle R_X86_64_32 properly for x32


From: hjl.tools at gmail dot com
Subject: [Bug gold/15927] New: Gold doesn't handle R_X86_64_32 properly for x32
Date: Tue, 03 Sep 2013 17:22:53 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=15927

            Bug ID: 15927
           Summary: Gold doesn't handle R_X86_64_32 properly for x32
           Product: binutils
           Version: 2.24 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gold
          Assignee: ian at airs dot com
          Reporter: hjl.tools at gmail dot com
                CC: ccoutant at google dot com

From:

http://sourceware.org/ml/binutils/2013-09/msg00003.html

Test case:
int bar() {
   return 42;
}

static int *a = (int *)&bar;

Currently when compiled with -shared -fpic -mx32 -fvisibility=hidden
and linked with gold:

.rela.dyn
00002004  0000050a R_X86_64_32       000002f4   bar + 0
.dynsym
5: 000002f4    10 FUNC    LOCAL  HIDDEN     7 bar
.symtab
8: 000002f4    10 FUNC    LOCAL  HIDDEN     7 bar

After patch:

.rela.dyn
00002004  00000008 R_X86_64_RELATIVE                            000002a4
.dynsym
Don't have bar entry
.symtab
8: 000002a4    10 FUNC    LOCAL  HIDDEN     7 bar

The patch is at

http://sourceware.org/ml/binutils/2013-08/msg00162.html

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