exclude aout format from pcrel long jumps

This commit is contained in:
bebbo 2018-01-18 20:58:49 +01:00
parent 2e2c00ef91
commit e0a36d46fa
1 changed files with 7 additions and 1 deletions

View File

@ -213,6 +213,9 @@ get_relocated_section_contents (
for (; lo1; lo1 = lo1->next)
{
asection * s = lo1->u.indirect.section;
if (s->owner->xvec->flavour != bfd_target_amiga_flavour)
continue;
if (strcmp(s->name, ".text"))
continue;
@ -231,6 +234,9 @@ get_relocated_section_contents (
for (; lo1; lo1 = lo1->next)
{
asection * s = lo1->u.indirect.section;
if (s->owner->xvec->flavour != bfd_target_amiga_flavour)
continue;
if (strcmp(s->name, ".text"))
continue;
@ -357,7 +363,7 @@ get_relocated_section_contents (
/**
*
*/
if (input_section->reloc_count > 0)
if (input_section->owner->xvec->flavour == bfd_target_amiga_flavour && input_section->reloc_count > 0)
{
amiga_reloc_type *src;
for (src = (amiga_reloc_type *) input_section->relocation; src; src = src->next)