Do not add padding if an output section is marked as ignored
* ldlang.c (size_input_section): Avoid calling insert_pad if output_section_statement->ignored is set.
This commit is contained in:
parent
3145b99715
commit
9ef7906f20
@ -1,3 +1,8 @@
|
||||
2016-12-21 Igor Kudrin <ikudrin@accesssoftek.com>
|
||||
|
||||
* ldlang.c (size_input_section): Avoid calling insert_pad
|
||||
if output_section_statement->ignored is set.
|
||||
|
||||
2016-12-21 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* testsuite/ld-scripts/sysroot-prefix.exp: Fix chars with high bit set.
|
||||
|
@ -4674,7 +4674,8 @@ size_input_section
|
||||
|
||||
if (i->sec_info_type == SEC_INFO_TYPE_JUST_SYMS)
|
||||
i->output_offset = i->vma - o->vma;
|
||||
else if ((i->flags & SEC_EXCLUDE) != 0)
|
||||
else if (((i->flags & SEC_EXCLUDE) != 0)
|
||||
|| output_section_statement->ignored)
|
||||
i->output_offset = dot - o->vma;
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user