diff options
author | Jan Beulich <jbeulich@suse.com> | 2024-09-27 11:40:22 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2024-09-27 11:40:22 +0200 |
commit | 784e2ef54b443a4d0b95e97122934ca8eaa4155b (patch) | |
tree | 47ce6e69fc4c8d4c0c61c25003701236f65b8054 /COPYING3 | |
parent | ca6b6f9d6e65d27bc40c8f1e4c6d39fe04cfbdb2 (diff) | |
download | gdb-784e2ef54b443a4d0b95e97122934ca8eaa4155b.zip gdb-784e2ef54b443a4d0b95e97122934ca8eaa4155b.tar.gz gdb-784e2ef54b443a4d0b95e97122934ca8eaa4155b.tar.bz2 |
RISC-V: correct alignment directive handling for text sections
.insn or data emitted inside text sections can lead to positions not
being at insn granularity. In such situations using alignment
directives should reliably enforce the requested alignment.
Specifically requests to align back to insn granularity may not be
ignored (where, as a subcase thereof, the ordering of ".option norvc"
and e.g. ".p2align 2" should not matter; so far the alignment directive
needs to come first to have any effect). Similarly ahead of emitting
NOPs alignment first needs to be forced back to insn granularity.
The new testcases actually point out a corner case issue in the
disassembler as well, which is being corrected at the same time: We
don't want to print "0x" without any subsequent digits.
Diffstat (limited to 'COPYING3')
0 files changed, 0 insertions, 0 deletions