[committed] hppa64: Re-enable -gc-section support on hppa*64*-*-hpux*

Project / Subsystem

binutils / hppa64

Date

2026-05-07

Proposer

John David Anglin <dave.anglin@bell.net>

Source type

public_inbox

Consensus

Committed

Sentiment

/10

Technical tradeoffs

  • The change allocates 16 bytes of space in the .data section, increasing the size of the executable slightly.
  • The solution is specific to HP-UX and may not be applicable to other platforms.
  • The change simplifies the relocation process and enables garbage collection.

All attributes

project
binutils
subsystem
hppa64
patch_id
discussion_id
afzhO5PU_mFNt-5V@mx3210.local
source_type
public_inbox
title
[committed] hppa64: Re-enable -gc-section support on hppa*64*-*-hpux*
headline
Hppa64: Re-enable -gc-section support on hppa*64*-*-hpux*
tldr
-gc-section support is re-enabled for hppa64-*-hpux targets by allocating space in .data to handle invalid relocation offsets.
proposer
John David Anglin <dave.anglin@bell.net>
consensus
Committed
outcome
committed
sentiment_score
technical_tradeoffs
  • The change allocates 16 bytes of space in the .data section, increasing the size of the executable slightly.
  • The solution is specific to HP-UX and may not be applicable to other platforms.
  • The change simplifies the relocation process and enables garbage collection.
series_id
series_role
standalone
series_parts
[]
tags
  • binutils
  • ld
  • hppa64
  • hpux
  • -gc-section
bugzilla_url
date
2026-05-07T00:00:00.000Z

[committed] hppa64: Re-enable -gc-section support on hppa*64*-*-hpux*

John David Anglin re-enables -gc-section support for hppa64-*-hpux targets. The change allocates 16 bytes at the start of the .data section for the linker to handle relocations with invalid offsets. This resolves issues with the HP dynamic linker and allows for garbage collection of unused sections.