mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-10 23:57:03 +08:00
* ldgram.y: allow section types without address expressions.
* ldlang.c (lang_relocate_globals): avoid possible hang with undefined but unreferenced symbols. * relax.c (relax_section): don't complain if the script file isn't relaxable but -relax is set
This commit is contained in:
@ -193,11 +193,12 @@ boolean
|
|||||||
DEFUN(relax_section,(this_ptr),
|
DEFUN(relax_section,(this_ptr),
|
||||||
lang_statement_union_type **this_ptr)
|
lang_statement_union_type **this_ptr)
|
||||||
{
|
{
|
||||||
|
extern lang_input_statement_type *script_file;
|
||||||
lang_input_section_type *is = &((*this_ptr)->input_section);
|
lang_input_section_type *is = &((*this_ptr)->input_section);
|
||||||
asection *i = is->section;
|
asection *i = is->section;
|
||||||
if (!(i->owner->flags & BFD_IS_RELAXABLE))
|
if (!(i->owner->flags & BFD_IS_RELAXABLE))
|
||||||
{
|
{
|
||||||
|
if (i->owner != script_file->the_bfd)
|
||||||
einfo("%B: not assembled with -linkrelax\n", i->owner);
|
einfo("%B: not assembled with -linkrelax\n", i->owner);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user