https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120301
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- overlays is a solved problem with GNU ld and GNU GDB already. to some extend it is outside of GCC: https://ftp.gnu.org/pub/old-gnu/Manuals/ld-2.9.1/html_node/ld_22.html https://sourceware.org/gdb/current/onlinedocs/gdb.html/Overlay-Sample-Program.html Linux kernel does not use overlays though but that is not a GCC issue.