If marking a shared image TEXTREL, print out a warning about the section
that caused it.
This commit is contained in:
parent
723011d7ca
commit
b2757928d7
8
external/gpl3/binutils/dist/bfd/elf64-ppc.c
vendored
8
external/gpl3/binutils/dist/bfd/elf64-ppc.c
vendored
@ -9196,7 +9196,13 @@ ppc64_elf_size_dynamic_sections (bfd *output_bfd ATTRIBUTE_UNUSED,
|
||||
srel = htab->reliplt;
|
||||
srel->size += p->count * sizeof (Elf64_External_Rela);
|
||||
if ((p->sec->output_section->flags & SEC_READONLY) != 0)
|
||||
info->flags |= DF_TEXTREL;
|
||||
{
|
||||
if (info->warn_shared_textrel)
|
||||
(*_bfd_error_handler)
|
||||
(_("warning: dynamic relocation in readonly section `%s'"),
|
||||
p->sec->output_section->name);
|
||||
info->flags |= DF_TEXTREL;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user