This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Using __bss_start to write relocatable code?
- From: Ian Lance Taylor <ian at wasabisystems dot com>
- To: Ray Whitmer <ray at xmission dot com>
- Cc: binutils at sources dot redhat dot com
- Date: 03 Mar 2004 15:02:32 -0500
- Subject: Re: Using __bss_start to write relocatable code?
- References: <Pine.LNX.4.58.0403030905200.8274@xmission.xmission.com>
Ray Whitmer <ray@xmission.com> writes:
> I suppose I could do two move.l instructions followed by a subtract,
> but that is getting rather lengthy and uses more registers than I
> had hoped. Is there any other way to reference, as a literal, the
> offset to a symbol from the .bss section start?
No, not with m68k-elf.
To make this work, you would need a new relocation type, perhaps along
the lines of the R_MIPS_GPREL32 relocation used on MIPS.
Ian