This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
LOAD EXECUTION ADDRESSES
- To: binutils at sources dot redhat dot com
- Subject: LOAD EXECUTION ADDRESSES
- From: ananda dot motte at philips dot com
- Date: Wed, 7 Nov 2001 11:11:19 +0100
Hello
This is just to be sure that I am doing things right.
AIM: To transfer SECTIONS from load address to EXECUTION ADDRESS:
ACTIONS: I have written a small linker script and using the MEMORY, SECTION , AT utilites and start options I can force existence of a section at a certain LOAD address (verified in a mapfile) and the execution address of the SECTION at the specified
EXECUTION address (verified in the debugger).
Question: Do I then need to modify something in a run time initialization script (i.e. crt0.s or any other ) to copy certain stuff from LOAD REGION to IMAGE REGION (as suggested in the Optional Section Attributes link of official GNU linker manual).
( The part
char *src
char *dst
..........)
Thanks in advance.