arm-none-eabi-ld: internal error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
arm-none-eabi-ld: internal error
- To: <arm-gnu@xxxxxxxxxxxxxxxx>
- Subject: arm-none-eabi-ld: internal error
- From: "Rushikesh Shingnapurkar" <rushikeshs@xxxxxxxxxxxxxxxxxxx>
- Date: Wed, 21 Feb 2007 14:04:49 +0530
Hello,
I have just installed "arm-2006q3-27-arm-none-eabi"
gcc version 4.1.1 (CodeSourcery Sourcery G++ 2006q3-27)
My normal code complies & links successfully with this toolchain.
But, if I attempt to use the -mthumb to any of one of the .C file &
-mthumb-interwork to other .C files I am getting following error while
linking.
Command:
arm-none-eabi-ld -cref -Map map.txt -S -T link.txt -lc -lm
Error:
arm-none-eabi-ld: internal error
/scratch/paul/arm/obj/binutils-src-2006q3-27-ar
m-none-eabi-i686-mingw32/ld/ldlang.c 4286
I have tried different things like using arm-none-eabi-gcc to use for
linking, I have tried using --thumb-entry etc., but error remains same
These are the commands, I used for compilation:
arm-none-eabi-gcc -Wall -mcpu=arm7tdmi -Os -mthumb -c ThumbTest.c -o
ThumbTest.o
arm-none-eabi-gcc -Wall -mcpu=arm7tdmi -Os -mthumb-interwork -c main.c -o
main.o
These are the commands, I used for linking:
arm-none-eabi-ld -cref -Map map.txt -S -T link.txt -lc -lm
This is my link file:
/////////////////////////////////////////////////////////
OUTPUT (final.o)
SEARCH_DIR("=E:\NewGCC\arm-none-eabi\lib");
SEARCH_DIR("=E:\NewGCC\arm-none-eabi\lib\thumb");
ENTRY(Reset_Handler)
MEMORY
{
rom(rx): org = 0x00000000, l = 16k
ram(wi) : org = 0x40000000, l = 8k
}
SECTIONS
{
. = 0x00000000 ;
.text :
{
main.o(.text)
ThumbTest.o(.text)
*(.text)
end = . ;
PROVIDE (end = .);
_etext = . ;
}>rom
.bss 0x40000000 :
{
_bstart = . ;
*(COMMON) *(.bss) ;
_bend = . ;
}>ram
.data _bend : AT(end)
{
_data = . ;
*(.data)
_edata = . ;
}>ram
. = (end + SIZEOF(.data)) ;
.rodata . :
{
*(.rodata*);
}>rom
}
/////////////////////////////////////////////////////////
Rushikesh Shingnapurkar
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 20-02-2007
1:44 PM