[Bug ld/3103] New: ld lma assignment change changes OVERLAY
Alan Modra
amodra@bigpond.net.au
Wed Aug 23 01:53:00 GMT 2006
On Tue, Aug 22, 2006 at 05:12:34PM -0000, hjl at lucon dot org wrote:
> http://sourceware.org/ml/binutils/2006-07/msg00314.html
>
> changes the section symbol for OVERLAY:
[snip]
> 3: 0000000000004000 0 NOTYPE GLOBAL DEFAULT ABS __load_start_text1
> 4: 0000000000004010 0 NOTYPE GLOBAL DEFAULT 2 __load_start_text2
That does look a little silly.
* ldexp.c (fold_name <LOADADDR>): Return an absolute value
rather than a section relative value.
Index: ld/ldexp.c
===================================================================
RCS file: /cvs/src/src/ld/ldexp.c,v
retrieving revision 1.62
diff -u -p -r1.62 ldexp.c
--- ld/ldexp.c 16 Aug 2006 08:31:45 -0000 1.62
+++ ld/ldexp.c 23 Aug 2006 00:37:22 -0000
@@ -577,8 +577,7 @@ fold_name (etree_type *tree)
if (os != NULL && os->processed_lma)
{
if (os->load_base == NULL)
- new_rel (os->bfd_section->lma - os->bfd_section->vma,
- NULL, os->bfd_section);
+ new_abs (os->bfd_section->lma);
else
exp_fold_tree_1 (os->load_base);
}
--
Alan Modra
IBM OzLabs - Linux Technology Centre
More information about the Binutils
mailing list