diff options
author | Alan Modra <amodra@bigpond.net.au> | 2006-07-26 05:05:52 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2006-07-26 05:05:52 +0000 |
commit | a92bf42ff844238f4533aefbc5805bde3c9e5b6f (patch) | |
tree | 7cc36fe044a396e227a75fdce9c0743a62513379 /ld/ldexp.c | |
parent | 27515bbc061a0363c08cfc3893c9b354832e0a28 (diff) | |
download | binutils-redhat-a92bf42ff844238f4533aefbc5805bde3c9e5b6f.tar.gz |
* ldexp.c (fold_name <LOADADDR>): Use the lma.
* ldlang.h (lang_memory_region_type): Delete old_length. Add
last_os.
* ldlang.c (lang_memory_region_lookup): Init new field.
(lang_reset_memory_regions): Reset new field.
(lang_insert_orphan): Don't set load_base.
(lang_leave_overlay): Likewise.
(lang_size_sections_1): Delete unnecessary code setting lma_region
to region. Correct lma region check.
(lang_do_assignments_1): Rename output_section_statement parm
to current_os. Set lma from previous section in region.
Diffstat (limited to 'ld/ldexp.c')
-rw-r--r-- | ld/ldexp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ld/ldexp.c b/ld/ldexp.c index 0c7a9b0e68..71f4c8e315 100644 --- a/ld/ldexp.c +++ b/ld/ldexp.c @@ -577,7 +577,8 @@ fold_name (etree_type *tree) if (os != NULL && os->processed) { if (os->load_base == NULL) - new_rel (0, NULL, os->bfd_section); + new_rel (os->bfd_section->lma - os->bfd_section->vma, + NULL, os->bfd_section); else exp_fold_tree_1 (os->load_base); } |