aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1993-02-12 16:12:28 +0000
committerSteve Chamberlain <sac@cygnus>1993-02-12 16:12:28 +0000
commit25de6a20dd5ee44d7dcb5a470dffc7c08678a6eb (patch)
tree96b10404551bd686f7f6858734c6e6b9128cf2fd
parent256b4f378a3822e7c9d0908687dc61669fee2b43 (diff)
downloadgdb-25de6a20dd5ee44d7dcb5a470dffc7c08678a6eb.zip
gdb-25de6a20dd5ee44d7dcb5a470dffc7c08678a6eb.tar.gz
gdb-25de6a20dd5ee44d7dcb5a470dffc7c08678a6eb.tar.bz2
* 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
-rw-r--r--ld/relax.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ld/relax.c b/ld/relax.c
index 70f35f6..2db3180 100644
--- a/ld/relax.c
+++ b/ld/relax.c
@@ -193,12 +193,13 @@ boolean
DEFUN(relax_section,(this_ptr),
lang_statement_union_type **this_ptr)
{
-
+ extern lang_input_statement_type *script_file;
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);
+ if (i->owner != script_file->the_bfd)
+ einfo("%B: not assembled with -linkrelax\n", i->owner);
}
return bfd_relax_section(i->owner, i, is->ifile->asymbols);