https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86469
--- Comment #6 from rguenther at suse dot de <rguenther at suse dot de> --- On Thu, 12 Jul 2018, jg at jguk dot org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86469 > > --- Comment #5 from Jonny Grant <jg at jguk dot org> --- > Richard, > Ok I will have a look at that soon... > > Could I ask, do you know if GCC already has dwarf sanity checks when > outputting > .debug_str size to check offsets are not larger than the size? It does have a lot of sanity checks but I don't remember any specific one for offsets into sections. Note you are using a pre-release of GCC 8.1 so maybe make sure to update that. What version of binutils are you using?