From 249b2a84f4763409d444feba4570a600af398094 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 23 Jul 2009 00:08:22 +0000 Subject: [PATCH] 2009-07-22 H.J. Lu PR ld/10429 * ldlang.c (insert_os_after): Tie assignments to non-alloc output sections if there is no-input section. --- ld/ChangeLog | 10 ++++++++-- ld/ldlang.c | 4 +++- 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 + + 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 * ldlang.c (insert_os_after): Don't tie assignments to non-alloc @@ -14,7 +20,7 @@ 2009-07-06 Matthias Klose - * ld.texinfo: Fix typo. + * ld.texinfo: Fix typo. 2009-07-03 Tristan Gingold @@ -457,7 +463,7 @@ * configure.tgt: Extend AIX 5 behavior to AIX 6 and above. 2009-03-14 Dave Korn - Danny Smith + Danny Smith * 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; -- 2.7.4