This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Error: internal error: fixup not contained within frag


Hi,

I have a problem with as:

$ xc16x-elf-as --version
GNU assembler (GNU Binutils) 2.19.51.20090819
Copyright 2008 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `xc16x-elf'.

$ xc16x-elf-as main.S
main.S: Assembler messages:
main.S:1242: Error: internal error: fixup not contained within frag


I think the assembler code is correct:

	.align 1
	.global _TEST_OS_0016
_TEST_OS_0016:
	 mov  [-r0],r1
	 mov  r1,r0
	 sub  r0,#2
	 push r2 
	mov r2,#0x0
	mov _mt_ErrorHook_Counter,r2
	mov r2,#0xf
	mov _mt_TestCase,r2
	movb rl2,#0x3
	movb	_mt_TaskAssert,rl2
	mov r2,#0x0
	mov _mt_StateCounter,r2      <--- this is line 1242
	mov r9,#0x1
	movb rl2,#0xfe
	mov r8,r2
	calla cc_UC,_SetEvent
	mov r2,r4
	movb	[r1+#0xffff],rl2
	movb	 rl2,[r1+#0xffff]
	cmpb  rl2,#0x3
	jmpr cc_EQ,.L251
.L252:
	jmpr cc_UC,.L252
.L251:
	mov r2,_mt_ErrorHook_Counter
	cmp   r2,#0x1
	jmpr cc_EQ,.L253
.L254:
	jmpr cc_UC,.L254


Can somebody help me to fix this problem?

Best regards,
Conny


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]