binutils Newspaper
NOVEMBER 30, 2026
bfd/epiphany — Committed

bfd/epiphany: remove unused epiphany_relaxed variable

Removes an unused variable 'epiphany_relaxed' from the Epiphany ELF backend.

A clang build warning highlighted an unused variable ‘epiphany_relaxed’ in the Epiphany ELF backend, which has been obsolete since 2011. The patch removes this variable to clean up the code.

In the Thread 2 participants
  1. Simon Marchi proposer

    Identified an unused variable causing build warnings and proposed its removal.

    “Building bfd with a recent clang fails with: /home/smarchi/src/binutils-gdb/bfd/elf32-epiphany.c:45:13: error: variable 'epiphany_relaxed' set but not used [-Werror,-Wunused-but-set-global] The variable has been unused since the epiphany port was added in commit cfb8c0921c8a (2011-10-25). Remove it.”
  2. Alan Modra <amodra@gmail.com> maintainer

    Accepted the patch.

    “OK.”

Technical Tradeoffs

  • Removes dead code, improving maintainability and reducing build warnings.

In Details

This patch removes a dead global variable from the Epiphany BFD backend. The variable was introduced with the initial support for the Epiphany architecture and has not been used since.

For Context
BFD
Binary File Descriptor library. A low-level library used by GNU Binutils to parse and manipulate object files from various architectures and formats.
Epiphany
A Tensilica configurable processor core, often used in embedded systems.
ELF
Executable and Linkable Format. A common standard file format for object files, executables, shared libraries, and core dumps on Unix-like systems.
Filed Under: epiphanybfdcleanupbuild