Hi all,
I've hit a probable assembler bug trying to build a Thumb-2 kernel:
Trying to assemble the attached file, I get:
arch/arm/kernel/relocate_kernel.S: Assembler messages: arch/arm/kernel/relocate_kernel.S:10: Error: invalid offset, value too big (0xFFFFFFFFFFFFFFFC) arch/arm/kernel/relocate_kernel.S:11: Error: invalid offset, value too big (0xFFFFFFFFFFFFFFFC) arch/arm/kernel/relocate_kernel.S:58: Error: invalid offset, value too big (0xFFFFFFFFFFFFFFFC) arch/arm/kernel/relocate_kernel.S:59: Error: invalid offset, value too big (0xFFFFFFFFFFFFFFFC)
The code appears correct and resonable, except that there should be a .align directive before the data words at the end of the file (but adding this doesn't fix the error)
Assembling in ARM (i.e., without -mthumb), or deleting the .globl lines associated with the affected target symbols, the problem goes away.
I believe this may be already by tracked by CodeSourcery as is issue #8775 (?)
Has anyone hit this issue before? Is it fixed upstream?
Any help much appreciated.
Cheers ---Dave
On 04/11/10 17:41, Dave Martin wrote:
I believe this may be already by tracked by CodeSourcery as is issue #8775 (?)
Has anyone hit this issue before? Is it fixed upstream?
Yes, as you say it is CS Issue #8775, reported by ARM. The bug should be fixed in the imminent CS SG++ release. I do not think the patch is upstream yet.
Andrew
Hi, thanks for the reply,
Yes, as you say it is CS Issue #8775, reported by ARM. The bug should be fixed in the imminent CS SG++ release. I do not think the patch is upstream yet.
Can we get it upstream and/or into the linaro tools?
For development purposes I may be able to bodge around it or use different binutils, but we'd want this to be fixed in the default binutils if we're to build Thumb-2 kernels for natty.
Cheers ---Dave
On 05/11/10 09:46, Dave Martin wrote:
Yes, as you say it is CS Issue #8775, reported by ARM. The bug should be fixed in the imminent CS SG++ release. I do not think the patch is upstream yet.
Can we get it upstream and/or into the linaro tools?
There's no such thing as Linaro Binutils, just yet.
I'll ask the right person to push it upstream. However, this may not happen right away.
Andrew
Hi,
On Fri, Nov 5, 2010 at 11:14 AM, Andrew Stubbs ams@codesourcery.com wrote:
On 05/11/10 09:46, Dave Martin wrote:
Yes, as you say it is CS Issue #8775, reported by ARM. The bug should be fixed in the imminent CS SG++ release. I do not think the patch is upstream yet.
Can we get it upstream and/or into the linaro tools?
There's no such thing as Linaro Binutils, just yet.
Ummm, yes... I keep making that mistake. For "linaro", read "ubuntu".
I'll ask the right person to push it upstream. However, this may not happen right away.
Thanks
Can you suggest the rough timescale? If the patch can get pushed within the next few weeks that would be good.
Cheers ---Dave
Hi Andrew. Any news on the upstreaming? I'm happy for the Toolchain WG to do the work as it helps Linaro as a whole, so if there's a patch available then I'll ask Richard S or Chung-Lin to get it upstream.
Dave, has this been reported upstream?
-- Michael
On Sat, Nov 6, 2010 at 12:14 AM, Andrew Stubbs ams@codesourcery.com wrote:
On 05/11/10 09:46, Dave Martin wrote:
Yes, as you say it is CS Issue #8775, reported by ARM. The bug should be fixed in the imminent CS SG++ release. I do not think the patch is upstream yet.
Can we get it upstream and/or into the linaro tools?
There's no such thing as Linaro Binutils, just yet.
I'll ask the right person to push it upstream. However, this may not happen right away.
Andrew
linaro-toolchain mailing list linaro-toolchain@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-toolchain
On Tue, Nov 9, 2010 at 10:29 PM, Michael Hope michael.hope@linaro.org wrote:
Hi Andrew. Any news on the upstreaming? I'm happy for the Toolchain WG to do the work as it helps Linaro as a whole, so if there's a patch available then I'll ask Richard S or Chung-Lin to get it upstream.
Dave, has this been reported upstream?
I believe not, but I could be wrong.
---Dave
linaro-toolchain@lists.linaro.org