Section X overlaps section Y problem.
Jim Blandy
jimb@redhat.com
Wed Jun 29 22:52:00 GMT 2005
More information about the Binutils mailing list
Wed Jun 29 22:52:00 GMT 2005
- Previous message (by thread): Section X overlaps section Y problem.
- Next message (by thread): Section X overlaps section Y problem.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Sergei Organov <osv@topconrd.ru> writes: > On embedded target, to copy at startup some data and/or code from ROM to > RAM at startup, I've been using the following technique that worked for > me for years. The last version of binutils where I know it works is > version 2.10. So, your startup code copies the ROM contents (as given in .vect) into RAM (covered by .vect_image). Why do both of those sections have the same LMA? Do your ROM and RAM both appear at the same range of addresses in memory? That is, do writes to those addresses always access RAM, but reads access ROM, until the ROM is switched out --- or something like that? If your RAM and ROM appear in distinct address ranges, the usual way to do this is to give the ROM contents a VMA that refers to the RAM they will eventually occupy, but an LMA that refers to the ROM. That way, the VMA ranges of .vect and .vect_image will overlap, but the LMA ranges will not. I would expect the linker to complain only about overlapping LMA ranges.
- Previous message (by thread): Section X overlaps section Y problem.
- Next message (by thread): Section X overlaps section Y problem.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list