From 67cddd9fafe4a4148ffb677b9c21a27141ba2695 Mon Sep 17 00:00:00 2001 From: Steve Chamberlain Date: Tue, 14 Jul 1992 15:39:31 +0000 Subject: [PATCH] * ldlang.c (lang_map): print changes in sizes due to relaxing (size_input_section): maintain the delta information. * ldlang.h: add new field to struct to contain delta info. * relax.c (relax_section): complain if input not relaxable. * ldlex.l : add '_', ',' and '$' to chars which can appear at the start of a filename --- ld/ChangeLog | 9 +++++++++ ld/relax.c | 6 +++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 8a574aa909b..36be007b935 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,12 @@ +Tue Jul 14 08:34:34 1992 Steve Chamberlain (sac@thepub.cygnus.com) + + * ldlang.c (lang_map): print changes in sizes due to relaxing + (size_input_section): maintain the delta information. + * ldlang.h: add new field to struct to contain delta info. + * relax.c (relax_section): complain if input not relaxable. + * ldlex.l : add '_', ',' and '$' to chars which can appear at the + start of a filename + Mon Jul 13 17:33:00 1992 Steve Chamberlain (sac@thepub.cygnus.com) * ldmain.c(main): prevent -r and -relax from being on at the same diff --git a/ld/relax.c b/ld/relax.c index 0791fae1759..5335b2381e7 100644 --- a/ld/relax.c +++ b/ld/relax.c @@ -107,7 +107,7 @@ DEFUN(build_it,(statement), seclet->type = bfd_indirect_seclet; seclet->u.indirect.section = i; seclet->u.indirect.symbols = statement->input_section.ifile->asymbols; - seclet->size = bfd_get_section_size_before_reloc(i); + seclet->size = i->_cooked_size; seclet->offset = i->output_offset; seclet->next = 0; } @@ -175,6 +175,10 @@ DEFUN(relax_section,(this_ptr), lang_input_section_type *is = &((*this_ptr)->input_section); asection *i = is->section; + if (!(i->owner->flags & BFD_IS_RELAXABLE)) + { + einfo("%B: not assembled with -linkrelax\n", i->owner); + } return bfd_relax_section(i->owner, i, is->ifile->asymbols); -- 2.30.2