diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2003-10-08 22:17:35 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@redhat.com> | 2003-10-08 22:17:35 +0000 |
commit | 133059e6454fc76ca88b1fa7edf6338c24a25ef7 (patch) | |
tree | c43f08bfb1c5a71a1c432f53a5dcfafcfce27074 /ld | |
parent | ea89fa79a1e9ad0e9c07b7784605c4633f885e40 (diff) | |
download | binutils-redhat-133059e6454fc76ca88b1fa7edf6338c24a25ef7.tar.gz |
* ldlang.c (lang_size_sections_1): Use IGNORE_SECTION to tell
whether to skip test for no memory region.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 5 | ||||
-rw-r--r-- | ld/ldlang.c | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index f12a8a8719..b054185ca3 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2003-10-08 Alexandre Oliva <aoliva@redhat.com> + + * ldlang.c (lang_size_sections_1): Use IGNORE_SECTION to tell + whether to skip test for no memory region. + 2003-10-08 Nick Clifton <nickc@redhat.com> * lexsup.c (parse_args: OPTION_CALL_SHARED): Revise comment diff --git a/ld/ldlang.c b/ld/ldlang.c index f443acd058..2d1f5d5082 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -2801,8 +2801,7 @@ lang_size_sections_1 /* If a loadable section is using the default memory region, and some non default memory regions were defined, issue an error message. */ - if ((bfd_get_section_flags (output_bfd, os->bfd_section) - & (SEC_ALLOC | SEC_LOAD)) != 0 + if (!IGNORE_SECTION (output_bfd, os->bfd_section) && (bfd_get_section_flags (output_bfd, os->bfd_section) & SEC_NEVER_LOAD) == 0 && ! link_info.relocatable |