[committed] hppa64: Disable -gc-section support on hppa*64*-*-hpux*
Project / Subsystem
binutils / hppa64
Date
2026-05-05
Proposer
John David Anglin <dave.anglin@bell.net>
Source type
public_inbox
Consensus
Proposed
Sentiment
—/10
Technical tradeoffs
- • Disabling `-gc-sections` increases the size of the final executable.
- • Avoids runtime errors due to incompatible relocations on HP-UX.
- • No longer able to remove unused sections, which might include dead code or data.
All attributes
- project
- binutils
- subsystem
- hppa64
- patch_id
- —
- discussion_id
- afo9vUauRLAvdR9o@mx3210.local
- source_type
- public_inbox
- title
- [committed] hppa64: Disable -gc-section support on hppa*64*-*-hpux*
- headline
- Hppa64: Disable -gc-section support on HPUX
- tldr
- Garbage collection of sections is now disabled for hppa64 HP-UX due to dynamic linker errors with R_PARISC_NONE relocations.
- proposer
- John David Anglin <dave.anglin@bell.net>
- consensus
- Proposed
- outcome
- committed
- sentiment_score
- —
- technical_tradeoffs
-
- • Disabling `-gc-sections` increases the size of the final executable.
- • Avoids runtime errors due to incompatible relocations on HP-UX.
- • No longer able to remove unused sections, which might include dead code or data.
- series_id
- —
- series_role
- standalone
- series_parts
- []
- tags
-
- • binutils
- • hppa64
- • hpux
- • gc-sections
- • relocation
- bugzilla_url
- —
- date
- 2026-05-05T00:00:00.000Z
[committed] hppa64: Disable -gc-section support on hppa*64*-*-hpux*
The HP-UX dynamic linker on hppa64 generates an error when encountering dynamic relocations of type R_PARISC_NONE, which can occur in garbage collected sections. This change disables -gc-section support for hppa64 HP-UX to avoid these errors. The patch modifies bfd/elf64-hppa.c and updates several testsuite files to xfail on hppa64--hpux.