Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu/dist/toolchain/bfd If there is no PLT, do not output a D...



details:   https://anonhg.NetBSD.org/src/rev/24987ff52c41
branches:  trunk
changeset: 534155:24987ff52c41
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Thu Jul 18 17:35:09 2002 +0000

description:
If there is no PLT, do not output a DT_PLTGOT entry, as this causes the
dynamic linker to blast other things (like the second GOT entry).

diffstat:

 gnu/dist/toolchain/bfd/elf64-alpha.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (18 lines):

diff -r 0134f3c93c28 -r 24987ff52c41 gnu/dist/toolchain/bfd/elf64-alpha.c
--- a/gnu/dist/toolchain/bfd/elf64-alpha.c      Thu Jul 18 16:23:36 2002 +0000
+++ b/gnu/dist/toolchain/bfd/elf64-alpha.c      Thu Jul 18 17:35:09 2002 +0000
@@ -3347,12 +3347,10 @@
            return false;
        }
 
-      if (! bfd_elf64_add_dynamic_entry (info, DT_PLTGOT, 0))
-       return false;
-
       if (relplt)
        {
-         if (! bfd_elf64_add_dynamic_entry (info, DT_PLTRELSZ, 0)
+         if (! bfd_elf64_add_dynamic_entry (info, DT_PLTGOT, 0)
+             || ! bfd_elf64_add_dynamic_entry (info, DT_PLTRELSZ, 0)
              || ! bfd_elf64_add_dynamic_entry (info, DT_PLTREL, DT_RELA)
              || ! bfd_elf64_add_dynamic_entry (info, DT_JMPREL, 0))
            return false;



Home | Main Index | Thread Index | Old Index