mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-28 23:39:35 +08:00
bfd/
* elf32-xtensa.c (elf_xtensa_size_dynamic_sections): Add DT_DEBUG for PIE executables. ld/ * emulparams/elf32xtensa.sh (GENERATE_PIE_SCRIPT): Enable.
This commit is contained in:
@ -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>
|
2006-10-03 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
* elf-bfd.h (struct eh_cie_fde): Add set_loc pointer.
|
* elf-bfd.h (struct eh_cie_fde): Add set_loc pointer.
|
||||||
|
@ -1123,8 +1123,7 @@ add_extra_plt_sections (bfd *dynobj, int count)
|
|||||||
|
|
||||||
sname = (char *) bfd_malloc (10);
|
sname = (char *) bfd_malloc (10);
|
||||||
sprintf (sname, ".plt.%u", chunk);
|
sprintf (sname, ".plt.%u", chunk);
|
||||||
s = bfd_make_section_with_flags (dynobj, sname,
|
s = bfd_make_section_with_flags (dynobj, sname, flags | SEC_CODE);
|
||||||
flags | SEC_CODE);
|
|
||||||
if (s == NULL
|
if (s == NULL
|
||||||
|| ! bfd_set_section_alignment (dynobj, s, 2))
|
|| ! bfd_set_section_alignment (dynobj, s, 2))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
@ -1471,7 +1470,7 @@ elf_xtensa_size_dynamic_sections (bfd *output_bfd ATTRIBUTE_UNUSED,
|
|||||||
#define add_dynamic_entry(TAG, VAL) \
|
#define add_dynamic_entry(TAG, VAL) \
|
||||||
_bfd_elf_add_dynamic_entry (info, TAG, VAL)
|
_bfd_elf_add_dynamic_entry (info, TAG, VAL)
|
||||||
|
|
||||||
if (! info->shared)
|
if (info->executable)
|
||||||
{
|
{
|
||||||
if (!add_dynamic_entry (DT_DEBUG, 0))
|
if (!add_dynamic_entry (DT_DEBUG, 0))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
@ -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>
|
2006-10-06 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
* genscripts.sh: Respect LIBPATH_SUFFIX when not using sysroot.
|
* genscripts.sh: Respect LIBPATH_SUFFIX when not using sysroot.
|
||||||
|
@ -10,6 +10,7 @@ MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
|
|||||||
ARCH=xtensa
|
ARCH=xtensa
|
||||||
MACHINE=
|
MACHINE=
|
||||||
GENERATE_SHLIB_SCRIPT=yes
|
GENERATE_SHLIB_SCRIPT=yes
|
||||||
|
GENERATE_PIE_SCRIPT=yes
|
||||||
GENERATE_COMBRELOC_SCRIPT=yes
|
GENERATE_COMBRELOC_SCRIPT=yes
|
||||||
NO_SMALL_DATA=yes
|
NO_SMALL_DATA=yes
|
||||||
PLT="/* .plt* sections are embedded in .text */"
|
PLT="/* .plt* sections are embedded in .text */"
|
||||||
|
Reference in New Issue
Block a user