Bug 3966 - IA32 32bit address wrap around doesn't work with 32bit host
Summary: IA32 32bit address wrap around doesn't work with 32bit host
Status: RESOLVED FIXED
Alias: None
Product: binutils
Classification: Unclassified
Component: ld (show other bugs)
Version: 2.18
: P2 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-03 20:38 UTC by H.J. Lu
Modified: 2007-02-06 22:34 UTC (History)
1 user (show)

See Also:
Host: i686-pc-linux-gnu
Target: i686-pc-linux-gnu
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description H.J. Lu 2007-02-03 20:38:12 UTC
[hjl@gnu-9 abs-1]$ cat foo.s
SEGMENT_SIZE = 0x10000
RVECTOR = 0x00010
.code16
 .globl _start
_start:
 jmp SEGMENT_SIZE-(0x1f00 +0xf0 +RVECTOR)
[hjl@gnu-9 abs-1]$ make foo.elf
as --32 -o foo.o foo.s
./ld -melf_i386 -Ttext 0xfffffff0 -o foo.elf foo.o
./ld: warning: dot moved backwards before `.data'
./ld: warning: dot moved backwards before `.data'
./ld: warning: dot moved backwards before `.bss'
./ld: warning: dot moved backwards before `.data'
./ld: warning: dot moved backwards before `.bss'
Comment 1 H.J. Lu 2007-02-04 23:22:42 UTC
A patch is posted at

http://sourceware.org/ml/binutils/2007-02/msg00045.html