aboutsummaryrefslogtreecommitdiff
path: root/gdb/windows-nat.c
diff options
context:
space:
mode:
authorNelson Chu <nelson@rivosinc.com>2023-05-12 17:15:58 +0800
committerNelson Chu <nelson@rivosinc.com>2024-12-06 11:36:53 +0800
commit6f8e75592ceb1e667fb50e466734caf6d11203ac (patch)
tree08bfd6edf76068c2fe4002f04cffc283ec0e76d4 /gdb/windows-nat.c
parent9d09e3919293185225638a7f29e4028b30f9e317 (diff)
downloadbinutils-6f8e75592ceb1e667fb50e466734caf6d11203ac.zip
binutils-6f8e75592ceb1e667fb50e466734caf6d11203ac.tar.gz
binutils-6f8e75592ceb1e667fb50e466734caf6d11203ac.tar.bz2
RISC-V: PR27566, consider ELF_MAXPAGESIZE/COMMONPAGESIZE for gp relaxations.
For default linker script, if a symbol's value outsides the bounds of the defined section, then it may cross the data segment alignment, so we should reserve more size about MAXPAGESIZE and COMMONPAGESIZE when doing gp relaxations. Otherwise we may meet the truncated errors since the data segment alignment might move the section forward. bfd/ PR 27566 * elfnn-riscv.c (_bfd_riscv_relax_lui): Consider MAXPAGESIZE and COMMONPAGESIZE if the symbol's value outsides the bounds of the defined section. (_bfd_riscv_relax_pc): Likewise. ld/ PR 27566 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated. * testsuite/ld-riscv-elf/relax-data-segment-align*: New testcase for pr27566. Without this patch, the rv32 binutils will meet truncated errors for this testcase.
Diffstat (limited to 'gdb/windows-nat.c')
0 files changed, 0 insertions, 0 deletions