mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 22:07:58 +08:00
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.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
2000-07-20 Hans-Peter Nilsson <hp@axis.com>
|
2000-07-20 Hans-Peter Nilsson <hp@axis.com>
|
||||||
|
|
||||||
* Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
|
* Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
|
||||||
@ -39,7 +44,7 @@
|
|||||||
* elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
|
* elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
|
||||||
* elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
|
* elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
|
||||||
|
|
||||||
* bfd/elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
|
* elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
|
||||||
set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
|
set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
|
||||||
DT_RPATH is set.
|
DT_RPATH is set.
|
||||||
Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
|
Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
|
||||||
|
@ -2848,7 +2848,8 @@ NAME(bfd_elf,size_dynamic_sections) (output_bfd, soname, rpath,
|
|||||||
true, true);
|
true, true);
|
||||||
if (indx == (bfd_size_type) -1
|
if (indx == (bfd_size_type) -1
|
||||||
|| ! elf_add_dynamic_entry (info, DT_RPATH, indx)
|
|| ! 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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3137,7 +3138,7 @@ NAME(bfd_elf,size_dynamic_sections) (output_bfd, soname, rpath,
|
|||||||
elf_tdata (output_bfd)->cverdefs = cdefs;
|
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))
|
if (! elf_add_dynamic_entry (info, DT_FLAGS, info->flags))
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user