This is PR36515.
Currenly if we have script like .debug_info 0 : { *(.debug_info) },
we would not remove this section and keep it in output.
That does not work, because it is common case for
debug sections to have zero address expression.
Patch changes behavior so that we remove only sections
that do not use symbols in its expressions.
defined in output -> defined in the output