berkus / mclinker

Automatically exported from code.google.com/p/mclinker
Other
0 stars 0 forks source link

Merge input section flags #121

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Linkers must update output section's flag by input sections.

The Google gold linker merges flags when section merging
void Output_section::update_flags_for_input_section(elfcpp::Elf_Xword flags)

I will add a new function to update the flags in GNULDBackend and will change 
the ObjectBuilder::MergeSection and ObjectLinker::mergeSections.

ObjectBuilder::MergeSection will return the output LDSection.
ObjectLinker::mergeSections() will get the output LDSection from ObjectLinker, 
and pass the output LDSection to GNULDBackend. Finally, GNULDBackend updates 
the output flags.

Original issue reported on code.google.com by LubaTang on 4 Feb 2013 at 7:39

GoogleCodeExporter commented 9 years ago
This is blocking Hexagon development for now. 

Original comment by shanka...@gmail.com on 4 Feb 2013 at 7:44

GoogleCodeExporter commented 9 years ago
An early solution. Revision f93bcb557a08

Original comment by LubaTang on 5 Feb 2013 at 9:00