diff options
author | Alan Modra <amodra@gmail.com> | 2023-04-29 11:00:30 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2023-05-03 09:03:01 +0930 |
commit | e84ca83738a748d8afe53e74b9666e74ae708dcc (patch) | |
tree | 868ef87059cf3328927a705daecf5900abff0620 /gdb | |
parent | 59305ae6247e86f35bbe94ed1f9599af8f8e6f69 (diff) | |
download | gdb-e84ca83738a748d8afe53e74b9666e74ae708dcc.zip gdb-e84ca83738a748d8afe53e74b9666e74ae708dcc.tar.gz gdb-e84ca83738a748d8afe53e74b9666e74ae708dcc.tar.bz2 |
_bfd_mips_elf_lo16_reloc vallo comment
This explains exactly why the high reloc adjustment is as it is,
replacing the rather nebulous existing comment. I've also changed the
expression from (lo+0x8000)&0xffff to (lo&0xffff)^0x8000 which better
matches part of the standard 16-bit sign extension (resulting in
exactly the same value), and hoisted the calculation out of the loop.
* elfxx-mips.c (_bfd_mips_elf_lo16_reloc): Expand vallo
comment. Hoist calculation out of loop.
Diffstat (limited to 'gdb')
0 files changed, 0 insertions, 0 deletions