mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
* 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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user