http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53453
--- Comment #6 from Jack Howarth <howarth at nitro dot med.uc.edu> 2012-05-24 13:53:34 UTC --- (In reply to comment #5) > gcc hasn't changed the emitted DWARF in this case for more than 12 years. Actually Apple gcc-4.2.1 doesn't seem to emit AT_comp_dir either but both llvm-gcc-4.2 and clang do. Since Apple has deprecated support for the legacy non-llvm based compilers, I believe they are expected the same dwarf output as from llvm based compilers for the linker now. This means that both AT_name and AT_comp_dir have to be present in the TAG_compile_unit section of each object file.