From e08dab55794d6552cb52289ba0d925519622afbf Mon Sep 17 00:00:00 2001 From: amodra Date: Tue, 26 May 2009 01:20:39 +0000 Subject: [PATCH] * ldlang.c (lang_check_section_addresses): Ignore non-alloc sections. --- ld/ChangeLog | 4 ++++ ld/ldlang.c | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 0671b7f23d..ded1d2a96a 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +2009-05-26 Alan Modra + + * ldlang.c (lang_check_section_addresses): Ignore non-alloc sections. + 2009-05-22 Julian Brown * emultempl/armelf.em (fix_cortex_a8): New. diff --git a/ld/ldlang.c b/ld/ldlang.c index 2f1e0eac18..30d71aa521 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -4498,7 +4498,9 @@ lang_check_section_addresses (void) for (s = link_info.output_bfd->sections; s != NULL; s = s->next) { /* Only consider loadable sections with real contents. */ - if ((s->flags & SEC_NEVER_LOAD) || !(s->flags & SEC_LOAD) + if ((s->flags & SEC_NEVER_LOAD) + || !(s->flags & SEC_LOAD) + || !(s->flags & SEC_ALLOC) || s->size == 0) continue; -- 2.11.0