This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Link start address
- From: "Jonathan S. Shapiro" <shap at eros-os dot com>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 03 Aug 2007 13:12:24 -0400
- Subject: Link start address
This is probably a question that should be directed to the binutils
list.
We need to set the default link start address used by ld. Unfortunately
ld doesn't have a nice porting guide like GCC does. :-)
Actually, we need to choose one of two possible start addresses based on
command line options to GCC, and I am wondering if this may make things
more complicated.
This is an ELF target. If we simply issue a --section-start for
the .init section from GCC, will the other sections get adjusted
accordingly under the generic linker script, or do we need to do
something more involved?
If it's more involved, where to look?
Bother. I used to know how to do this. :-)
shap