If there are input sections with the same name but with different attributes
and linker script layout is used then we create single output section.
What is wrong is that we create an output section based on the first input
section's attributes. This may make a wrong output section attributes,
patch fixes the issue.
V is a std::vector<InputSectionBase<ELFT> *>, but