[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/26268] New: --gc-sections -u __start_cident inconsistent for -r
From: |
i at maskray dot me |
Subject: |
[Bug ld/26268] New: --gc-sections -u __start_cident inconsistent for -r and non-relocatable links |
Date: |
Mon, 20 Jul 2020 17:53:26 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=26268
Bug ID: 26268
Summary: --gc-sections -u __start_cident inconsistent for -r
and non-relocatable links
Product: binutils
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: i at maskray dot me
Target Milestone: ---
% cat a.s
.section cident,"a",@progbits
.byte 0
% as a.s -o a.o
% ld.bfd -r --gc-sections --print-gc-sections -u __start_cident a.o -o a
ld.bfd: removing unused section 'cident' in file 'a.o'
% ld.bfd --gc-sections --print-gc-sections -u __start_cident a.o -o a
ld.bfd: warning: cannot find entry symbol _start; not setting start address
Non-relocatable links retain 'cident' while relocatable links discard it. I
don't know whether the rule should be consistent here.
I am also thinking how 'cident' should behave when it is in a section group.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/26268] New: --gc-sections -u __start_cident inconsistent for -r and non-relocatable links,
i at maskray dot me <=