https://sourceware.org/bugzilla/show_bug.cgi?id=17795
Bug ID: 17795 Summary: Initial-Exec to Local-Exec may change the previous instruction 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 [hjl@gnu-6 gold]$ cat x.s .text .globl _start _start: movq %fs:0, %rax addl $0x4c000000,%ebx addl external_ie@GOTTPOFF(%rip), %eax retq .globl external_ie .section .tdata,"awT",@progbits .align 4 .type external_ie, @object .size external_ie, 4 external_ie: .long 100 [hjl@gnu-6 gold]$ make cc -O2 -c x.s ./ld -o x x.o objdump -dw x x: file format elf64-x86-64 Disassembly of section .text: 00000000004000e8 <_start>: 4000e8: 64 48 8b 04 25 00 00 00 00 mov %fs:0x0,%rax 4000f1: 81 c3 00 00 00 4d add $0x4d000000,%ebx 4000f7: 8d 80 fc ff ff ff lea -0x4(%rax),%eax 4000fd: c3 retq [hjl@gnu-6 gold]$ The second instruction is changed from addl $0x4c000000,%ebx to add $0x4d000000,%ebx -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils