http://sourceware.org/bugzilla/show_bug.cgi?id=15685
Bug ID: 15685
Summary: R_X86_64_DTPOFF64 incorrectly handled
Product: binutils
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: dblaikie at gmail dot com
Given the following simpl.s:
.file "simpl.c"
.globl thrd
.section .tdata,"awT",@progbits
.align 4
.type thrd, @object
.size thrd, 4
thrd:
.long 2
.text
.globl func
.type func, @function
func:
.byte 0x42
.quad thrd@dtpoff
.byte 0x42
.long thrd@dtpoff
.byte 0x42
Assembled with gas and then linked with gold produces:
00000e0 0004 0000 0000 0000 fc42 ffff ffff ffff
00000f0 42ff fffc ffff 0042 0002 0000 0004 0000
ie: fffffffffffffffc
fffffffc
Whereas with binutils-ld:
00000e0 0004 0000 0000 0000 f842 6000 0000 0000
00000f0 4200 fffc ffff 0042 0002 0000 2e00 7973
ie: 00000000006000f8
fffffffc
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils