On Aug 30, Alessandro Rubini wrote:
>
> I agree. I spent some time trying to understand the error to provide
> you with a proposed patch, but didn't manage to.
The problem is that as-2.9.1 doesn't use the shortest opcodes for some
assembler instructions. Since stage1.S has to fit together with bpb
and the partition table in 512 bytes it is important to use them.
> This is the error:
>
> make[2]: Entering directory `/home/develop/grub/cvs/stage1'
> egcc -DHAVE_CONFIG_H -I. -I. -I.. -Wall -Wmissing-prototypes -Wunused
>-Wshadow -Wpointer-arith -Wundef -O2 -fno-builtin -nostdinc -g -c stage1.S
> /tmp/cc3Mmvwi.s: Assembler messages:
> /tmp/cc3Mmvwi.s:571: Error: attempt to .org/.space backwards? (-2)
This means that stage1 is two bytes too large.
> /tmp/cc3Mmvwi.s:571: Internal error!
> Assertion failure in write_contents at ../../gas/write.c line 1106.
> Please report this bug.
This is an internal error is gas! But it is not critical, as it only
makes the error message a bit harder to understand.
Jochen