diff options
author | Jakub Jelinek <jakub@redhat.com> | 2004-02-23 09:01:58 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2004-02-23 09:01:58 +0000 |
commit | 646411fba021b0739b3d7a134bb0d25cf5c027cf (patch) | |
tree | e2b4a4cff63d13c25ae7fa8918fd91cf270d5a29 | |
parent | c7e7ca549d0462d01261b5c6b3c93ab0d19960fb (diff) | |
download | gdb-646411fba021b0739b3d7a134bb0d25cf5c027cf.zip gdb-646411fba021b0739b3d7a134bb0d25cf5c027cf.tar.gz gdb-646411fba021b0739b3d7a134bb0d25cf5c027cf.tar.bz2 |
* 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.
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elflink.h | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 94d1876..0289a05 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -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 diff --git a/bfd/elflink.h b/bfd/elflink.h index c37d739..96d5981 100644 --- a/bfd/elflink.h +++ b/bfd/elflink.h @@ -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) { |