]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
authorJakub Jelinek <jakub@redhat.com>
Wed, 23 Oct 2002 20:13:01 +0000 (20:13 +0000)
committerJakub Jelinek <jakub@redhat.com>
Wed, 23 Oct 2002 20:13:01 +0000 (20:13 +0000)
sections into .rel{,a}.dyn.

ld/ChangeLog
ld/emultempl/elf32.em

index 9bbbbf3296cf1a15cf7fbdb66ef44de3b1cc3f49..48645005ee822852266d7b97e9a1bf41f89c2259 100644 (file)
@@ -1,3 +1,8 @@
+2002-10-23  Jakub Jelinek  <jakub@redhat.com>
+
+       * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
+       sections into .rel{,a}.dyn.
+
 2002-10-23  Nick Clifton  <nickc@redhat.com>
 
        * lexsup.c (OPTION_NO_OMAGIC): Define.
index 62c39f442afb70b9396996b44ce75eaca927c42a..4fee5fb85569a5f6484b98d97bcb4074e46e6aa6 100644 (file)
@@ -1098,6 +1098,7 @@ gld${EMULATION_NAME}_place_orphan (file, s)
   secname = bfd_get_section_name (s->owner, s);
   if (! link_info.relocateable
       && link_info.combreloc
+      && (s->flags & SEC_ALLOC)
       && strncmp (secname, ".rel", 4) == 0)
     {
       if (secname[4] == 'a')