[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/2946] New: jmp to a weak symbol jumps to a wrong address
From: |
vincent dot riviere at freesbee dot fr |
Subject: |
[Bug gas/2946] New: jmp to a weak symbol jumps to a wrong address |
Date: |
20 Jul 2006 19:38:25 -0000 |
Same bug on different platforms and versions of gas :
* gas 2.15 on i386-linux (Debian stable)
* gas 2.17 on i386-linux (Debian testing)
* cross-compiled gas 2.17 for target m68k-*-*
But NO BUG on Cygwin gas 2.16.91 20050610
The source : bug.s
jmp mylabel
nop
.weak mylabel
mylabel:
nop
$ as bug.s -o bug.o
$ objdump -d bug.o
bug.o: file format elf32-i386
Disassembly of section .text:
00000000 <mylabel-0x6>:
0: e9 fc ff ff ff jmp 1 <mylabel-0x5>
5: 90 nop
00000006 <mylabel>:
6: 90 nop
The value of the jump is wrong.
It should be <mylabel>, bug it's <mylabel-0x5>
--
Summary: jmp to a weak symbol jumps to a wrong address
Product: binutils
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: gas
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: vincent dot riviere at freesbee dot fr
CC: bug-binutils at gnu dot org
GCC build triplet: all
GCC host triplet: all
GCC target triplet: i?86-linux, m68k-*-*
http://sourceware.org/bugzilla/show_bug.cgi?id=2946
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
- [Bug gas/2946] New: jmp to a weak symbol jumps to a wrong address,
vincent dot riviere at freesbee dot fr <=