bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gold/14265] -gc-sections ignores KEEP annotations


From: ian at airs dot com
Subject: [Bug gold/14265] -gc-sections ignores KEEP annotations
Date: Thu, 09 Aug 2012 15:00:36 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=14265

--- Comment #2 from Ian Lance Taylor <ian at airs dot com> 2012-08-09 15:00:36 
UTC ---
The key point connecting the Output_section_element_input and the Layout code
is the call to Output_section_element_input::match_name.  From the Layout side,
it's the call to ss->output_section_name in Layout::chose_output_section.  So I
would suggest having Output_section_element_input::match_name return whether
the section is kept (e.g., in a new bool* parameter).  Then the Layout code can
pass that information back from Layout::layout, and
Sized_relobj_file::do_layout can add the input section to the worklist.

Thanks for looking at this.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]