diff options
author | Alan Modra <amodra@gmail.com> | 2009-05-26 01:20:39 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2009-05-26 01:20:39 +0000 |
commit | e50d6125d6f76abd44712d027e0de53c5c697c3c (patch) | |
tree | baa8e19757d0e5661c7c6a282f2304fcc3a7295d /ld/ldlang.c | |
parent | 4379f3ec45d8f6e9c709a28bdbb2595194f7af9c (diff) | |
download | gdb-e50d6125d6f76abd44712d027e0de53c5c697c3c.zip gdb-e50d6125d6f76abd44712d027e0de53c5c697c3c.tar.gz gdb-e50d6125d6f76abd44712d027e0de53c5c697c3c.tar.bz2 |
* ldlang.c (lang_check_section_addresses): Ignore non-alloc sections.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r-- | ld/ldlang.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c index 2f1e0ea..30d71aa 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; |