Modernize the error printing for text relocations by syncing it to the
"more maintained" platforms.
This commit is contained in:
parent
3544b82379
commit
18d966ff32
11
external/gpl3/binutils/dist/bfd/elf32-ppc.c
vendored
11
external/gpl3/binutils/dist/bfd/elf32-ppc.c
vendored
@ -6616,8 +6616,15 @@ maybe_set_textrel (struct elf_link_hash_entry *h, void *info_p)
|
||||
struct bfd_link_info *info = (struct bfd_link_info *) info_p;
|
||||
|
||||
info->flags |= DF_TEXTREL;
|
||||
info->callbacks->minfo
|
||||
(_("%pB: dynamic relocation against `%pT' in read-only section `%pA'\n"),
|
||||
/* xgettext:c-format */
|
||||
info->callbacks->minfo (_("%pB: dynamic relocation against `%pT' "
|
||||
"in read-only section `%pA'\n"),
|
||||
sec->owner, h->root.root.string, sec);
|
||||
if ((info->warn_shared_textrel && bfd_link_pic (info))
|
||||
|| info->error_textrel)
|
||||
/* xgettext:c-format */
|
||||
info->callbacks->einfo (_("%P: %pB: warning: relocation against `%s' "
|
||||
"in read-only section `%pA'\n"),
|
||||
sec->owner, h->root.root.string, sec);
|
||||
|
||||
/* Not an error, just cut short the traversal. */
|
||||
|
12
external/gpl3/binutils/dist/bfd/elf64-ppc.c
vendored
12
external/gpl3/binutils/dist/bfd/elf64-ppc.c
vendored
@ -10260,8 +10260,16 @@ maybe_set_textrel (struct elf_link_hash_entry *h, void *inf)
|
||||
struct bfd_link_info *info = (struct bfd_link_info *) inf;
|
||||
|
||||
info->flags |= DF_TEXTREL;
|
||||
info->callbacks->minfo
|
||||
(_("%pB: dynamic relocation against `%pT' in read-only section `%pA'\n"),
|
||||
/* xgettext:c-format */
|
||||
info->callbacks->minfo (_("%pB: dynamic relocation against `%pT' "
|
||||
"in read-only section `%pA'\n"),
|
||||
sec->owner, h->root.root.string, sec);
|
||||
|
||||
if ((info->warn_shared_textrel && bfd_link_pic (info))
|
||||
|| info->error_textrel)
|
||||
/* xgettext:c-format */
|
||||
info->callbacks->einfo (_("%P: %pB: warning: relocation against `%s' "
|
||||
"in read-only section `%pA'\n"),
|
||||
sec->owner, h->root.root.string, sec);
|
||||
|
||||
/* Not an error, just cut short the traversal. */
|
||||
|
Loading…
Reference in New Issue
Block a user