Currently we're relying on the order of unknown output section to frame certain sections (minfo, deh) with runtime accessibly brackets. A cleaner solution would be to use PROVIDE_HIDDEN(_mingo_beg) in a linker script. It's possible to extend the default linker scripts using -T and the INSERT command, see http://sourceware.org/binutils/docs/ld/Miscellaneous-Commands.html#Miscellaneous-Commands
Maybe we can use the implicit linker section support of the linker. http://www.airs.com/blog/archives/56
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17658 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB