https://sourceware.org/bugzilla/show_bug.cgi?id=19600

            Bug ID: 19600
           Summary: Parsing $E@GOT+1 forgets the offset
           Product: binutils
           Version: 2.25
            Status: NEW
          Severity: minor
          Priority: P2
         Component: gas
          Assignee: unassigned at sourceware dot org
          Reporter: louis.granboulan.developer at gmail dot com
  Target Milestone: ---

Input is a.s

        .globl  main
        .text
main:
        movl    $E, %eax
        movl    $E+1, %eax
        movl    $E@GOT, %eax
        movl    $E@GOT+1, %eax

Assembled with "as -32 -o a.o a.s"
Analyzed with "objdump -dr a.o"

a.o:     file format elf32-i386
Disassembly of section .text:
00000000 <main>:
   0:   b8 00 00 00 00          mov    $0x0,%eax
                        1: R_386_32     E
   5:   b8 01 00 00 00          mov    $0x1,%eax
                        6: R_386_32     E
   a:   b8 00 00 00 00          mov    $0x0,%eax
                        b: R_386_GOT32  E
   f:   b8 00 00 00 00          mov    $0x0,%eax
                        10: R_386_GOT32 E

The error is the last line, where I would have expected "b8 01 00 00 00"

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

Reply via email to