bug-binutils
[Top][All Lists]
Advanced

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

[Bug gold/17795] New: Initial-Exec to Local-Exec may change the previous


From: hjl.tools at gmail dot com
Subject: [Bug gold/17795] New: Initial-Exec to Local-Exec may change the previous instruction
Date: Mon, 05 Jan 2015 16:42:54 +0000

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

address@hidden gold]$ cat x.s
    .text
    .globl _start
_start:
        movq    %fs:0, %rax
    addl    $0x4c000000,%ebx
        addl        address@hidden(%rip), %eax
        retq
.globl external_ie
    .section    .tdata,"awT",@progbits
    .align 4
    .type    external_ie, @object
    .size    external_ie, 4
external_ie:
    .long    100
address@hidden 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   
address@hidden 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]