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: hpa at zytor dot com
Subject: [Bug binutils/12627] ld from binutils 2.21.51.0.6 mishandles differences between two section-relative symbols
Date: Fri, 1 Apr 2011 04:11:07 +0000

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

--- Comment #3 from hpa at zytor dot com <hpa at zytor dot com> 2011-04-01 
04:10:58 UTC ---
I just downloaded binutils-2.21.51.06.tar.bz2 from your repository on
kernel.org and built it myself, and I could reproduce the bug there.
The date part of the version number is different from your trace below,
though (and the date part agrees with what is in Fedora 15 Alpha):

: tazenda 135 ; nm symerr.elf
00000500 A __bss16_dwords
00001400 B __bss16_end
00001400 B __bss16_len
00001000 B __bss16_start
0000800f T __text16_end
00008000 T __text16_start
00008000 T _start
: tazenda 136 ; objdump -dw symerr.elf

symerr.elf:     file format elf32-i386


Disassembly of section .text16:

00008000 <__text16_start>:
    8000:       bf 00 10 00 00          mov    $0x1000,%edi
    8005:       b9 00 05 00 00          mov    $0x500,%ecx
    800a:       31 c0                   xor    %eax,%eax
    800c:       f3 a5                   rep movsl %ds:(%esi),%es:(%edi)
    800e:       c3                      ret
: tazenda 137 ; ld -V
GNU ld (Linux/GNU Binutils) 2.21.51.0.6.20110118
  Supported emulations:
   elf_x86_64
   elf32_x86_64
   elf_i386
   i386linux
   elf_l1om
: tazenda 138 ;


On 03/31/2011 04:15 PM, hjl.tools at gmail dot com wrote:
> 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]