add file origin for ATTR (fixes #3630)