2008-04-04 Nathan Sidwell * ldlang.c (lang_size_sections_1): If a section has a new VMA reset the LMA unless it's specified explicitly. Index: ldlang.c =================================================================== RCS file: /cvs/src/src/ld/ldlang.c,v retrieving revision 1.283 diff -c -3 -p -r1.283 ldlang.c *** ldlang.c 22 Feb 2008 14:19:43 -0000 1.283 --- ldlang.c 4 Apr 2008 11:11:19 -0000 *************** lang_size_sections_1 *** 4635,4640 **** --- 4635,4644 ---- if (os->sectype == overlay_section) lma = last->lma + last->size; + /* If there was a new VMA, set the LMA. */ + else if (os->addr_tree) + lma = dot; + /* Otherwise, keep the same lma to vma relationship as the previous section. */ else