The spec says:
This section is excluded from input to the link-edit of an executable or shared object. This flag is ignored if the SHF_ALLOC flag is also set, or if relocations exist against the section.
However both gold and ld seem to always discard such sections. The same approach was chosen for this patch.