RE: [arm-gnu] codesourcery compile helping
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [arm-gnu] codesourcery compile helping
- To: "Borkar, Parag \(Parag\)" <borkar@xxxxxxxxx>, "Mark Mitchell" <mark@xxxxxxxxxxxxxxxx>, "Nathan Sidwell" <nathan@xxxxxxxxxxxxxxxx>
- Subject: RE: [arm-gnu] codesourcery compile helping
- From: "Yongming \(Stephen Lg\) Hu" <yohu@xxxxxxx>
- Date: Wed, 8 Mar 2006 17:16:04 -0800
Hi,dear friend
First, I should thank you give my helping!
I use these steps could generate one good binary file.
1> arm-none-eabi-as -a=Vector_GNU.lst -mcpu=arm7 -o Vector_GNU.o
Vector_GNU.s
2>arm-none-eabi-ld -Ttext 0x0 -m armelf -o Vector_GNU.elf Vector_GNU.o
3>arm-none-eabi-objdump -d Vector_GNU.elf > Vector_GNU.txt
4>arm-none-eabi-objcopy -O binary Vector_GNU.elf Vector_GNU.bin
If I have two files, 1.s and 2.s, 2.s was transfer by 1.s. as up
command, I only generate two good binary, but I want to generate one
good file.
What I could do to generate one good binary,
Which step I should add something, and others step I should do?
Thank you
Stephen
-----Original Message-----
From: Borkar, Parag (Parag) [mailto:borkar@xxxxxxxxx]
Sent: Wednesday, March 08, 2006 3:58 PM
To: Yongming (Stephen Lg) Hu; Mark Mitchell
Cc: arm-gnu@xxxxxxxxxxxxxxxx
Subject: RE: [arm-gnu] codesourcery compile helping
Hi,
EXPORT => .global, and no need to put anything instead of IMPORT.
I think , if you read AS (assembler) documentation ,you will get
equivalent directives for GCC.There is no such document which clarify
the equivalent directives.
Regards,
Parag
-----Original Message-----
From: Yongming (Stephen Lg) Hu [mailto:yohu@xxxxxxx]
Sent: Wednesday, March 08, 2006 5:08 AM
To: Mark Mitchell
Cc: Borkar, Parag (Parag); arm-gnu@xxxxxxxxxxxxxxxx
Subject: RE: [arm-gnu] codesourcery compile helping
Hi, dear sir:
In the arm ads or realview plat
I use the assemble language to program, I use the EXPORT and INPORT
function, Could you tell me what I should to do, if I use these function
in the codesourcery palt.
Could you give me any references.
Thank you
stephen
-----Original Message-----
From: Mark Mitchell [mailto:mark@xxxxxxxxxxxxxxxx]
Sent: Wednesday, March 08, 2006 11:45 AM
To: Yongming (Stephen Lg) Hu
Cc: Borkar, Parag (Parag); arm-gnu@xxxxxxxxxxxxxxxx
Subject: Re: [arm-gnu] codesourcery compile helping
Yongming (Stephen Lg) Hu wrote:
> I install the arm-2005q3-2-arm-none-eabi.exe in my pc.
>
> I had program and compile your company's tools
>
> I use these command step by step, but the endless is not my holp:
>
>
>
> 1> arm-none-eabi-as -a=Vector_GNU.lst -mcpu=arm7 -o Vector_GNU.o
> Vector_GNU.s
>
> 2>arm-none-eabi-ld -e 0x0 -m armelf -o Vector_GNU.elf Vector_GNU.o
The -e option just tells the linker what address should be encoded as
the program entry point. To place the code at a different address, you
will have to write a linker script that specifies the location. For
simple cases, you may be able to use "-Ttext 0x0" without writing a
linker script.
--
Mark Mitchell
CodeSourcery
mark@xxxxxxxxxxxxxxxx
(650) 331-3385 x713