https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66871
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to David Woodhouse from comment #2) > It would still be extremely useful for it to emit dependencies on those > files which are actually included (after preprocessing). > > Otherwise we end up screwing around with preprocessing it and then looking > for '.incbin' and generating the full set of dependencies manually. Which is > horrid. How about you file a bug to the assembler (binutils) asking to produce a .d file with .incbin files? Or just post process the .s files and add it to the .d file.