aboutsummaryrefslogtreecommitdiff
path: root/opcodes/dis-buf.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2014-12-02 15:09:16 +1030
committerAlan Modra <amodra@gmail.com>2014-12-02 23:13:30 +1030
commit51aecdc5320d1707e1f034f05a378e60aae71d18 (patch)
tree4a509148ce044dbe5103aff8bf5c0e0fe5bcf9e7 /opcodes/dis-buf.c
parentd5552aabd6c68147421819577108b51ff25ea064 (diff)
downloadgdb-51aecdc5320d1707e1f034f05a378e60aae71d18.zip
gdb-51aecdc5320d1707e1f034f05a378e60aae71d18.tar.gz
gdb-51aecdc5320d1707e1f034f05a378e60aae71d18.tar.bz2
ppc64_elf_edit_opd revamp
This patch sorts .opd relocs (see pr17666) and allows .opd sections with a mix of 16 and 24 byte entries to be edited. * elf64-ppc.c (OPD_NDX): Define. Use throughout for sizing/indexing _opd_sec_data array, halving required memory. (sort_r_offset): New function. (ppc64_elf_edit_opd): Sort incoming relocs. Accept .opd sections with a mix of 16 and 24 byte OPD entries. Don't attempt to honour --non-overlapping-opd for .opd sections with unexpected relocs. Simplify opd entry size calculations by first finding the reloc for the next entry. Make edit loop handle one opd entry per iteration, with an inner loop handling relocs per entry.
Diffstat (limited to 'opcodes/dis-buf.c')
0 files changed, 0 insertions, 0 deletions