https://sourceware.org/bugzilla/show_bug.cgi?id=21557
H.J. Lu <hjl.tools at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |RESOLVED Resolution|--- |WONTFIX --- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> --- (In reply to Alexander Monakov from comment #2) > Thanks for the reference, I was missing that this handling is explicitly > limited to orphan sections. This makes my testcase invalid, but please > consider that current linker behavior appears inconsistent, for two separate > reasons. > > First, gc-sections considers these non-orphan sections reachable; taking the > testcase and linking it without '-z defs', with --gc-sections, you get: > Please open a new bug report. BTW, foo in your testcase isn't reachable outside of test.so. > (it's not clear to me why bug status was set to WAITING, please clarify if > you'd like to see further clarifications, new bugreports for above issues, > or something else) I wanted to see more info. -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils