diff options
author | Alan Modra <amodra@gmail.com> | 2002-04-08 01:01:43 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2002-04-08 01:01:43 +0000 |
commit | d08a14c3854c87e4e5ab279af5fd54061cd9cd7d (patch) | |
tree | a38175eecc1e69e4b0b3125fa9fc665a14450f66 /ld/ldlang.c | |
parent | 27cdacdbd02fe239db088c972692df89910c78f7 (diff) | |
download | gdb-d08a14c3854c87e4e5ab279af5fd54061cd9cd7d.zip gdb-d08a14c3854c87e4e5ab279af5fd54061cd9cd7d.tar.gz gdb-d08a14c3854c87e4e5ab279af5fd54061cd9cd7d.tar.bz2 |
* ldlang.c (lang_size_sections_1): Don't complain about
SEC_NEVER_LOAD sections having no memory region specified.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r-- | ld/ldlang.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c index 83f6317..afa77e1 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -2930,6 +2930,8 @@ lang_size_sections_1 (s, output_section_statement, prev, fill, dot, relax) defined, issue a warning. */ if ((bfd_get_section_flags (output_bfd, os->bfd_section) & (SEC_ALLOC | SEC_LOAD)) != 0 + && (bfd_get_section_flags (output_bfd, os->bfd_section) + & SEC_NEVER_LOAD) == 0 && ! link_info.relocateable && strcmp (os->region->name, "*default*") == 0 && lang_memory_region_list != NULL |