aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2009-07-23 00:08:22 +0000
committerH.J. Lu <hjl.tools@gmail.com>2009-07-23 00:08:22 +0000
commit249b2a84f4763409d444feba4570a600af398094 (patch)
treeba85ee528755c9a2e463c66d5331bc36d6599461
parentdbd964eb7c58227d0179f936a0737dfae9f0d206 (diff)
downloadgdb-249b2a84f4763409d444feba4570a600af398094.zip
gdb-249b2a84f4763409d444feba4570a600af398094.tar.gz
gdb-249b2a84f4763409d444feba4570a600af398094.tar.bz2
2009-07-22 H.J. Lu <hongjiu.lu@intel.com>
PR ld/10429 * ldlang.c (insert_os_after): Tie assignments to non-alloc output sections if there is no-input section.
-rw-r--r--ld/ChangeLog10
-rw-r--r--ld/ldlang.c4
2 files changed, 11 insertions, 3 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 5d877ec..87ab48b 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,9 @@
+2009-07-22 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/10429
+ * ldlang.c (insert_os_after): Tie assignments to non-alloc
+ output sections if there is no-input section.
+
2009-07-11 Alan Modra <amodra@bigpond.net.au>
* ldlang.c (insert_os_after): Don't tie assignments to non-alloc
@@ -14,7 +20,7 @@
2009-07-06 Matthias Klose <doko@ubuntu.com>
- * ld.texinfo: Fix typo.
+ * ld.texinfo: Fix typo.
2009-07-03 Tristan Gingold <gingold@adacore.com>
@@ -457,7 +463,7 @@
* configure.tgt: Extend AIX 5 behavior to AIX 6 and above.
2009-03-14 Dave Korn <dave.korn.cygwin@gmail.com>
- Danny Smith <dannysmith@users.sourceforge.net>
+ Danny Smith <dannysmith@users.sourceforge.net>
* emultmpl/pe.em (pe_dll_characteristics): New variable.
(OPTION_DYNAMIC_BASE, OPTION_FORCE_INTEGRITY, OPTION_NX_COMPAT,
diff --git a/ld/ldlang.c b/ld/ldlang.c
index c10bbea..bc03374 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -1667,7 +1667,9 @@ insert_os_after (lang_output_section_statement_type *after)
{
asection *s = (*where)->output_section_statement.bfd_section;
- if (s == NULL || (s->flags & SEC_ALLOC) != 0)
+ if (s == NULL
+ || s->map_head.s == NULL
+ || (s->flags & SEC_ALLOC) != 0)
where = assign;
}
break;