[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/27500] New: --gc-sections with groups and start/stop syms
From: |
amodra at gmail dot com |
Subject: |
[Bug ld/27500] New: --gc-sections with groups and start/stop syms |
Date: |
Wed, 03 Mar 2021 02:24:58 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=27500
Bug ID: 27500
Summary: --gc-sections with groups and start/stop syms
Product: binutils
Version: 2.37 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: amodra at gmail dot com
Target Milestone: ---
This testcase when linked with --gc-sections does not keep bar_group, when it
should since the __start_xx reference is supposed to keep all xx input
sections.
.text
.global _start
_start:
.dc.a foo
.dc.a __start_xx, __stop_xx
.section .text,"axG",%progbits,foo_group
.global foo
foo:
.dc.a 0
.section xx,"aG",%progbits,foo_group
.global foo_xx
foo_xx:
.dc.a 1
.section .text,"axG",%progbits,bar_group
.global bar
bar:
.dc.a 2
.section xx,"aG",%progbits,bar_group
.global bar_xx
bar_xx:
.dc.a 3
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/27500] New: --gc-sections with groups and start/stop syms,
amodra at gmail dot com <=