* 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
This commit is contained in:
Steve Chamberlain
1992-07-14 15:39:31 +00:00
parent 1acf6627e4
commit 67cddd9faf
2 changed files with 14 additions and 1 deletions

View File

@@ -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);