bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: macro defining 16-bit address offset from and offset


From: Alan Modra
Subject: Re: macro defining 16-bit address offset from and offset
Date: Sat, 26 Feb 2011 11:43:22 +1030
User-agent: Mutt/1.5.20 (2009-06-14)

On Fri, Feb 25, 2011 at 03:16:08PM +0100, Skacore Systems wrote:
>     .byte \astart / 2

This is the problem.

> as test.S -o test.o
> test.S: Assembler messages:
> test.S:26: Error: invalid sections for operation on `Manufacturer_ID_String'
> and `L0'

You can't divide a relocatable symbol like Manufacturer_ID_String by
two (unless your target happens to have a relocation that would allow
the linker to perform the divide for you).

-- 
Alan Modra
Australia Development Lab, IBM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]