Revert "rl78: check relaxation delete range, propagate failures"
Reverts a commit that added range checking for deletion operations during RL78 code relaxation.
This commit reverts a previous change that introduced range checking for deletion operations within the RL78 relaxation process and propagated potential failures. The original commit was reverted because it was introduced prematurely.
In Details
This commit reverts commit aaf62c2437f48ff65e4585d4b65859f8b8a8c49e which modified the RL78 ELF backend (bfd/elf32-rl78.c) and its testsuite. The reverted changes aimed to add validation using _bfd_elf_relax_delete_range_ok for deletion operations within elf32_rl78_relax_delete_bytes, wrap SNIPNR/SNIP macros in do-while(0), and propagate failures in rl78_elf_relax_section. The reversion is due to the change being applied too early in the development cycle.
- RL78
- A family of microcontrollers from Renesas Electronics. Binutils supports targeting this architecture, including its specific instruction set and object file formats.
- relaxation
- A process in linkers and assemblers where certain code constructs (e.g., branch instructions with fixed offsets) are modified to use different, more efficient, or more compact forms. This often involves adjusting addresses and offsets.
- ELF
- Executable and Linkable Format. A common standard file format for object files, executables, and shared libraries on Unix-like systems. Binutils tools heavily interact with ELF files.
- BFD
- Binary File Descriptor library. It's a part of GNU Binutils used to abstract away the details of different object file formats (like ELF, COFF, a.out).
- testsuite
- A collection of tests designed to verify the correctness of a software project. For Binutils, this includes tests for the assembler, linker, and libraries like BFD.