bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/12627] ld from binutils 2.21.51.0.6 mishandles differences


From: hjl.tools at gmail dot com
Subject: [Bug binutils/12627] ld from binutils 2.21.51.0.6 mishandles differences between two section-relative symbols
Date: Thu, 31 Mar 2011 23:15:30 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=12627

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> 2011-03-31 23:15:21 
UTC ---
I got

address@hidden pr12627]$ make
./usr/local/bin/as --32  -o x.o x.s
./usr/local/bin/ld -m elf_i386 -T x.ld -o x x.o
nm x
00000100 A __bss16_dwords
00001400 B __bss16_end
00000400 A __bss16_len
00001000 B __bss16_start
0000800f T __text16_end
00008000 T __text16_start
00008000 T _start
objdump -dw x

x:     file format elf32-i386


Disassembly of section .text16:

00008000 <__text16_start>:
    8000:    bf 00 10 00 00           mov    $0x1000,%edi
    8005:    b9 00 01 00 00           mov    $0x100,%ecx
    800a:    31 c0                    xor    %eax,%eax
    800c:    f3 a5                    rep movsl %ds:(%esi),%es:(%edi)
    800e:    c3                       ret    
address@hidden pr12627]$ ./usr/local/bin/ld -V
GNU ld (Linux/GNU Binutils) 2.21.51.0.6.20110123
  Supported emulations:
   elf_x86_64
   elf32_x86_64
   elf_i386
   i386linux
   elf_l1om
address@hidden pr12627]$ 

It looks OK to me.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- 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]