diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2009-05-22 11:27:44 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@codesourcery.com> | 2009-05-22 11:27:44 +0000 |
commit | ec6d26bed6aaf59e5c3d4b619b127c2e22ff39a0 (patch) | |
tree | d1632ec7ec393d26d0dde9c2826b5e2f3203a047 /ld/ldlang.c | |
parent | 88c0ab9dd995d4719c640134a75f11abfad249be (diff) | |
download | gdb-ec6d26bed6aaf59e5c3d4b619b127c2e22ff39a0.zip gdb-ec6d26bed6aaf59e5c3d4b619b127c2e22ff39a0.tar.gz gdb-ec6d26bed6aaf59e5c3d4b619b127c2e22ff39a0.tar.bz2 |
* ldlang.c (lang_check_section_addresses): Ignore non-loadable
sections when checking for overlap. Clarify error message
concerns load address.
testsuite/
* ld-scripts/rgn-at4.t: New.
* ld-scripts/rgn-at4.d: New.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r-- | ld/ldlang.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c index d97a55b..2f1e0ea 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -4498,7 +4498,8 @@ 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 (IGNORE_SECTION (s) || s->size == 0) + if ((s->flags & SEC_NEVER_LOAD) || !(s->flags & SEC_LOAD) + || s->size == 0) continue; sections[count] = s; @@ -4529,7 +4530,7 @@ lang_check_section_addresses (void) /* Look for an overlap. */ if (s_end >= os_start && s_start <= os_end) - einfo (_("%X%P: section %s [%V -> %V] overlaps section %s [%V -> %V]\n"), + einfo (_("%X%P: section %s loaded at [%V,%V] overlaps section %s loaded at [%V,%V]\n"), s->name, s_start, s_end, os->name, os_start, os_end); } |