binutils Newspaper
JUNE 15, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
frv

FRV: Test frvfdpic_relocs_info directly instead of dynobj.

Modifies the FRV backend to test ``frvfdpic_relocs_info`` directly instead of relying on ``dynobj`` to determine if relocations info is available.

The function elf32_frvfdpic_late_size_sections in the FRV backend of BFD previously checked for non-NULL dynobj to determine whether to process frvfdpic_relocs_info. This commit changes the check to directly evaluate frvfdpic_relocs_info instead of relying on dynobj, making the code more robust against potential future changes where the relationship between these two variables might change.

In Details

In elf32-frv.c, the function elf32_frvfdpic_late_size_sections is responsible for handling relocations in the FRV backend. The original code checked dynobj to determine if frvfdpic_relocs_info should be processed. This commit modifies the check to directly test frvfdpic_relocs_info, ensuring that the code behaves correctly even if the relationship between dynobj and frvfdpic_relocs_info changes in the future.

For Context

This commit relates to the FRV architecture support within the Binary File Descriptor (BFD) library. During the linking process, relocation information is used to adjust addresses in the output file. This patch modifies a check to directly evaluate the availability of relocation information, making the code more robust.

Filed Under: bfdfrvelflinkerrelocations