mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-10 23:57:03 +08:00
2008-07-21 H.J. Lu <hongjiu.lu@intel.com>
PR ld/6747 * elf32-frv.c (elf32_frv_relocate_section): Revert the change for PR ld/6446 checked in by accident on May 21, 2008.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2008-07-21 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
PR ld/6747
|
||||||
|
* elf32-frv.c (elf32_frv_relocate_section): Revert the change
|
||||||
|
for PR ld/6446 checked in by accident on May 21, 2008.
|
||||||
|
|
||||||
2008-07-21 Nick Clifton <nickc@redhat.com>
|
2008-07-21 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
* coff-sh.c (bfd_pe_print_pdata): Define to NULL for non
|
* coff-sh.c (bfd_pe_print_pdata): Define to NULL for non
|
||||||
|
@ -2728,13 +2728,6 @@ elf32_frv_relocate_section (output_bfd, info, input_bfd, input_section,
|
|||||||
check_segment[2];
|
check_segment[2];
|
||||||
int silence_segment_error = !(info->shared || info->pie);
|
int silence_segment_error = !(info->shared || info->pie);
|
||||||
unsigned long insn;
|
unsigned long insn;
|
||||||
static bfd_boolean ef_frv_pic_flag_set = FALSE;
|
|
||||||
|
|
||||||
if (! ef_frv_pic_flag_set && IS_FDPIC (output_bfd))
|
|
||||||
{
|
|
||||||
elf_elfheader (output_bfd)->e_flags |= EF_FRV_PIC;
|
|
||||||
ef_frv_pic_flag_set = TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
symtab_hdr = & elf_tdata (input_bfd)->symtab_hdr;
|
symtab_hdr = & elf_tdata (input_bfd)->symtab_hdr;
|
||||||
sym_hashes = elf_sym_hashes (input_bfd);
|
sym_hashes = elf_sym_hashes (input_bfd);
|
||||||
@ -3992,9 +3985,7 @@ elf32_frv_relocate_section (output_bfd, info, input_bfd, input_section,
|
|||||||
}
|
}
|
||||||
if (!silence_segment_error && (info->shared || info->pie))
|
if (!silence_segment_error && (info->shared || info->pie))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
/* PR 6446: EF_FRV_PIC should be cleared if
|
elf_elfheader (output_bfd)->e_flags |= EF_FRV_PIC;
|
||||||
there are any inter-segment relocations. */
|
|
||||||
elf_elfheader (output_bfd)->e_flags &= ~ EF_FRV_PIC;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (r_type)
|
switch (r_type)
|
||||||
|
Reference in New Issue
Block a user