* ldlang.c (lang_size_sections): If _cooked_size is not 0, then

don't clobber it when not relaxing.

	* ld.h (ld_config_type): Remove traditional_format field.
	* ldmain.c (main): Use link_info.traditional_format rather than
	config.traditional_format.
	* ldlang.c (ldlang_open_output): Likewise.
	* lexsup.c (parse_args): Likewise.
	* emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Likewise.
	* mpw-eppcmac.c (gldppcmacos_parse_args): Likewise.
This commit is contained in:
Ian Lance Taylor
1996-04-22 21:32:58 +00:00
parent af50cd9170
commit 6799c638e5
6 changed files with 62 additions and 14 deletions

View File

@@ -1110,7 +1110,7 @@ ldlang_open_output (statement)
output_bfd->flags |= WP_TEXT;
else
output_bfd->flags &= ~WP_TEXT;
if (config.traditional_format)
if (link_info.traditional_format)
output_bfd->flags |= BFD_TRADITIONAL_FORMAT;
else
output_bfd->flags &= ~BFD_TRADITIONAL_FORMAT;
@@ -2139,7 +2139,10 @@ lang_size_sections (s, output_section_statement, prev, fill, dot, relax)
i = (*prev)->input_section.section;
if (! relax)
i->_cooked_size = i->_raw_size;
{
if (i->_cooked_size == 0)
i->_cooked_size = i->_raw_size;
}
else
{
boolean again;