[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gold/17809] New: Initial-Exec to Local-Exec isn't handled properly
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug gold/17809] New: Initial-Exec to Local-Exec isn't handled properly for x32 |
Date: |
Tue, 06 Jan 2015 20:53:21 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=17809
Bug ID: 17809
Summary: Initial-Exec to Local-Exec isn't handled properly for
x32
Product: binutils
Version: 2.26 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: gold
Assignee: ccoutant at google dot com
Reporter: hjl.tools at gmail dot com
CC: ian at airs dot com
address@hidden gold]$ cat x.s
.text
.globl _start
_start:
mov address@hidden(%rip), %eax
add address@hidden(%rip), %eax
mov address@hidden(%rip), %r8d
add address@hidden(%rip), %r8d
mov address@hidden(%rip), %r12d
add address@hidden(%rip), %r12d
.globl foo
.section .tdata,"awT",@progbits
.align 4
.type foo, @object
.size foo, 4
foo:
.long 100
address@hidden gold]$ make
cc -O2 -mx32 -c x.s
./ld -m elf32_x86_64 -o x x.o
objdump -dw x > x.out
ld.bfd -m elf32_x86_64 -o y x.o
objdump -dw y > y.out
diff -up y.out x.out
--- y.out 2015-01-06 12:52:43.874735121 -0800
+++ x.out 2015-01-06 12:52:43.871735117 -0800
@@ -1,5 +1,5 @@
-y: file format elf32-x86-64
+x: file format elf32-x86-64
Disassembly of section .text:
@@ -7,7 +7,7 @@ Disassembly of section .text:
00400094 <_start>:
400094: 40 c7 c0 fc ff ff ff rex mov $0xfffffffc,%eax
40009b: 40 8d 80 fc ff ff ff rex lea -0x4(%rax),%eax
- 4000a2: 41 c7 c0 fc ff ff ff mov $0xfffffffc,%r8d
- 4000a9: 45 8d 80 fc ff ff ff lea -0x4(%r8),%r8d
- 4000b0: 41 c7 c4 fc ff ff ff mov $0xfffffffc,%r12d
- 4000b7: 41 81 c4 fc ff ff ff add $0xfffffffc,%r12d
+ 4000a2: 44 c7 c0 fc ff ff ff rex.R mov $0xfffffffc,%eax
+ 4000a9: 44 8d 80 fc ff ff ff lea -0x4(%rax),%r8d
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug gold/17809] New: Initial-Exec to Local-Exec isn't handled properly for x32,
hjl.tools at gmail dot com <=