This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: binutils development (was Re: Problems building binutils-000220snapshot)
- To: "H . J . Lu" <hjl at lucon dot org>
- Subject: Re: binutils development (was Re: Problems building binutils-000220snapshot)
- From: Alan Modra <alan at SPRI dot Levels dot UniSA dot Edu dot Au>
- Date: Tue, 22 Feb 2000 17:02:21 +1030 (CST)
- cc: Doug Evans <dje at transmeta dot com>, binutils at sourceware dot cygnus dot com
On Mon, 21 Feb 2000, H . J . Lu wrote:
> Wed Dec 23 08:59:23 1998 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
>
> * elf32-i386.c (elf_howto_table): Fix 8/16-bit relocations.
The 8-bit relocation fix went in ages ago, but the 16-bit is one isn't
right, which is why I haven't put it in sourceware. It's not terribly
wrong either, but doesn't fix the problem it's trying to address.
In 16-bit mode, we should be able to link the following without
any errors, for any size pad up to just under 64k.
foo.s
--------------
.extern bar
.global foo
.code16
foo:
jmp bar
--------------
bar.s
--------------
.extern foo
.global bar
.code16
bar:
jmp foo
--------------
pad.s
--------------
.space 0x9000
--------------
Try
as -o foo foo.s
as -o bar bar.s
as -o pad pad.s
ld -Ttext 0 -e 0 foo.o pad.o bar.o