https://sourceware.org/bugzilla/show_bug.cgi?id=22677
David Leonard changed:
What|Removed |Added
Summary|ld -r --gc-collect does not |ld -r --gc-section does not
https://sourceware.org/bugzilla/show_bug.cgi?id=22677
--- Comment #1 from David Leonard ---
Submitted too early, sorry. I mean --gc-section not --gc-collect.
Example
$ cat L.c
int L4var = 4;
int L5var;
int L5init() {
L5var = 5;
}
__attribute__((constructor))
static void Lconstructor()
https://sourceware.org/bugzilla/show_bug.cgi?id=22677
Bug ID: 22677
Summary: ld -r --gc-collect does not KEEP
.init_array/.fini_array
Product: binutils
Version: unspecified
Status: UNCONFIRMED
Severity: normal