[Bug ld/22677] ld -r --gc-section does not KEEP .init_array/.fini_array

2018-01-05 Thread d+sourcew...@adaptive-enterprises.com
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

[Bug ld/22677] ld -r --gc-collect does not KEEP .init_array/.fini_array

2018-01-05 Thread d+sourcew...@adaptive-enterprises.com
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()

[Bug ld/22677] New: ld -r --gc-collect does not KEEP .init_array/.fini_array

2018-01-05 Thread d+sourcew...@adaptive-enterprises.com
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