aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2000-07-20 21:16:58 +0000
committerH.J. Lu <hjl.tools@gmail.com>2000-07-20 21:16:58 +0000
commitc25373b76aea96ee3be21f06938518f8faa7d5dc (patch)
treeb874c1b15547b15df24b364c8ad6183ecd163157 /bfd/elflink.h
parent9adf30b218fdf913ebecc045e4edf698640506bc (diff)
downloadgdb-c25373b76aea96ee3be21f06938518f8faa7d5dc.zip
gdb-c25373b76aea96ee3be21f06938518f8faa7d5dc.tar.gz
gdb-c25373b76aea96ee3be21f06938518f8faa7d5dc.tar.bz2
2000-07-20 H.J. Lu <hjl@gnu.org>
* elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
Diffstat (limited to 'bfd/elflink.h')
-rw-r--r--bfd/elflink.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/bfd/elflink.h b/bfd/elflink.h
index 1bf3668..10cf2ae 100644
--- a/bfd/elflink.h
+++ b/bfd/elflink.h
@@ -2848,7 +2848,8 @@ NAME(bfd_elf,size_dynamic_sections) (output_bfd, soname, rpath,
true, true);
if (indx == (bfd_size_type) -1
|| ! elf_add_dynamic_entry (info, DT_RPATH, indx)
- || ! elf_add_dynamic_entry (info, DT_RUNPATH, indx))
+ || (info->new_dtags
+ && ! elf_add_dynamic_entry (info, DT_RUNPATH, indx)))
return false;
}
@@ -3137,7 +3138,7 @@ NAME(bfd_elf,size_dynamic_sections) (output_bfd, soname, rpath,
elf_tdata (output_bfd)->cverdefs = cdefs;
}
- if (info->flags)
+ if (info->new_dtags && info->flags)
{
if (! elf_add_dynamic_entry (info, DT_FLAGS, info->flags))
return false;