* elflink.h (size_dynamic_sections): If not adding DT_FLAGS and
authorJakub Jelinek <jakub@redhat.com>
Mon, 23 Feb 2004 09:01:58 +0000 (09:01 +0000)
committerJakub Jelinek <jakub@redhat.com>
Mon, 23 Feb 2004 09:01:58 +0000 (09:01 +0000)
DF_BIND_NOW is set in info->flags, create DT_BIND_NOW dynamic entry.

bfd/ChangeLog
bfd/elflink.h

index 94d187649e3e265593553c6de353f82475bf1996..0289a05d98b414834c14a8bfca692afe3e641100 100644 (file)
@@ -1,3 +1,8 @@
+2004-02-23  Jakub Jelinek  <jakub@redhat.com>
+
+       * elflink.h (size_dynamic_sections): If not adding DT_FLAGS and
+       DF_BIND_NOW is set in info->flags, create DT_BIND_NOW dynamic entry.
+
 2004-02-21  H.J. Lu  <hongjiu.lu@intel.com>
 
        * elflink.c (_bfd_elf_merge_symbol): Properly handle undefined
index c37d7398d0113af7c59984a651e4219b7e04532d..96d5981aa514b26579edeaa88fa13971a600e651 100644 (file)
@@ -2434,6 +2434,11 @@ NAME(bfd_elf,size_dynamic_sections) (bfd *output_bfd,
          if (! elf_add_dynamic_entry (info, DT_FLAGS, info->flags))
            return FALSE;
        }
+      else if (info->flags & DF_BIND_NOW)
+       {
+         if (! elf_add_dynamic_entry (info, DT_BIND_NOW, 0))
+           return FALSE;
+       }
 
       if (info->flags_1)
        {