bfd/
authorBob Wilson <bob.wilson@acm.org>
Tue, 10 Oct 2006 20:57:37 +0000 (20:57 +0000)
committerBob Wilson <bob.wilson@acm.org>
Tue, 10 Oct 2006 20:57:37 +0000 (20:57 +0000)
* elf32-xtensa.c (elf_xtensa_size_dynamic_sections): Add DT_DEBUG
for PIE executables.
ld/
* emulparams/elf32xtensa.sh (GENERATE_PIE_SCRIPT): Enable.

bfd/ChangeLog
bfd/elf32-xtensa.c
ld/ChangeLog
ld/emulparams/elf32xtensa.sh

index dfd47f650ede04eec936f3a751e4243b1fb88217..2959a4918381ded0a762696e59e70bdcb2b7ea21 100644 (file)
@@ -1,3 +1,8 @@
+2006-10-10  Bob Wilson  <bob.wilson@acm.org>
+
+       * elf32-xtensa.c (elf_xtensa_size_dynamic_sections): Add DT_DEBUG
+       for PIE executables.
+
 2006-10-03  Jakub Jelinek  <jakub@redhat.com>
 
        * elf-bfd.h (struct eh_cie_fde): Add set_loc pointer.
index d8b9d1ecf00c189fac50eccb1b8261e047d4c7c6..c93f84d8c7651469323c78b644271d70e06b1192 100644 (file)
@@ -1123,8 +1123,7 @@ add_extra_plt_sections (bfd *dynobj, int count)
 
       sname = (char *) bfd_malloc (10);
       sprintf (sname, ".plt.%u", chunk);
-      s = bfd_make_section_with_flags (dynobj, sname,
-                                      flags | SEC_CODE);
+      s = bfd_make_section_with_flags (dynobj, sname, flags | SEC_CODE);
       if (s == NULL
          || ! bfd_set_section_alignment (dynobj, s, 2))
        return FALSE;
@@ -1471,7 +1470,7 @@ elf_xtensa_size_dynamic_sections (bfd *output_bfd ATTRIBUTE_UNUSED,
 #define add_dynamic_entry(TAG, VAL) \
   _bfd_elf_add_dynamic_entry (info, TAG, VAL)
 
-      if (! info->shared)
+      if (info->executable)
        {
          if (!add_dynamic_entry (DT_DEBUG, 0))
            return FALSE;
index cdae47b65db15af7d7c6e4e420a72cac6eb00367..3d6d4a66c9abddb34bcc8948ecae8715baa599be 100644 (file)
@@ -1,3 +1,7 @@
+2006-10-10  Bob Wilson  <bob.wilson@acm.org>
+
+       * emulparams/elf32xtensa.sh (GENERATE_PIE_SCRIPT): Enable.
+
 2006-10-06  Mike Frysinger  <vapier@gentoo.org>
 
        * genscripts.sh: Respect LIBPATH_SUFFIX when not using sysroot.
index 01eed3acfbca18ca508b38ee5580971f3821a0d1..8cc8f0d21934f692d5971817ec1f904385edd2fa 100644 (file)
@@ -10,6 +10,7 @@ MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
 ARCH=xtensa
 MACHINE=
 GENERATE_SHLIB_SCRIPT=yes
+GENERATE_PIE_SCRIPT=yes
 GENERATE_COMBRELOC_SCRIPT=yes
 NO_SMALL_DATA=yes
 PLT="/* .plt* sections are embedded in .text */"
This page took 0.034449 seconds and 4 git commands to generate.