diff options
author | Alan Modra <amodra@gmail.com> | 2017-11-02 08:05:03 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2017-11-05 09:37:33 +1030 |
commit | 98bbb1b86180324b278842d8d73c79cb5d76d349 (patch) | |
tree | 432703f6d0d970b0fc2ceb69009d71a50f281bc6 /bfd/aout-target.h | |
parent | 2e684e75ae3939f5f14fb89ca8a300b610d093dd (diff) | |
download | gdb-98bbb1b86180324b278842d8d73c79cb5d76d349.zip gdb-98bbb1b86180324b278842d8d73c79cb5d76d349.tar.gz gdb-98bbb1b86180324b278842d8d73c79cb5d76d349.tar.bz2 |
PowerPC readonly_dynrelocs
PowerPC64 lacked the mapfile textrel warning on finding dynamic relocs
in read-only sections. This patch adds it, and tidies the
readonly_dynrelocs interface. PowerPC doesn't need a SEC_ALLOC test
because !SEC_ALLOC sections are excluded by check_relocs so will never
have dyn_relocs.
* elf32-ppc.c (readonly_dynrelocs): Delete info param. Update all
callers. Don't bother with SEC_ALLOC test. Return section pointer.
Move minfo call to..
(maybe_set_textrel): ..here.
* elf64-ppc.c (readonly_dynrelocs): Return section pointer.
(maybe_set_textrel): Call minfo to print textrel warning to map file.
Diffstat (limited to 'bfd/aout-target.h')
0 files changed, 0 insertions, 0 deletions