From: H.J. Lu Date: Thu, 23 Jul 2009 00:08:22 +0000 (+0000) Subject: 2009-07-22 H.J. Lu X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=249b2a84f4763409d444feba4570a600af398094;p=binutils-gdb.git 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. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 5d877ec236c..87ab48b5d5b 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 c10bbeac467..bc03374a6dc 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;