aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2005-06-04 14:40:21 +0000
committerH.J. Lu <hjl.tools@gmail.com>2005-06-04 14:40:21 +0000
commit079f985c5a34b0c69d7f9662fc3d952cba301c05 (patch)
treed485b37ca033859876a629e076522cc16716faff /ld/ldlang.c
parent6a86118a50c3f67c313f1b71790cf7c5d27666b0 (diff)
downloadgdb-079f985c5a34b0c69d7f9662fc3d952cba301c05.zip
gdb-079f985c5a34b0c69d7f9662fc3d952cba301c05.tar.gz
gdb-079f985c5a34b0c69d7f9662fc3d952cba301c05.tar.bz2
2005-06-04 H.J. Lu <hongjiu.lu@intel.com>
PR 992 * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current section for etree_assign, etree_provide and etree_provided. Call fold_binary on etree_binary. * ldlang.c (lang_mark_used_section_1): Handle load base.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r--ld/ldlang.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c
index b4f767d..973ed41 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -3065,7 +3065,12 @@ lang_mark_used_section_1
os = &(s->output_section_statement);
if (os->bfd_section != NULL)
- lang_mark_used_section_1 (os->children.head, os);
+ {
+ lang_mark_used_section_1 (os->children.head, os);
+ if (os->load_base)
+ exp_mark_used_section (os->load_base,
+ bfd_abs_section_ptr);
+ }
}
break;
case lang_wild_statement_enum: