mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-15 03:48:11 +08:00
Add support for absolute PE/x86 relocations.
PR 17099 * coff-i386.c (coff_i386_rtype_to_howto): Allow absolute PCRLONG relocs.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2015-04-29 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
PR 17099
|
||||||
|
* coff-i386.c (coff_i386_rtype_to_howto): Allow absolute PCRLONG
|
||||||
|
relocs.
|
||||||
|
|
||||||
2015-04-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
|
2015-04-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
|
||||||
|
|
||||||
* elf-s390-common.c (elf_s390_merge_obj_attributes): New function.
|
* elf-s390-common.c (elf_s390_merge_obj_attributes): New function.
|
||||||
|
@ -509,7 +509,12 @@ coff_i386_rtype_to_howto (bfd *abfd ATTRIBUTE_UNUSED,
|
|||||||
*addendp -= pe_data(sec->output_section->owner)->pe_opthdr.ImageBase;
|
*addendp -= pe_data(sec->output_section->owner)->pe_opthdr.ImageBase;
|
||||||
}
|
}
|
||||||
|
|
||||||
BFD_ASSERT (sym != NULL);
|
/* PR 17099 - Absolute R_PCRLONG relocations do not need a symbol. */
|
||||||
|
if (rel->r_type == R_PCRLONG && sym == NULL)
|
||||||
|
*addendp -= rel->r_vaddr;
|
||||||
|
else
|
||||||
|
BFD_ASSERT (sym != NULL);
|
||||||
|
|
||||||
if (rel->r_type == R_SECREL32 && sym != NULL)
|
if (rel->r_type == R_SECREL32 && sym != NULL)
|
||||||
{
|
{
|
||||||
bfd_vma osect_vma;
|
bfd_vma osect_vma;
|
||||||
|
Reference in New Issue
Block a user