diff options
author | Jan Beulich <jbeulich@suse.com> | 2024-08-23 09:22:30 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2024-08-23 09:22:30 +0200 |
commit | b994624fa57b3314098656e110781d4d0f77b4e4 (patch) | |
tree | bec48e835b25fec6b01e4de1b39f49e3ec65b242 /lt~obsolete.m4 | |
parent | 57db1af8bae52592d173a3be22dd8943ad120dd7 (diff) | |
download | gdb-b994624fa57b3314098656e110781d4d0f77b4e4.zip gdb-b994624fa57b3314098656e110781d4d0f77b4e4.tar.gz gdb-b994624fa57b3314098656e110781d4d0f77b4e4.tar.bz2 |
RISC-V: process rs_align_code also when relaxing
riscv_handle_align() runs after all input was processed. Whether
relaxation is enabled for any particular piece of code is not recorded
anywhere. (This issue was even "worked around" in a gas testcase, which
is adjusted accordingly.) Furthermore, as demonstrated by an ld
testcase, tail padding in an object file's executable sections depended
on whether relaxation was enabled at the end of assembly: NOPs were
emitted only when relaxation was off; zeroes were emitted with
relaxation enabled. (It could probably be either way, but it should be
independent of relaxation state at the end of assembly. Except of course
write.c, in a comment ahead of #define-ing SUB_SEGMENT_ALIGN(),
explicitly says "proper nop-filling".)
While re-indenting, drop the "odd_padding" variable. It's used exactly
once, and having the actual expression right in the if() is imo helping
readers to understand what the intentions are.
While touching the ld testcase, also tighten the expectations for the
addresses of the two symbols: The last two digits have to have fixed
values.
Diffstat (limited to 'lt~obsolete.m4')
0 files changed, 0 insertions, 0 deletions